|
[Sponsors] |
July 18, 2012, 17:53 |
source term contours?
|
#1 |
New Member
Erica
Join Date: Jul 2012
Location: Mountain View, CA
Posts: 14
Rep Power: 14 |
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! |
|
July 19, 2012, 05:50 |
|
#2 |
Senior Member
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17 |
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. cheers |
|
July 19, 2012, 14:10 |
Thank you!
|
#3 |
New Member
Erica
Join Date: Jul 2012
Location: Mountain View, CA
Posts: 14
Rep Power: 14 |
Thanks! This is very helpful!
|
|
July 20, 2012, 10:08 |
Define macros
|
#4 |
New Member
Join Date: Jul 2012
Posts: 18
Rep Power: 14 |
To do so do I have to use any specific define macro?
And what about compiling and hooking, just like tutorial shows? |
|
July 20, 2012, 12:27 |
|
#5 |
New Member
Erica
Join Date: Jul 2012
Location: Mountain View, CA
Posts: 14
Rep Power: 14 |
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. |
|
July 20, 2012, 13:16 |
|
#6 |
New Member
Join Date: Jul 2012
Posts: 18
Rep Power: 14 |
Thanks, Magneto!!
|
|
Tags |
contours, source |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem of SOURCE term gradient in UDS | wind | Fluent UDF and Scheme Programming | 6 | December 1, 2022 15:21 |
GPU Linear Solvers for OpenFOAM | gocarts | OpenFOAM Announcements from Other Sources | 37 | August 17, 2022 15:22 |
UDF source term | jerome_ | FLUENT | 2 | July 11, 2011 12:55 |
How to write source term into scalar Fiel | JimKnopf | OpenFOAM Programming & Development | 0 | March 23, 2011 06:59 |
UDFs for Scalar Eqn - Fluid/Solid HT | Greg Perkins | FLUENT | 0 | October 11, 2000 04:43 |