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

How to pass a variable from a define macro...

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 29, 2008, 23:49
Default How to pass a variable from a define macro...
  #1
Padian
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
  Reply With Quote

Old   May 30, 2008, 06:19
Default Re: How to pass a variable from a define macro...
  #2
max
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
  Reply With Quote

Old   May 30, 2008, 06:22
Default Re: How to pass a variable from a define macro...
  #3
Padian
Guest
 
Posts: n/a
Many thanks to your help.

I have solved the problem.

Regards~
  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
How to define a Macro accessing rad intensity Grey FLUENT 0 May 21, 2007 01:12
Why doesnbt the macro forall work for the volVectorField variable siwen OpenFOAM Running, Solving & CFD 2 February 24, 2006 16:27
field variable macro of the mean-x-velocity? zt xie FLUENT 2 November 15, 2005 06:48
define my own DEFINE macro? to model pithing naca calogero FLUENT 0 April 10, 2003 06:10
Macro/Cell-variable for incident radiation ? Vishnu FLUENT 0 April 7, 2001 00:29


All times are GMT -4. The time now is 18:15.