|
[Sponsors] |
March 3, 2009, 18:57 |
Resetting Mass Fraction at Wall
|
#1 |
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? |
|
|
|
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 04:32 |
mass fraction boundary value on a WALL ? | Alexey | CFX | 1 | September 3, 2004 00:54 |