CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

HELP! Problem compiling UDF function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 19, 2006, 18:59
Default HELP! Problem compiling UDF function
  #1
Syrakus
Guest
 
Posts: n/a
Hi,

I'm desperately trying to solve a problem. I'm running through the tutorial on dynamic meshing in the Fluent user guide. When I get to the step where I need to import my UDF: Define->User Defined->Functions->Compiled,

I get an error message. I have been trying to solve this using both Windows and Linux, but with no success.

I'm getting the following error message:

----------------------------------- cpp -IC:\Fluent.Inc\fluent6.1/src -IC:\Fluent.Inc\fluent6.1/cortex/src -IC:\Fluent.Inc\fluent6.1/client/src -IC:\Fluent.Inc\fluent6.1/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" x-dir.c Error: x-dir.c: line 3: parse error.

1 file(s) copied. (system "move user_nt.udf libudf\ntx86\2ddp")0 (system "copy C:\Fluent.Inc\fluent6.1\src\makefile_nt.udf libudf\ntx86\2ddp\makefile") 1 file(s) copied. 0 (chdir "libudf")() (chdir "ntx86\2ddp")() 'nmake' is not recognized as an internal or external command, operable program or batch file. 'nmake' is not recognized as an internal or external command, operable program or batch file. ------------------------------------

Line 3, where the apparent error is reads:

static real v_prev = 0.0;

I'm lost. Can anyone help me out?

Thanks

Syrakus
  Reply With Quote

Old   March 19, 2006, 20:13
Default Re: HELP! Problem compiling UDF function
  #2
Ahmed
Guest
 
Posts: n/a
The parser stops at line 3, but you have to check both line 1 and 2. This is a C language syntax rule.
  Reply With Quote

Old   March 19, 2006, 21:58
Default Re: HELP! Problem compiling UDF function
  #3
Alex
Guest
 
Posts: n/a
Thanks Ahmed,

the problem seems to be that it can't identify the command "nmake". I'm following the tutorial step by step and yet no success. I get stuck at step 8 in the dynamic mesh tutorial.

Is there something about compiling I should know, that isn't mentioned in the tutorial?
  Reply With Quote

Old   March 19, 2006, 23:08
Default Re: HELP! Problem compiling UDF function
  #4
Ahmed
Guest
 
Posts: n/a
Fluent is most tuned to work with MS C compiler, do you have it correctly installed on your computer (Check your path)
  Reply With Quote

Old   April 3, 2006, 08:58
Default Re: HELP! Problem compiling UDF function
  #5
Di
Guest
 
Posts: n/a
Hey i have the same problem: trying to solve tutorial 11 on dynamic meshing in the Fluent user guide, and get stuck at step8 (Mesh motion) where I need to import my UDF: Define->User Defined->Functions->Compiled

The error message seems not to find the command "nmake"!!!

Help?! Thanks, Di

  Reply With Quote

Old   April 6, 2006, 17:33
Default Re: HELP! Problem compiling UDF function
  #6
suvarchal kumar
Guest
 
Posts: n/a
If you are working in windows environment please do install visual C++ and do not forget to register at ENVIRONMENT VARIABLEs at end of installation .
  Reply With Quote

Old   April 7, 2006, 10:48
Default Re: HELP! Problem compiling UDF function
  #7
Di
Guest
 
Posts: n/a
Hey, thanks it works now

I am working in windows and visual C++ was already installed, but some of my Environment Variables were missing...

Lesson learned: Always check whether ALL environment variables are set!!!

Di
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with function Compute_Force_And_Moment zedas FLUENT 1 October 15, 2012 00:36
help: udf compiling problem on 64 bit windows XP Hsieh FLUENT 2 September 10, 2009 04:51
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 00:35
Udf compiling problem ranjit FLUENT 1 January 26, 2007 10:03
C_NNODES UDF 'function' problem Matthew Brannock FLUENT 2 June 21, 2000 22:46


All times are GMT -4. The time now is 05:27.