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, 16:53
Default source term contours?
  #1
New Member
 
Erica
Join Date: Jul 2012
Location: Mountain View, CA
Posts: 14
Rep Power: 13
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, 04: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, 13:10
Default Thank you!
  #3
New Member
 
Erica
Join Date: Jul 2012
Location: Mountain View, CA
Posts: 14
Rep Power: 13
Magneto is on a distinguished road
Thanks! This is very helpful!
Magneto is offline   Reply With Quote

Old   July 20, 2012, 09:08
Default Define macros
  #4
New Member
 
Join Date: Jul 2012
Posts: 18
Rep Power: 13
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, 11:27
Default
  #5
New Member
 
Erica
Join Date: Jul 2012
Location: Mountain View, CA
Posts: 14
Rep Power: 13
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, 12:16
Default
  #6
New Member
 
Join Date: Jul 2012
Posts: 18
Rep Power: 13
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 14:21
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 37 August 17, 2022 14:22
UDF source term jerome_ FLUENT 2 July 11, 2011 11:55
How to write source term into scalar Fiel JimKnopf OpenFOAM Programming & Development 0 March 23, 2011 05:59
UDFs for Scalar Eqn - Fluid/Solid HT Greg Perkins FLUENT 0 October 11, 2000 03:43


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