|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
我的问题是密度随温度变化,是冷空气进入炉膛内部后体积要膨胀,为了表现膨胀想通过谜底变化来定义,不知道这种思路是否行得通,麻烦有经验的朋友帮忙看下。
以下是程序内容:
#include "udf.h"
DEFINE_PROPERTY(density_temperature, thread, position)
{
real temperature, density;
cell_t c;
begin_c_loop(c, thread)
{
temperature = RP_Get_Real("flow-temperature");
density = 1.225*(288/temperature);
C_R(c, thread, position) = density;
}
end_c_loop(c,thread)
} |
|