| 查看: 600 | 回复: 2 | ||
zkkker新虫 (小有名气)
|
[求助]
脉动速度udf单核计算可以,变为并行计算就不行了,求大神帮忙 已有1人参与
|
|
#include "udf.h" #define T 1 /* the periodic of pulsed flow */ #define U 0.15 /* the uniform flow velocity */ #define W 0 /* the wave amplitude of pulsed flow */ DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; real t = CURRENT_TIME; int n; for (n=0;n<=1000;n++) { if(n*T<=t&&t<=(n+1)*T/2) { F_PROFILE(f, thread, position)=U; break; } else { F_PROFILE(f, thread, position)=W; break; } } } @wuming524 发自小木虫IOS客户端 |
» 猜你喜欢
遇见不省心的家人很难过
已经有19人回复
退学或坚持读
已经有25人回复
博士延得我,科研能力直往上蹿
已经有4人回复
面上基金申报没有其他的参与者成吗
已经有4人回复
多组分精馏求助
已经有6人回复
2楼2018-01-24 15:02:29
3楼2020-11-17 14:36:30













回复此楼