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

UDF : Neumann boundary condition

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 22, 2008, 08:01
Default UDF : Neumann boundary condition
  #1
PierreM
Guest
 
Posts: n/a
Hi,

I'm trying to write an UDF to set Neumann condtion ( dv/dy = 0 ). So, i tried this ---------- #include "udf.h"

DEFINE_PROFILE(inlet_y_velocity,thread,position) {

face_t f; cell_t c0,c=-1; Thread *t0 = NULL;

begin_f_loop(f, thread)

{ t0 = THREAD_T0(thread); c0 = F_C0(f,thread); F_PROFILE(f,thread,position) = C_V(c0,t0);

end_f_loop(c, thread) } ------- I just set velocity equal to the velocity of the adjacent cell. but that doesnt seem to work. What should i do? The udf compiles, but the derivative is not 0 on the boundary.

Thanks !
  Reply With Quote

Old   December 5, 2008, 08:06
Default Re: UDF : Neumann boundary condition
  #2
mange
Guest
 
Posts: n/a
You need to look into how Fluent calculates derivatives (green -gaus divergence center based ) and then set the face value on your boundary so that you make sure it will be zero in the cell. You can find that in any CFD text book or the UDF usermanual.
  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
Neumann Pressure Boundary Condition with UDF Balder Fluent UDF and Scheme Programming 8 July 6, 2012 11:21
Neumann boundary condition paul CFX 1 June 28, 2008 07:02
How to specify the neumann wall boundary condition Michael FLUENT 0 April 9, 2008 18:33
Neumann Boundary Condition Ciro Cannavacciuolo FLUENT 0 February 8, 2007 04:46
Neumann pressure boundary condition ricklee Main CFD Forum 1 May 9, 2006 14:30


All times are GMT -4. The time now is 04:28.