|
[Sponsors] |
August 9, 2005, 13:47 |
building compiled udf s in windows
|
#1 |
Guest
Posts: n/a
|
I was trying to build a compiled udf in windows xp.I tried out with the example given in the UDF manual. When I typed "nmake" in the command prompt from the ../../2d directory,it gives a weird error msg in the command prompt saying :
# Generating udf_names.c because of makefile udfexample.obj 'sed' is not recognized as an internal or external command, operable program or batch file. NMAKE : fatal error U1077: 'sed' : return code '0x1' Stop. what does this mean?? what is going wrong??I have followed all the procedures in the UDF manual. can anybody help me out?? thanks in advance. sourav |
|
August 9, 2005, 14:33 |
Re: building compiled udf s in windows
|
#2 |
Guest
Posts: n/a
|
I cannot be sure, but if i remember correctly, sed is a 'stream editor' commonly used in *nix systems. Apparently, it has a DOS counterpart which is somehow being called by nmake. I'm not sure why you type 'nmake' in the ../../2d directory (you still have not told us what the current directory [.] is?).
|
|
August 10, 2005, 04:10 |
Re: building compiled udf s in windows
|
#3 |
Guest
Posts: n/a
|
Hi Sourav
Is there any need to build or compile the udf. As much as I know, Fluent reads those udf's and compiles them themselves, however, you ought to have C++ in your computer and Fluent should be knowing its path, that can be done using Environment Variables. Vinod Dhiman |
|
August 10, 2005, 06:31 |
Re: building compiled udf s in windows
|
#4 |
Guest
Posts: n/a
|
thanks a lot for the responses.I have fortunately been able to solve the problem.Actually,although I had the FLUENT.INC folder included in the executable path,I did not have the ../../ntbin/ntx86 included in the path.There is an executable file in ../../ntbin/ntx86 called setenv.exe which when run, does this inclusion.sed.exe is a file in the ntx86 directory.The problem was that since the ntx86 directory was not in the path,sed.exe could not be run by DOS. As for the need for compiling UDFs,interpreted UDFs have certain limitations which can be overcome by compiling them.The differences are discussed in detail in the FLUENT UDF manual
|
|
August 10, 2005, 06:42 |
Re: building compiled udf s in windows
|
#5 |
Guest
Posts: n/a
|
That's good Sourav
Best of your work Vinod Dhiman |
|
August 13, 2005, 06:46 |
Re: building compiled udf s in windows
|
#6 |
Guest
Posts: n/a
|
Dear Sir could you explain more since fluent compiler dosent understand udf.h in my program. how to tell fluent c++ path ? where to go. is Visuall c++ give same results. thank you
|
|
August 13, 2005, 08:09 |
Re: building compiled udf s in windows
|
#7 |
Guest
Posts: n/a
|
Hi Firas
It depends on what OS you are using. If you are using Visula C++ then it implies you're using Windows. Although, I have never compiled it in Windows, however, I don't think VC++ will do the job. Any how, you have to define Environment Variables. You might be knowing the path to C++ compiler, the file you use to start VC++. Then in control panel, go to system, click on advanced tab, at the lowest line, click on environment variables. Click on new, and in the variable write c++ and in the value, the full path of that file. The udf.h file should be in the same directory where the udf file written by you is located. After that call this udf in fluent. It should work. Best of your work Vinod Dhiman |
|
August 17, 2005, 09:26 |
Re: building compiled udf s in windows
|
#8 |
Guest
Posts: n/a
|
Hello Sourav,
could you please explain in detail what exactly you did. Was it just executing setenv.exe ? After I do this I still cannot compile UDFs. Thanks in advance Dirk |
|
August 18, 2005, 02:46 |
Re: building compiled udf s in windows
|
#9 |
Guest
Posts: n/a
|
Hi Vinod thank you i used cpp compiler called Dev-cpp and have the following errors: dev-cpp -IC:\FLUENT.INC\fluent6.0/src -IC:\FLUENT.INC\fluent6.0/cortex/src -IC:\FLUENT.INC\fluent6.0/client/src -IC:\FLUENT.INC\fluent6.0/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" unsteady.c error: udf compiler: cannot execute dev-cpp -IC:\FLUENT.INC\fluent6.0/src -IC:\FLUENT.INC\fluent6.0/cortex/src -IC:\FLUENT.INC\fluent6.0/client/src -IC:\FLUENT.INC\fluent6.0/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" unsteady.c
what do you think about best regards Firas |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf windows 64 bit | somasundaram | Fluent UDF and Scheme Programming | 0 | October 4, 2011 00:37 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
Compilation error OF1.5-dev on Suse10.3 | darenyang | OpenFOAM Installation | 0 | April 29, 2009 05:55 |
compiled or interpreted udf | Aireen | FLUENT | 11 | August 25, 2005 01:54 |
Compiled UDF | Ale | FLUENT | 4 | October 6, 2003 04:56 |