找回密码
 注册
查看: 2111|回复: 1

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

[复制链接]
发表于 2021-5-9 22:13:02 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
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[h2o_index] += mp_dot;
S->energy -= mp_dot * TP_INJECTION(tp)->latent_heat_ref;
}
}
大家好,想请问一下帮助文档中S->species[h2o_index]的S结构指针是指向粒子离散相的源项吗还是连续相中组分方程的源项,望大家不吝赐教,谢谢
发表于 2022-8-28 10:23:29 | 显示全部楼层
指向连续相中组分方程的源相吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表