|
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
如图所示,用了DEFINE_DELTAT宏之后在Time stepping method选项中选择Adaptive,导入编写的UDF,那图中的Time step size 和Number of time steps还需要设置么?为什么我计算后发现没有效果?UDF如下:
#include "udf.h"
DEFINE_DELTAT(mydeltat,d)
{
real time_step;
real flow_time = CURRENT_TIME;
if (flow_time < 1)
time_step = 0.05;
else
time_step = 0.02;
return time_step;
} |
|