本人是新手,按照教材上编写内容操作,但是在udf导入fluent中,出现了一些状况。 这是编写的程序: #include"stdio.h"#include"udf.h"DEFINE_CG_MOTION(valve,dt,cg_omega,time,dtime){if(time<0.5)cg_vel[0]=-0.02;elsecg_vel[0]=0.0;}在导入过程中出现的问题如下:Deleted old libudf
tx862dlibudf.dll已复制 1 个文件。(system "copy F:progamFluent.Incfluent6.3.26srcmakefile_nt.udf libudf
tx862dmakefile")已复制 1 个文件。(chdir "libudf")()(chdir "ntx862d")()valve.c....srcvalve.c(3) : warning C4003: not enough actual parameters for macro 'DEFINE_CG_MOTION'....srcvalve.c(4) : error C2055: expected formal parameter list, not a type list....srcvalve.c(5) : error C2115: '<' : incompatible types....srcvalve.c(6) : error C2065: 'cg_vel' : undeclared identifier....srcvalve.c(6) : error C2109: subscript requires array or pointer type....srcvalve.c(6) : error C2106: '=' : left operand must be l-value....srcvalve.c(8) : error C2109: subscript requires array or pointer type....srcvalve.c(8) : error C2106: '=' : left operand must be l-valueDone.求解答 |
|
|
|
|
共 3 个关于本帖的回复 最后回复于 2013-8-10 10:26