|
[Sponsors] |
November 22, 2008, 08:01 |
UDF : Neumann boundary condition
|
#1 |
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 ! |
|
December 5, 2008, 08:06 |
Re: UDF : Neumann boundary condition
|
#2 |
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.
|
|
|
|
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 |