CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   how to define a neuman boundary condition (http://www.cfd-online.com/Forums/fluent/44928-how-define-neuman-boundary-condition.html)

Charlie June 5, 2007 07:26

how to define a neuman boundary condition
 
Hi! I want to define a neuman boundary condition (dYi/dn = cte) for a mass fraction Yi in the interior surface. Please tell me how to do it! Thanks

sisir June 9, 2007 02:49

Re: how to define a neuman boundary condition
 
Hi, I have written an UDF for neuman boundary condition for species mass fraction at the pressure outlet. It is compiling and after loading when i want to hook it the udf file "species_grad" is displaying at BOUNDARY CONDITION-FLUID-SOURCE TERM" instead of at species mass fraction at the pressure outlet. Pls look it. it may help u.

#include "udf.h"

DEFINE_SOURCE(species_grad,cell,thread,dS,eqn)

{

float source=0.0;

begin_c_loop(cell, thread)

{

C_YI_G(cell,thread,1)[0]=0.;

source=C_YI_G(cell,thread,1)[0];

/*dS[eqn]=0.;*/

}

end_c_loop(cell,thread)

return source;

}

If u can solve my problem i will be great full to u.

sisir


All times are GMT -4. The time now is 06:46.