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

Pressure modification using flux at outlet boundary (udf)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 27, 2012, 04:30
Post Pressure modification using flux at outlet boundary (udf)
  #1
New Member
 
Jihoon Kweon
Join Date: Dec 2012
Posts: 1
Rep Power: 0
UnclePetors is on a distinguished road
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 }
UnclePetors is offline   Reply With Quote

Old   January 1, 2013, 10:47
Default
  #2
Senior Member
 
SSL
Join Date: Oct 2012
Posts: 226
Rep Power: 15
msaeedsadeghi is on a distinguished road
The UDF is correct, but you can not modify outlet pressure.
msaeedsadeghi is offline   Reply With Quote

Reply

Tags
flux, pressure, profile, udf


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
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


All times are GMT -4. The time now is 16:09.