|
|
[求助]
动网格UDF compile出错求助
主要是想在微液滴生成器上加入振子的动网格,动作为梯形波模式,采用compile时 点击build和load之后提示分别见附图,求高手指点问题究竟出在哪里。。
代码如下,
#include <stdio.h>
#include "udf.h"
DEFINE_CG_MOTION(move1, dt, cg_vel, cg_omega, time, dtime)
{
real loc=0.0;
real velo=0.0;
real ttime=0.0;
real deltat=0.0;
/* reset velocities */
NV_S (cg_vel, =, 0.0);
NV_S (cg_omega, =, 0.0);
if (!Data_Valid_P ())
return;
ttime=time;
deltat=dtime;
if(((ttime+deltat)-(int)((ttime+deltat)/0.001)*0.001)<=0.000020&&((ttime+deltat)-(int)((ttime+deltat)/0.001)*0.001)>0)
{
velo = 0.0000015/0.000020;
loc += velo * dtime;
}
if(((ttime+deltat)-(int)((ttime+deltat)/0.001)*0.001)<=0.000070&&((ttime+deltat)-(int)((ttime+deltat)/0.001)*0.001)>0.000020)
{
velo = 0.0;
}
if(((ttime+deltat)-(int)((ttime+deltat)/0.001)*0.001)<=0.0001&&((ttime+deltat)-(int)((ttime+deltat)/0.001)*0.001)>0.000070)
{
velo = (-1)*0.0000015/0.000030;
loc += velo * dtime;
}
if(((ttime+deltat)-(int)((ttime+deltat)/0.001)*0.001)<=0.001&&((ttime+deltat)-(int)((ttime+deltat)/0.001)*0.001)>0.0001)
{
velo = 0.0;
}
cg_vel[0] = velo;
}
![动网格UDF compile出错求助]()
1.png
![动网格UDF compile出错求助-1]()
2.jpg
错误提示如下:
点击build后
> Deleted old libudf\win64\3ddp\libudf.dll
1 file(s) copied.
1 file(s) copied.
(system "copy C:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\win64\3ddp\makefile"
1 file(s) copied.
(chdir "libudf" ()
(chdir "win64\3ddp" ()
tixing-1d5um.c
C:\Fluent.Inc\fluent6.3.26\src\config.h(119) : error C2143: syntax error : missing '{' before ':'
C:\Fluent.Inc\fluent6.3.26\src\config.h(119) : error C2059: syntax error : ':'
C:\Fluent.Inc\fluent6.3.26\cortex\src\dll.h(58) : error C2061: syntax error : identifier 'CX_DLL_GetProc'
C:\Fluent.Inc\fluent6.3.26\cortex\src\dll.h(58) : error C2059: syntax error : ';'
C:\Fluent.Inc\fluent6.3.26\cortex\src\dll.h(58) : error C2059: syntax error : 'type'
Done.
------------------------------------------------------------
点击load后
"f:/staircase_1.5um_520k_2us"
Opening library "libudf"...
Error: open_udf_library: The system cannot find the file specified.
Error Object: ()
[ Last edited by amberpei2010 on 2013-11-23 at 15:45 ] |
» 猜你喜欢
售SCI文章,我:8O.5.5.1O.54,科目全,可十急
已经有5人回复
售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急
已经有5人回复
售SCI文章,我:8O5.5.1.O.54,科目齐全,可+急
已经有3人回复
面上没中,邀请各位路过的虫友分析一下分数
已经有13人回复
售SCI一区T0P文章,我:8.O.55.1.O54,科目全,可伽急
已经有8人回复
两块石头
已经有8人回复
初秋的晨风
已经有6人回复
学科评审组评审是指会评吗?
已经有9人回复
售SCI一区T0P文章,我:8O.55.1.O.54,科目全,可伽急
已经有14人回复
广西大学-广州大学招聘博士后 欢迎广大优秀人才!!!
已经有7人回复
» 本主题相关价值贴推荐,对您同样有帮助:
|