|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
我想定义发热体的随时间变化的发热功率,想用udf。我的udf是这样写的:DEFINE_PROFILE(cellsource, thread, position)
{ float t, heat;
cell_t c;
t = RP_Get_Real("flow-time");
heat =sin( t*0.1)10000;
begin_c_loop(c, thread)
{
C_PROFILE(f, thread,position) =heat;
}
end_c_loop(c, thread)
}
不知道这么写错在哪? |
|