CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   about species transport. (https://www.cfd-online.com/Forums/fluent/40103-about-species-transport.html)

shuqin March 13, 2006 03:55

about species transport.
 
hi,everybody!

I am modeling species transport through a wall by adding source terms at the cells adjacent to the wall.It works nice ,

however when I want to store the mass fraction of hydrogen for postprocessing using C_YI(c0,t0,hydrogen),

the counters show the value of UDM-3(C_UDMI(c,t,2)) uniform at the wall while the hydrogen mass fraction at the wall is different.

here is the code:

#include "udf.h"

#define WALL_ID 5 /* checked from boundary condition */

DEFINE_ON_DEMAND(mass_source_3d)

{

Domain *d;

Thread *ft,*t,*t0;

face_t f;

cell_t c,c0;

d = Get_Domain(1);

thread_loop_c(t,d)

{

begin_c_loop(c,t)

{

C_UDMI(c,t,0) = 0.0;

C_UDMI(c,t,1) = 0.0;

C_UDMI(c,t,2) = 0.0;

}end_c_loop(c,t)

}

thread_loop_f(t,d)

{

if(THREAD_ID(t)==WALL_ID)

{

begin_f_loop(f,t)

{

t0=THREAD_T0(t);

c0=F_C0(f,t);

C_UDMI(c0,t0,0) =1.085e-1;

C_UDMI(c0,t0,1) =1.386e-1;

C_UDMI(c0,t0,2)=C_YI(c0,t0,hydrogen)

}end_f_loop(f,t)

}

}

}

shuqin March 13, 2006 03:59

Re: about species transport.
 
I suppose it should be the same conters result ,can anyone tell me what's wrong with the C_YI(c0,t0,hydrogen) ?

shuqin March 13, 2006 21:21

Re: about species transport.
 
the problem I has figured out ,it because the values are different slightly and displays the same color ,when plot XY plot ,the value is different.


R.Manivanan March 16, 2006 12:58

cfd analysis for solar still
 
Dear Sir,

I am M.E. student in Mepco Schlenk Engg College,Sivakasi. i have a doubt in Double condensing solar still i modeled the solar still in which i used a wick cloth covered plate in the shape of hut roof one of the ends having contact with water .It is enclosed in glass box. Water is evaporated to vapor and then it is condensed to water again at the top glass surface. For this process how to give the boundary conditions

shuqin March 16, 2006 21:57

Re: cfd analysis for solar still
 
hi,R.Manivanan,I m sorry that I have not involved in dealing with the problem similar to your project and could not help you,I suggest you post it new and describle it more specificly,and hope someone would be of help!


All times are GMT -4. The time now is 09:23.