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

subroutines in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2007, 15:10
Default subroutines in UDF
  #1
kk
Guest
 
Posts: n/a
Can any one tell me is it OK to include other subroutines (Calculate some values and return the values into the UDF main) in the UDF? I tried once, but it seems it couldn't be complied. BTW, I am using the EXPRESS VC++ .
  Reply With Quote

Old   February 8, 2007, 02:36
Default Re: subroutines in UDF
  #2
Bogdan
Guest
 
Posts: n/a
yes is ok, I have a main file a header file and a functions file and it works fine.
  Reply With Quote

Old   February 8, 2007, 15:20
Default Re: subroutines in UDF
  #3
kk
Guest
 
Posts: n/a
what does this message mean?: "udf limitation: Intensity: prototypes must appear outside the function body."

'Intensity' is a subrountin in my UDF.
  Reply With Quote

Old   February 9, 2007, 02:38
Default Re: subroutines in UDF
  #4
Bogdan
Guest
 
Posts: n/a
in your header file you should declare the prototype of your function (what parameters take, if return a value), or if you don't have a header file after the #include statements put your function prototype.
  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
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 08:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 22:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 09:45.