找回密码
 注册
查看: 7153|回复: 28

UDF求助,恳望指教!(+经验,+讲义)

[复制链接]
发表于 2009-5-14 10:39:35 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
本人初学UDF,按照帮助里的程序在C盘Fluent的安装目录下建立了Fluent.Inc\udf\myudf文件夹,把C源程序copy过去了,环境变量也是正确的,当前工作目录下也建立了libudf\src和libudf\ntx86文件夹,copy源程序到src文件夹下,ntx86下包含3d,3d_host,3d_node文件夹,文件copy和修改完毕,读入case文件后还是有以下信息:
cpp -IC:\FLUENT~1.2\Fluent.Inc\fluent6.2.16/src -IC:\FLUENT~1.2\Fluent.Inc\fluent6.2.16/cortex/src -IC:\FLUENT~1.2\Fluent.Inc\fluent6.2.16/client/src -IC:\FLUENT~1.2\Fluent.Inc\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig-host.h>" C:\Fluent
.2\Fluent.Inc\udf\cataraman\movement(for M and C).c
cpp: Usage: cpp [switches] input output
Error: C:\Fluent 6.2\Fluent.Inc\udf\cataraman\movement(for M and C).c: line 1: parse error.
The Parallel FLUENT process could not be started.

999999 (..\..\src\mpsystem.c@1228): mpt_read: failed: errno = 10054

不知何解。有没有详细的UDF设置步骤啊?太挠头了!

[ 本帖最后由 dr 于 2009-5-14 07:06 编辑 ]
 楼主| 发表于 2009-5-14 10:43:51 | 显示全部楼层
添加一份别人的总结,希望对大家有帮助,也算没白看一会帖。

udf编译的经验总结.rar

4.35 KB, 下载次数: 963

 楼主| 发表于 2009-5-14 14:55:17 | 显示全部楼层
再补充一份讲义,高价悬赏!
 楼主| 发表于 2009-5-14 15:02:29 | 显示全部楼层
讲义1,关于UDF,动网格

UGM02_TRAINING.part1.rar

450 KB, 下载次数: 1036

 楼主| 发表于 2009-5-14 15:03:16 | 显示全部楼层
讲义2,关于UDF,动网格

UGM02_TRAINING.part2.rar

450 KB, 下载次数: 1061

 楼主| 发表于 2009-5-14 15:03:49 | 显示全部楼层
讲义3,关于UDF,动网格

UGM02_TRAINING.part3.rar

450 KB, 下载次数: 974

 楼主| 发表于 2009-5-14 15:04:23 | 显示全部楼层
讲义4,关于UDF,动网格

UGM02_TRAINING.part4.rar

450 KB, 下载次数: 831

 楼主| 发表于 2009-5-14 15:05:21 | 显示全部楼层
讲义5,关于UDF,动网格

UGM02_TRAINING.part5.rar

25.55 KB, 下载次数: 564

 楼主| 发表于 2009-5-17 20:20:37 | 显示全部楼层
哇,大家不能只看不回啊,给点意见吧。谢谢!
 楼主| 发表于 2009-5-17 20:29:36 | 显示全部楼层
我在C里调好的程序怎么在fluent里老出现如下问题:
cpp -IC:\FLUENT~1.2\Fluent.Inc\fluent6.2.16/src -IC:\FLUENT~1.2\Fluent.Inc\fluent6.2.16/cortex/src -IC:\FLUENT~1.2\Fluent.Inc\fluent6.2.16/client/src -IC:\FLUENT~1.2\Fluent.Inc\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" D:\GridgenV15\N
NBY6\claculation\C.c
#f

Opening library "libudf"...
Error: open_udf_library: 系统找不到指定的路径。

Error Object: ()
是安装的问题吗?我把C重新安装了几遍,都是这样,环境变量也没有问题,希望大家给点意见。谢谢!
发表于 2009-5-24 20:42:01 | 显示全部楼层

回复 10# dr 的帖子

你这是不是并行计算导致的?串行有这问题吗?欢迎邮件gbd20022002@163.com

[ 本帖最后由 gbd20022002 于 2009-5-24 12:43 编辑 ]
发表于 2009-6-18 00:05:27 | 显示全部楼层
一种说法:Grid, double check you grid.
二种说法:usually autopartion creates lot of problems, i would suggest if u can read the cas data in single processor and do

manual partionaing and then save the case data and read them in fluent double processor version, i also used to get lot of

errors till i started doing this.
三种说法:I also had such problem. What I understood is, it is due to the insufficient memory. I obserbed that when i did

partitioning for the same case with 2 CPUs but with higher allocated memory, everything was ok. Also, i tried with reduced

number of cells in the domain, on the machine with relatively low memory, again everything was fine. So probably, memory

problem in your case.
详细参见www.cfd-online.com上的帖子
发表于 2009-6-23 21:52:37 | 显示全部楼层
正学这方面东西  下了
发表于 2009-9-6 23:04:53 | 显示全部楼层
我刚开始看这方面的,帮顶一下
发表于 2009-9-9 12:49:14 | 显示全部楼层
C源程序不是拷贝到SRC目录,而是拷到cas文件所在目录,即跟libudf文件夹同级
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表