CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   source term contours? (

Magneto July 18, 2012 16:53

source term contours?
Hi Everyone,

I am using UDFs to add source terms to my domain. I would like to view contours of the source terms, which vary over the volume, in the same way Fluent lets you view velocity or pressure contours. Does anyone know how to do this?

Thanks a lot!

coglione July 19, 2012 04:50

Activate a User-Defined_Memory Define/User Defined/Memory and fill it within your Define_Source-Macro using something like

C_UDMI(c,t,0) = source;

Contours of UDM can be post processed like any other variable.


Magneto July 19, 2012 13:10

Thank you!
Thanks! This is very helpful! :)

mila_oliv July 20, 2012 09:08

Define macros
To do so do I have to use any specific define macro?
And what about compiling and hooking, just like tutorial shows?


Magneto July 20, 2012 11:27

I just stuck the command

C_UDMI(c,t,0) = source;

into my DEFINE_SOURCE macro where I calculate the source. This stores the source in user-defined memory location 0. Note that you have to allocate this memory before running the simulation (in the user-defined memory menu) or you will get an error.

mila_oliv July 20, 2012 12:16

Thanks, Magneto!!

All times are GMT -4. The time now is 20:31.