|
[Sponsors] |
How do I export a parameter from one define-function to another? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 13, 2017, 18:56 |
How do I export a parameter from one define-function to another?
|
#1 |
Member
Join Date: Nov 2016
Posts: 73
Rep Power: 10 |
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 |
|
May 17, 2017, 04:24 |
|
#2 |
Member
KirMaks
Join Date: Aug 2016
Posts: 34
Rep Power: 10 |
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 |
|
|
|
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 |