|
[Sponsors] | |||||
|
|
|
#1 |
|
Guest
Posts: n/a
|
How to pass a variable from a define macro to another
for instance, in DEFINE_ADJUST macro, I calculat the sum of C_VOLUME under certain condition, and then I need to use the sum of C_VOLUME in DEFINE_SOURCE Help~ Regards |
|
|
||
|
|
|
#2 |
|
Guest
Posts: n/a
|
hi Padian,
you may use an external variable which should be defined at the top of your c-file and not locally within your Define-Macros. Max |
|
|
||
|
|
|
#3 |
|
Guest
Posts: n/a
|
Many thanks to your help.
I have solved the problem. Regards~ |
|
|
||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to define a Macro accessing rad intensity | Grey | FLUENT | 0 | May 21, 2007 00:12 |
| Why doesnbt the macro forall work for the volVectorField variable | siwen | OpenFOAM Running, Solving & CFD | 2 | February 24, 2006 15:27 |
| field variable macro of the mean-x-velocity? | zt xie | FLUENT | 2 | November 15, 2005 05:48 |
| define my own DEFINE macro? to model pithing naca | calogero | FLUENT | 0 | April 10, 2003 05:10 |
| Macro/Cell-variable for incident radiation ? | Vishnu | FLUENT | 0 | April 6, 2001 23:29 |