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

Question about passing Data and calling UDFs

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 20, 2011, 10:30
Default Question about passing Data and calling UDFs
  #1
New Member
 
Jack cosby
Join Date: Jul 2011
Posts: 15
Rep Power: 6
3DmaniacSLDWRKS is on a distinguished road
Hey guys, Im using Fluent 6.23, and im facing a problem and would appreciate your input. So basically I have 2 questions that have been puzzling me, 1st of them being: How do you call a UDF from with in another UDF? say you have a conditional situation with in a UDF where if 1st condition happens you need to return but if second condition happens you need to call another UDF to operate on the data from thr current UDF?
My second question is how do you save a scalar Value to use in next UDFs? Im not sure what happens when you declare a variable Global and then call it using Extern variable capability from another source file... How long does this variable live before it is reset?
Or can I Use DEFINE_RW to write the data in file and then read it back in the next macro?

note: I need these UDFs to be in different source files because they are called in different stages of the run. OR CAN I? is it ok(possible) to call different macros within the same source file in different stages of an automated(journal) Run?

Thanks for your inputs,
A.A

Last edited by 3DmaniacSLDWRKS; July 20, 2011 at 10:46.
3DmaniacSLDWRKS is offline   Reply With Quote

Reply

Tags
calling udfs reading data

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:04.