CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF: source, fixed value for a given region

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

LinkBack Thread Tools Display Modes
Old   March 4, 2003, 16:21
Default UDF: source, fixed value for a given region
Posts: n/a

If there is any friend here once worked on UDF, source term, please give me some help.

It is a 2-D, species transport, laminar flow in a slit. Pure water enters the slit. I want to set a fixed value of species A in the middle of the slit.

I can not find a way to let Fluent know this. It can take a UDF for a source term, but not for a fixed value. If I use same UDF, and select "fixed value" in boundary setting for Fluid, then it will give a message saying 'void value expected'.

I also tried Adapt-separate skill trying to separate this middle region and specify a species fraction value for it, but after I separated that region, it still belonged to Interior type rather than fluid type, therefore shutting the door of setting value.

Thanks for any suggestions.


  Reply With Quote

Old   March 4, 2003, 18:23
Default Re: UDF: source, fixed value for a given region
Posts: n/a
<font face = "courier new">My suggn is more of a trick/workaround.

Choose a scalar equation to represent the species. Set source for scalar = 0. Also u have the choice of 'turning off' the convective term in the UDS panel. This way you are going to solve for the following scalar equation:

dS d<sup>2</sup>S
-- = D ---
dT dl<sup>2</sup>

where l is x,y or z (einstenian notation). Now set the boundary condition for the scalar to be the value which you want to fix in 'all' the boundaries. This will ensure that the scalar will have a fixed value through out the system and your problem is fixed (?).


  Reply With Quote


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
gradient source term UDF ak6g08 Fluent UDF and Scheme Programming 0 July 9, 2009 06:37
UDF Source terms not producing expected results... Emmanuel Resch FLUENT 0 July 31, 2008 14:55
Please help me run UDF code for source Suga FLUENT 1 February 3, 2006 04:40
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19
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:27.