|
[Sponsors] |
Pressure modification using flux at outlet boundary (udf) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 27, 2012, 04:30 |
Pressure modification using flux at outlet boundary (udf)
|
#1 |
New Member
Jihoon Kweon
Join Date: Dec 2012
Posts: 1
Rep Power: 0 |
I am a new comer to fluent and udf world. I REALLY need your help. I have been trying to modify the pressure at the circular pipe exit using the mass flux. From several trials, I found that the source of error was 'F_FLUX(f,t)' in 12th line. F_FLUX(f,t) is needed to be pre-defined? I want the pressure profile is updated at every time step. Thank you in advance.
1 #include "udf.h" 2 DEFINE_PROFILE(pressure_profile, t, i) 3 { 4 real pressure; 5 real flt = 0.; 6 real density = 1060.; 7 real pref = 13332.2368; 8 real flref = 6.4*10e-6; 9 face_t f; 10 begin_f_loop(f,t) 11 { 12 flt=F_FLUX(f,t)/density; 13 pressure = pref*flt/flref; 14 F_PROFILE(f, t, i) = pressure; 15 } 16 end_f_loop(f,t) 17 } |
|
January 1, 2013, 10:47 |
|
#2 |
Senior Member
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15 |
The UDF is correct, but you can not modify outlet pressure.
|
|
Tags |
flux, pressure, profile, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |
Fluent natural ventilation pressure boundary condition | pierresandre | FLUENT | 24 | November 8, 2011 15:32 |
How can I implement time varying pressure boundary condtion through UDF | nacaairfoil | FLUENT | 0 | October 11, 2011 14:03 |
UDF to define or adjust pressure??? | engahmed | FLUENT | 0 | July 6, 2010 18:19 |
Pressure Boundary Problems | Chris | Siemens | 2 | June 21, 2005 09:20 |