|
[Sponsors] |
February 25, 2011, 12:37 |
pressure profile
|
#1 |
New Member
kid ali
Join Date: Feb 2011
Posts: 1
Rep Power: 0 |
Hi everyone
I have a problem with following UDF. I want to apply pressure on BC that pressure harmonizes with gradient vector! But when I init it, I accept error! #include "udf.h" #define viscosity 0.0029 DEFINE_PROFILE(Pressure_Profile , t , i){ cell_t c ; begin_c_loop(c , t ){ C_PROFILE(c , t , i ) =2*viscosity*C_U_G(c , t )[0] ; } end_c_loop(c , t) } I think its reason is that Fluent isn’t solved equations yet. My problem is steady state!! How can I apply folllowing BC? P=2*viscosity*(du/dx) Thanks a lot. Kid Ali. |
|
February 25, 2011, 13:23 |
|
#2 |
Senior Member
|
Hi Ali,
first, you should use compiled UDF not interpreted one. second,to keep gradient values you should use this TUI command: solve/set/expert if they didn't help, you can define gradient yourself. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pressure Rise Error | emueller | CFX | 0 | May 5, 2009 11:08 |
Neumann pressure BC and velocity field | Antech | Main CFD Forum | 0 | April 25, 2006 02:15 |
FLOW AROUND A PLATE_NEGATIVE ABSOLUTE PRESSURE???? | tania | FLUENT | 11 | March 23, 2004 08:51 |
creating a pressure profile | Nial Horton | FLUENT | 2 | February 18, 2004 05:26 |
Hydrostatic pressure in 2-phase flow modeling (long) | DS & HB | Main CFD Forum | 0 | January 8, 2000 15:00 |