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

UDF: source, fixed value for a given region

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 4, 2003, 16:21
Default UDF: source, fixed value for a given region
  #1
Ming
Guest
 
Posts: n/a
Hi,

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.

Ming

  Reply With Quote

Old   March 4, 2003, 18:23
Default Re: UDF: source, fixed value for a given region
  #2
Murali
Guest
 
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 (?).

Murali

</font>
  Reply With Quote

Reply


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
gradient source term UDF ak6g08 Fluent UDF and Scheme Programming 0 July 9, 2009 07:37
UDF Source terms not producing expected results... Emmanuel Resch FLUENT 0 July 31, 2008 15:55
Please help me run UDF code for source Suga FLUENT 1 February 3, 2006 04:40
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19
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 14:23.