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

source term contours?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By coglione

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2012, 17:53
Default source term contours?
  #1
New Member
 
Erica
Join Date: Jul 2012
Location: Mountain View, CA
Posts: 14
Rep Power: 14
Magneto is on a distinguished road
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!
Magneto is offline   Reply With Quote

Old   July 19, 2012, 05:50
Default
  #2
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
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
czhao86 likes this.
coglione is offline   Reply With Quote

Old   July 19, 2012, 14:10
Default Thank you!
  #3
New Member
 
Erica
Join Date: Jul 2012
Location: Mountain View, CA
Posts: 14
Rep Power: 14
Magneto is on a distinguished road
Thanks! This is very helpful!
Magneto is offline   Reply With Quote

Old   July 20, 2012, 10:08
Default Define macros
  #4
New Member
 
Join Date: Jul 2012
Posts: 18
Rep Power: 14
mila_oliv is on a distinguished road
To do so do I have to use any specific define macro?
And what about compiling and hooking, just like tutorial shows?

mila_oliv is offline   Reply With Quote

Old   July 20, 2012, 12:27
Default
  #5
New Member
 
Erica
Join Date: Jul 2012
Location: Mountain View, CA
Posts: 14
Rep Power: 14
Magneto is on a distinguished road
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.
Magneto is offline   Reply With Quote

Old   July 20, 2012, 13:16
Default
  #6
New Member
 
Join Date: Jul 2012
Posts: 18
Rep Power: 14
mila_oliv is on a distinguished road
Thanks, Magneto!!
mila_oliv is offline   Reply With Quote

Reply

Tags
contours, source


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
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


All times are GMT -4. The time now is 12:36.