Fluent小白求帮忙编写一个正弦速度边界条件的udf
自己参考网上的教程编了一个,但还是不懂里面的东西,也不知道对不对。就是速度进口边界条件我需要是速度随时间正弦变化就ok
#include “udf.h”
DEFINE_PROFILE(inlet_velocity, thread, position)
{
real t,v;
face_t f;
begin_f_loop(f, thread)
{
t=RP_Get_Real("flow-time"
v=0.025*sin(2*3.14*t/20000);
F_PROFILE(f, thread,position)=v
}
end_f_loop(f, thread)
}
这个程序不知道对不对啊?求大神帮助 返回小木虫查看更多
今日热帖
基本正确吧,可以改动一下更简洁
ok,ok,感谢帮忙
已经改动完,搞定了,感谢回复
你好,我问一下你这个20000是频率么
是的
楼主你是怎么解决的,为什么我导入总是报错:Error: G:\\Users\\lxc\\Desktop\\pressure_inlet.c: line 11: invalid type for integral binary expression: int ^ double
,