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

User-Defined Scalar convective flux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2001, 05:12
Default User-Defined Scalar convective flux
  #1
Ola Nordblom
Guest
 
Posts: n/a
Hello,

I'm trying to simulate the transport of a passive scalar in a confined region with a free surface separating water and air. The free surface is modelled using Fluent's VOF model. Scalar transport specified as a species mass fraction is not an available option when using the VOF model, so I have to specify a User-Defined Scalar. One problem is, however, that some of the tracer mass will be lost due to convection across the boundary between water and air. One way to prevent this transport would be to modify the convective tracer flux with a user-defined function. The local value of the volume fraction of water could then be used to cancel the convective tracer transport to the air. The UDF manual gives no information on how to use the appropriate DEFINE macro "DEFINE_UDS_FLUX", perhaps someone can give me some advice here or a UDF example.

Thanks in advance

Ola
  Reply With Quote

Old   March 15, 2001, 05:14
Default Re: User-Defined Scalar convective flux
  #2
Rüdiger Schwarze
Guest
 
Posts: n/a
DEFINE_UDS_FLUX (f,t,i): f is the index of the face on which the flux is required, t points to the thread of the face, and i is the index of the user-defined scalar. The return value of the function is the flux through face f. Argument types are: face_t f, Thread *t, int i, return value is real.
  Reply With Quote

Old   March 19, 2001, 10:41
Default Re: User-Defined Scalar convective flux
  #3
Ola Nordblom
Guest
 
Posts: n/a
Thank you for your answer. I have not found out yet if the return value of the function DEFINE_UDS_FLUX should be the mass flow rate, i.e. rho*u or if it should be the flux of the scalar, i.e. rho*u*phi. Should the flux be multiplied by the face area? Do you have any idea about this? Many thanks, Ola
  Reply With Quote

Old   March 19, 2001, 10:59
Default Re: User-Defined Scalar convective flux
  #4
Rüdiger Schwarze
Guest
 
Posts: n/a
Have a look at equation (8.10.3) of the Fluent manual in order to see how fluent treats a user-defined flux.
  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
dieselFoam problem!! trying to introduce a new heat transfer model vivek070176 OpenFOAM Programming & Development 10 December 24, 2014 00:48
Scalar polynomial for specific heat is not defined! navid STAR-CD 2 April 19, 2010 06:00
solving passive scalar by user function in AVLFIRE huyp Main CFD Forum 0 September 4, 2008 11:21
User defined scalar Tomik FLUENT 0 February 8, 2007 20:23
user defined scalar saghir FLUENT 1 December 4, 2006 06:25


All times are GMT -4. The time now is 10:08.