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

How do I export a parameter from one define-function to another?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 13, 2017, 18:56
Default How do I export a parameter from one define-function to another?
  #1
Member
 
Join Date: Nov 2016
Posts: 73
Rep Power: 10
h0rst is on a distinguished road
Hello everyone,

I'm calculating the average temperature by a function hooked by "execute at end". It is a define on demand function.

I need this temperature in a different udf, which is used as an initialization function

How can I export the temperatures from one udf to the other?


Best regards
h0rst
h0rst is offline   Reply With Quote

Old   May 17, 2017, 04:24
Default
  #2
Member
 
KirMaks
Join Date: Aug 2016
Posts: 34
Rep Power: 10
kirmaks is on a distinguished road
Hallo,

there are many possible options:

1. You can try to define the global variable which will be used by both UDFs;
2. You may use scheme variable (there is an example in help, search for rpgetvar);
3. You may update some text file and read the value there (will be the slowest).
4. ...

Regards, Maks
kirmaks is offline   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
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 11:51
An odd ERROR mdakbari Fluent UDF and Scheme Programming 7 April 4, 2016 05:30
Unable to install OpenFOAM 1.6-ext Maimouna OpenFOAM Installation 23 May 8, 2014 06:47
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42


All times are GMT -4. The time now is 21:44.