|
[Sponsors] |
February 4, 2013, 18:37 |
UDF compilation through nmake
|
#1 | |
Senior Member
christine
Join Date: Jul 2009
Location: europe
Posts: 125
Rep Power: 16 |
hello everyone,
I am trying to sort out problems with UDF, but no way. I'm using FLUENT 13 and I have installed Microsoft Visual Studio 10.0 I have windows XP, 32bit. I have encountered many problems, I could fix part of them thanks to some similar problems I have found on this forum, but it is not enough. When opening Fluent from Microsoft Visual Studio prompt command, now I can build and load my library directly from the fluent panel. But if I do a "nmake" from the prompt, it does not work and gives me : makefile(49): fatal error U 1050: you need to define the environmental variable FLUENT_INC. It is important for me to build the library in this way because, I will work with a UDF calling a source file in Fortran, and this can't be done through the FLuent panel. At first, I couldn't even build and load from fluent, but I followed this : http://www.cfd-online.com/Forums/fluent-udf/47783-about-udf-compiling-issues-nmake.html where the link http://www.cfd-online.com/Wiki/Fluen...at_is_wrong.3F explains : Quote:
Maybe going back from the beginning could also be helpful: about the directories : My work directory should contain : *.cas, *.dat, udf.c. Should I create manually the libudf and libudf/src directories or the nmake should do it itself? about the makefile and user_nt.udf? I took them from the ANSYS Inc\v130\fluent\fluent13.0.0\src directory and modified the user_nt.udf as mentionned in the Makefile_nt.udf file that I renamed as makefile. Is there anything else to do? All I could read about udf in the forum couldn't give me the final solution. I also tried to run the \Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat but nothing happens. Thank you for any help!! |
||
Tags |
environmental variables, nmake, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) | Yogini | Fluent UDF and Scheme Programming | 7 | October 3, 2012 07:24 |
udf u1064 nmake | ali | FLUENT | 3 | October 15, 2010 11:32 |
UDF compilation problem -- "undeclared variable" | Henrik Ström | FLUENT | 1 | September 21, 2005 05:25 |
UDF compilation error | Szabolcs Varga | FLUENT | 2 | April 14, 2004 10:12 |
Compiled UDF / Compilation problem | mikhail | FLUENT | 1 | October 13, 2000 06:12 |