|
[Sponsors] |
How to pass a variable from a define macro... |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 29, 2008, 22:49 |
How to pass a variable from a define macro...
|
#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 |
|
May 30, 2008, 05:19 |
Re: How to pass a variable from a define macro...
|
#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 |
|
May 30, 2008, 05:22 |
Re: How to pass a variable from a define macro...
|
#3 |
Guest
Posts: n/a
|
Many thanks to your help.
I have solved the problem. Regards~ |
|
Thread Tools | Search this Thread |
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 |