fluent udf 无法在fluent中解释#include "udf.h" #define R 0.01 #define Q 7 #define PI 3.14159 #DEFINE_SOURCE(gaussian_heat_source,c,t,dS,eqn){ real x; real r,source; C_CENTROID (x,c,t); r=sqrt(y*y); if(r
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/15 07:11:37
![fluent udf 无法在fluent中解释#include](/uploads/image/z/4868089-25-9.jpg?t=fluent+udf+%E6%97%A0%E6%B3%95%E5%9C%A8fluent%E4%B8%AD%E8%A7%A3%E9%87%8A%23include+%22udf.h%22+%23define+R+0.01+%23define+Q+7+%23define+PI+3.14159+%23DEFINE_SOURCE%28gaussian_heat_source%2Cc%2Ct%2CdS%2Ceqn%29%7B+real+x%3B+real+r%2Csource%3B+C_CENTROID+%28x%2Cc%2Ct%29%3B+r%3Dsqrt%28y%2Ay%29%3B+if%28r)
fluent udf 无法在fluent中解释#include "udf.h" #define R 0.01 #define Q 7 #define PI 3.14159 #DEFINE_SOURCE(gaussian_heat_source,c,t,dS,eqn){ real x; real r,source; C_CENTROID (x,c,t); r=sqrt(y*y); if(r
fluent udf 无法在fluent中解释
#include "udf.h" #define R 0.01 #define Q 7 #define PI 3.14159 #DEFINE_SOURCE(gaussian_heat_source,c,t,dS,eqn){ real x; real r,source; C_CENTROID (x,c,t); r=sqrt(y*y); if(r
fluent udf 无法在fluent中解释#include "udf.h" #define R 0.01 #define Q 7 #define PI 3.14159 #DEFINE_SOURCE(gaussian_heat_source,c,t,dS,eqn){ real x; real r,source; C_CENTROID (x,c,t); r=sqrt(y*y); if(r
define前有#没错,DEFINE不加#,去掉.
real x;改为real x[ND_ND];
告你一个PI的稍微精确的值:3.14159265(35898);
r=sqrt(x*x),你的意思是想r为正数,改x为x[1],即r=sqrt(x[1]*x[1]);(我记得0表示x方向,1表示y方向,2表示z方向,但有些资料不是这么解释的,都直接用1,无论如何,你可以试试看)
祝好.