CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

Pressure Initial Conditions

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   February 26, 2012, 16:04
Unhappy Pressure Initial Conditions
New Member
Join Date: Sep 2011
Posts: 4
Rep Power: 13
OscarD is on a distinguished road
I've been trying to set initial values of pressure and temperature in a simple 2d-axisymmetric geometry that generates an enclosed volume, with no inlet/outlet for fluid, steady state.
I got the initialization of all the cells' temperature as I wanted by using DEFINE_INIT (coaxial values of same value ), but when it comes to pressure, it starts ok beside the axis, but when it continues radially, the value drops to almost -Pmax!!
Am I forgetting to set something within the UDF or in the FLUENT case?

Thanks in advance for any help related!!!

PS. The 'complex' code I'm using (just omitted the definition and value of the pX and tY constants)

************************************************** ********
#include "udf.h"


cell_t c;
Thread *t;
real xc[ND_ND]

if(xc[1] < 4.7e-4)
C_T(c,t) = t1*pow(xc[1],9.) + t2*pow(xc[1],8.) + t3*pow(xc[1],7.) + t4*pow(xc[1],6.) + t5*pow(xc[1],5.) + t6*pow(xc[1],4.) + t7*pow(xc[1],3.) + t8*pow(xc[1],2.) + t9*xc[1] + t10;
C_T(c,t) = 293;

if(xc[1] < 4e-4)
C_P(c,t) = p1*pow(xc[1],8.) + p2*pow(xc[1],7.) + p3*pow(xc[1],6.) + p4*pow(xc[1],5.) + p5*pow(xc[1],4.) + p6*pow(xc[1],3.) + p7*pow(xc[1],2.) + p8*xc[1] + p9;
C_P(c,t) = 6800;


************************************************** ******
OscarD is offline   Reply With Quote

Old   June 4, 2013, 02:37
Default with respect to your problem
New Member
zhang guoqing
Join Date: May 2011
Posts: 10
Rep Power: 13
qing123 is on a distinguished road
Dear Sir:
Recently I have met the same problem as yours. Have you solved it? Could you tell me the steps to use this UDF in Fluent? Thank you so much for your help.
qing123 is offline   Reply With Quote


initial conditions, pressure, udf

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forces in OF15 richard OpenFOAM Running, Solving & CFD 180 July 9, 2018 10:54
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 04:13
Error log OpenFOAM 6 August 7, 2009 05:44
Computational time sunnysun OpenFOAM Running, Solving & CFD 5 March 16, 2009 03:32
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07

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