Sophie_2334 发表于 2021-5-9 22:13:02

请问关于DEFINE_DPM_SOURCE中结构指针的问题

DEFINE_DPM_SOURCE(dpm_source, c, t, S, strength, tp)
{
real mp_dot;
/* mp_dot is the mass source to the continuous phase
* (Difference in mass between entry and exit from cell)
* multiplied by strength (Number of particles/s in stream)
*/
mp_dot = (TP_MASS0(tp) - TP_MASS(tp)) * strength;
if (TP_CURRENT_LAW(tp) == DPM_LAW_USER_1)
{
/* Sources relevant to the user law 1:
* add the source to the condensing species
* equation and adjust the energy source by
* adding the latent heat at reference temperature
*/
S->species += mp_dot;
S->energy -= mp_dot * TP_INJECTION(tp)->latent_heat_ref;
}
}
大家好,想请问一下帮助文档中S->species的S结构指针是指向粒子离散相的源项吗还是连续相中组分方程的源项,望大家不吝赐教,谢谢

Marmalade 发表于 2022-8-28 10:23:29

指向连续相中组分方程的源相吧
页: [1]
查看完整版本: 请问关于DEFINE_DPM_SOURCE中结构指针的问题