|
[Sponsors] |
June 5, 2007, 07:26 |
how to define a neuman boundary condition
|
#1 |
Guest
Posts: n/a
|
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
|
|
June 9, 2007, 02:49 |
Re: how to define a neuman boundary condition
|
#2 |
Guest
Posts: n/a
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HOW to define ONE LINE the WALL boundary condition using pointwise V16 | lachie | Pointwise & Gridgen | 0 | October 27, 2010 11:40 |
how to define slip boundary condition in tube | zhucheng1980 | FLUENT | 0 | June 20, 2007 15:49 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 12:24 |
UDF FOR UNSTEADY TIME STEP | mayur | FLUENT | 3 | August 9, 2006 10:19 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 04:15 |