|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
#include"udf.h"
DEFINE_SOURCE(cell_source,cell,thread,dS,eqn)
{
real source;
real time=RP_Get_Real("flow-time");
real time_step=RP_Get_Real("physical-time-step");
int time_step_num=RP_Get_Integer("time-step");
if(time>0&&time<10)
{source=2;
dS[eqn]=0;}
else if(time>=10&&time<20)
{source=5;
dS[eqn]=0;}
else if(time>=20&&time<60)
{source=10;
dS[eqn]=0;}
else if(time>=60&&time<100)
{source=2;
dS[eqn]=0;}
else if(time>=100&&time<120)
{source=0;
dS[eqn]=0;}
source=source/0.00084;
return source;
}
以上是我的语言
下列图片是VS2010给出的错误信息
哪位大侠告诉小弟一声,谢谢! |
|