我用Compiled UDFs时,只要一点“Add”,鼠标就会变成一个红色的禁止符号,然后Fluent提示:
[color=#DC143C]Error: FLUENT received a fatal signal (SEGMENTATION VIOLATION).
[color=#DC143C]Error Object: ()
我看是没人遇到过这么奇怪的问题了。。
最后我按照Fluent Help 里的说明,手动建立了以下路径和文件↓
├─ntx86
│ ├─2d
│ │ user_nt.udf
│ │ makefile
│ │ udf_names.c
│ └─2ddp
│ user_nt.udf
│ makefile
│ udf_names.c
└─src
rotor.c
然后用Dos进入2d(或2ddp)文件夹下,使用nmake命令终于成功了,o(∩_∩)o...
显示如下↓
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cl /c /Za /DUDF_EXPORTING -Id:\fluent.inc\fluent6.3.26\ntx86\2d -Id:\fl
uent.inc\fluent6.3.26\src -Id:\fluent.inc\fluent6.3.26\cortex\src -Id:\fluent.
inc\fluent6.3.26\client\src -Id:\fluent.inc\fluent6.3.26\tgrid\src -Id:\fluent
.inc\fluent6.3.26\multiport\src ..\..\src\rotor.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
rotor.c
# Generating udf_names.c because of rotor.obj
cl /c /Za /DUDF_EXPORTING -Id:\fluent.inc\fluent6.3.26\ntx86\2d -Id:\fl
uent.inc\fluent6.3.26\src -Id:\fluent.inc\fluent6.3.26\cortex\src -Id:\fluent.
inc\fluent6.3.26\client\src -Id:\fluent.inc\fluent6.3.26\tgrid\src -Id:\fluent
.inc\fluent6.3.26\multiport\src udf_names.c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for 80x86
Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
udf_names.c
# Linking libudf.dll because of makefile user_nt.udf udf_names.obj rotor.obj
link /Libpath:d:\fluent.inc\fluent6.3.26\ntx86\2d /dll /out:libudf.dl
l udf_names.obj rotor.obj fl6326s.lib
Microsoft (R) Incremental Linker Version 6.00.8168
Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
Creating library libudf.lib and object libudf.exp