CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Macro to access mean variables (https://www.cfd-online.com/Forums/fluent/35620-macro-access-mean-variables.html)

Dragos February 2, 2005 04:11

Macro to access mean variables
 
Hello everybody, I am running an unsteady case and I want to access from my udf the mean velocities. Is there a macro for this, because I could not find it in the manual pages?

Thank you! Dragos

ap February 2, 2005 08:41

Re: Macro to access mean variables
 
Hi Dragos, the macros you need seem not to be available in FLUENT.

They are not documented and I've never been able to find them looking into the FLUENT header files.

Regards, ap :)

Dragos February 2, 2005 11:30

Re: Macro to access mean variables
 
I got the answer from a pro: mean u velocity: U = SV_STORAGE_R(c,t, SV_U_MEAN);

The same for v, w and p. For rms values: urms = SV_STORAGE_R(c,t,SV_U_RMS)

I hope those of you who need this information, will find this answer helpfull.


All times are GMT -4. The time now is 14:54.