马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
#include "udf.h"
DEFINE_PROFILE(unsteady_v,t,pos)
{
float t,velocity;
face_t f;
begin_f_loop(f,t)
{
t=RP_Get_Real("flow-time");
velocity=20.0+5.0*sin(10.*t);
F_PROFILE(f,t,pos)=velocity;
}
end_f_loop(f,t)
导入fluent提示错误为:
Error: C:\Documents and Settings\Administrator\\327\300\303\346\QD128\velocity.c: line 6: invalid type conversion: float -> pointer to char.
请老师们指教一下,谢谢先!!! |