|
[Sponsors] |
January 9, 2007, 14:27 |
mass imbance calculation in fluent
|
#1 |
Guest
Posts: n/a
|
Hi all;
How to compute mass imbalance in fluent? Has anybody access to a udf for calculation of mass imbalance and send it for me ? Thanks in advance; |
|
January 10, 2007, 03:08 |
Re: mass imbalance calculation in fluent
|
#2 |
Guest
Posts: n/a
|
Does following udf calculate mass imbalance in each cell?
thread_loop_c (t,domain) { begin_c_loop(c,t) { int i=1; C_UDMI(c,t,4)=0.0; c_face_loop(c,t,i) { f=C_FACE(c,t,i); tf=C_FACE_THREAD(c,t,i); if(BOUNDARY_FACE_THREAD_P(tf)) { face_flux=F_FLUX(f,tf) ; } else{ if(F_C0(f,tf)==c) { face_flux =F_FLUX(f,tf); /*method is first order upwind*/ } else { face_flux =-F_FLUX(f,tf); } } } C_UDMI(c,t,4)=C_UDMI(c,t,4)+face_flux ; } } end_c_loop(c,t) } Thank's in advance |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Automatically start new calculation after the one before is completed? (FLUENT 12.1) | mars21t | FLUENT | 4 | March 27, 2011 10:52 |
Help,I have some questions about UDF of mass diffusivity in fluent | apolloking | Fluent UDF and Scheme Programming | 0 | March 20, 2011 12:40 |
fluent definitions for mass fractions | perdita | FLUENT | 0 | December 6, 2010 06:00 |
is it possible to solve mass transfer problems in FLUENT | travikiran | FLUENT | 2 | August 11, 2010 05:46 |
Setting Mass and Energy sources in fluent | Amr | FLUENT | 6 | February 23, 2006 07:36 |