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

source term contours?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By coglione

Reply
 
LinkBack Thread Tools 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: 5
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: 8
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: 5
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: 5
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: 5
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: 5
mila_oliv is on a distinguished road
Thanks, Magneto!!
mila_oliv is offline   Reply With Quote

Reply

Tags
contours, source

Thread Tools
Display Modes

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 On
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 5 June 21, 2013 05:39
GPU Linear Solvers for OpenFOAM gocarts OpenFOAM Announcements from Other Sources 35 March 1, 2012 21:41
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 06: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 08:39.