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

Resetting Mass Fraction at Wall

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 3, 2009, 19:57
Default Resetting Mass Fraction at Wall
  #1
Mike
Guest
 
Posts: n/a
I am currently trying to re-set a mass-fraction at a wall in my model in terms of the adjacent fluid's mass-fraction using a UDF. My current UDF is:

#include "udf.h" static real tflag = 0.;

DEFINE_PROFILE(no3_conc, thread, position) {

real x[ND_ND]; /* this will hold the position vector */ real y; real t_current = CURRENT_TIME; face_t f;

Message("time = %f, tflag = %f", t_current, tflag);

if (t_current > tflag)

{

tflag = t_current;

begin_f_loop(f, thread)

{

F_CENTROID(x,f,thread);

y = x[1];

F_PROFILE(f, thread, 0) = F_YI(f, thread, 0)*0.99884;

} end_f_loop(f, thread)

}

}

any thoughts or suggestions?

  Reply With Quote

Reply

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
wall penetrable just for one phase/mass fraction joe CFX 0 June 13, 2008 03:17
volume fraction,mass fraction,bulk mass flow nick CFX 0 April 25, 2008 09:51
How set volume fraction and species mass fraction Reginaldo Cotto FLUENT 0 August 31, 2006 04:58
volume fraction, Mass fraction and Bulk Mass flow Dr.jones CFX 1 January 25, 2006 05:32
mass fraction boundary value on a WALL ? Alexey CFX 1 September 3, 2004 00:54


All times are GMT -4. The time now is 02:52.