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

UDF : Neumann boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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


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 Off
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 12:21
Neumann boundary condition paul CFX 1 June 28, 2008 08:02
How to specify the neumann wall boundary condition Michael FLUENT 0 April 9, 2008 19: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 15:30


All times are GMT -4. The time now is 18:22.