24小时热门版块排行榜    

查看: 1745  |  回复: 4

amberpei2010

银虫 (小有名气)

[求助] 动网格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 ]
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

苏_愚

铜虫 (小有名气)

楼主 小弟遇到类似问题
请问 解决了么?谢谢回复 啊
天下大事,分久必合,合久必分
2楼2014-02-24 17:32:59
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

amberpei2010

银虫 (小有名气)

引用回帖:
2楼: Originally posted by 苏_愚 at 2014-02-24 17:32:59
楼主 小弟遇到类似问题
请问 解决了么?谢谢回复 啊

解决啦。。。你把之前在计算文件夹里面生成的libudf文件夹删除,重新启动一下再compile就可以了。。。
3楼2014-02-25 13:50:52
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

苏_愚

铜虫 (小有名气)

引用回帖:
3楼: Originally posted by amberpei2010 at 2014-02-25 13:50:52
解决啦。。。你把之前在计算文件夹里面生成的libudf文件夹删除,重新启动一下再compile就可以了。。。...

很感谢回复。
类似问题指的是我目前做的模型也差不多是在微孔板上方加了压电振子,对其模拟。
有些细节很是疑惑,能否再厚着脸皮恳请师姐拨冗多加指点一下,感恩感恩!
天下大事,分久必合,合久必分
4楼2014-02-25 15:32:14
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

amberpei2010

银虫 (小有名气)

引用回帖:
4楼: Originally posted by 苏_愚 at 2014-02-25 15:32:14
很感谢回复。
类似问题指的是我目前做的模型也差不多是在微孔板上方加了压电振子,对其模拟。
有些细节很是疑惑,能否再厚着脸皮恳请师姐拨冗多加指点一下,感恩感恩!...

可以一起讨论讨论,我现在这个课题也做不出来
5楼2014-02-26 14:15:53
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 amberpei2010 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 欢迎发来filecode的Mz6后的代码验证其规律 +31 医学老男孩 2026-08-13 70/3500 2026-08-16 08:29 by 医学老男孩
[精细化工] 招聘 金属平磨液,抛光液研发工程师 +3 小天0311 2026-08-14 3/150 2026-08-16 07:31 by H9PLUS
[基金申请] filecode=后面第一个是大写字母 +6 wangze12014 2026-08-14 7/350 2026-08-15 20:12 by gltch
[基金申请] filecode +8 cratir 2026-08-14 12/600 2026-08-15 18:08 by zyfgau
[基金申请] 小木虫上这么多卖论文的,真有人买论文么?感觉没必要啊 +12 Tide man 2026-08-10 13/650 2026-08-15 16:34 by 氺木
[基金申请] 哪位老哥知道今年的国自然具体哪一天放榜? +7 Ldrop2023 2026-08-13 7/350 2026-08-15 15:57 by mzhh2000
[基金申请] 关于Filecode分析方法 +10 majunge000 2026-08-10 13/650 2026-08-15 12:26 by hanpeng972
[基金申请] 咱们一起用铁证分析2026国家社科基金中标与否 +7 启萌科技 2026-08-12 22/1100 2026-08-14 23:45 by Noways
[基金申请] 是这周出结果还是下周出结果? +4 yuleib84 2026-08-11 4/200 2026-08-14 23:05 by lfy8008
[基金申请] 奇怪,两个人的filecode固定段从头到尾一模一样 +8 布布和一二 2026-08-10 11/550 2026-08-14 14:58 by Equinoxhua
[基金申请] 应该是93bebmhtak前后十一个字符比较关键 +23 Lanmanbaby 2026-08-09 37/1850 2026-08-14 13:40 by Equinoxhua
[基金申请] filecode +15 documentary 2026-08-10 17/850 2026-08-14 10:08 by kissu88
[基金申请] FileCode能看出啥? +10 要乐观耀哥 2026-08-10 32/1600 2026-08-14 09:37 by 要乐观耀哥
[文学芳草园] 阿姨 +4 汪汪锅 2026-08-09 4/200 2026-08-13 19:43 by arzu_hma
[基金申请] 重要来源:本周末出结果 +10 瞬息宇宙 2026-08-12 10/500 2026-08-13 15:46 by likettle
[基金申请] 不应该看fileCode +7 且听虎啸 2026-08-12 9/450 2026-08-13 14:27 by flydreamws
[基金申请] 综述论文作为代表作会不会影响评审专家的印象分? +11 yufeiwaner 2026-08-09 13/650 2026-08-12 08:17 by yufeiwaner
[基金申请] 帮忙看看fileCode +7 wwncly 2026-08-10 13/650 2026-08-11 19:36 by 冰心玉壶晴
[基金申请] 什么时候出结果,有咨询渠道??? +3 Tide man 2026-08-11 3/150 2026-08-11 17:54 by kudofaye
[基金申请] 确定了,国自然21号放榜 +6 布布和一二 2026-08-10 7/350 2026-08-10 19:15 by 2000zf36392
信息提示
请填处理意见