正文共:1454字 17图 预计阅读时间:4分钟
1 前言
2 建模与网格
3 求解设置
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.0899*6/3600;
if(t<=1)
F_PROFILE(f,thread,position)=v;
else
F_PROFILE(f,thread,position)=0.0;
}
end_f_loop(f,thread)
}
DEFINE_PROFILE(inlet_h2molar, thread, position)
{
real t,h;
face_t f;
begin_f_loop(f,thread)
{
t=RP_Get_Real("flow-time");
h=1.;
if(t<=1)
F_PROFILE(f,thread,position)=h;
else
F_PROFILE(f,thread,position)=0.0;
}
end_f_loop(f,thread)
}
4 计算结果