|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
各位高手,大家好!
我编了个UDF,功能是实现某换热管壁温随时间变化,请大家看看对不对
#include "udf.h"
DEFINE_PROFILE(unsteady_temperature, thread, position)
{
real t, temperature;
face_t f;
begin_f_loop(f, thread)
{
t = RP_Get_Real("flow-time");
temperature = 0.001*t+41.36;
F_PROFILE(f, thread, position) = temperature;
}
end_f_loop(f, thread)
} |
|