CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

how to define a neuman boundary condition

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 5, 2007, 07:26
Default how to define a neuman boundary condition
  #1
Charlie
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
  Reply With Quote

Old   June 9, 2007, 02:49
Default Re: how to define a neuman boundary condition
  #2
sisir
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
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


All times are GMT -4. The time now is 17:07.