CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

pressure outlet boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2012, 04:19
Default pressure outlet boundary condition
  #1
Member
 
liladhar
Join Date: May 2012
Posts: 35
Rep Power: 14
liladhar is on a distinguished road
hey hi everybody
i want to use pressure outlet boundary condition as to get the flow analysis. further i want to use a user defined boundary condition (user code) for that. does anybody can tell me whether we can use user code as a pressure outlet boundary condition.
thanks in advance
liladhar is offline   Reply With Quote

Old   May 11, 2012, 09:25
Default
  #2
Senior Member
 
Ryne Whitehill
Join Date: Aug 2009
Posts: 312
Rep Power: 19
rwryne is on a distinguished road
Quote:
Originally Posted by liladhar View Post
hey hi everybody
i want to use pressure outlet boundary condition as to get the flow analysis. further i want to use a user defined boundary condition (user code) for that. does anybody can tell me whether we can use user code as a pressure outlet boundary condition.
thanks in advance

You can use a field function or a table to set the values of a boundary condition
rwryne is offline   Reply With Quote

Old   May 11, 2012, 18:51
Default
  #3
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 636
Rep Power: 22
abdul099 is on a distinguished road
User coding should be the last thing to choose. Are you really sure, you need user coding and there is no other way to do your job? Are you sure, user coding can solve your issues? If not, you should think about other solutions.
Nearly all jobs (but half a handful) can be solved by using tables or field functions (like rwryne said) or as a second last step, by using Java macros.

Maybe you can tell us what you try to achieve, so we might be able to tell you the most convenient way.
__________________
We do three types of jobs here:
GOOD, FAST AND CHEAP
You may choose any two!
abdul099 is offline   Reply With Quote

Old   May 12, 2012, 01:21
Default
  #4
Member
 
liladhar
Join Date: May 2012
Posts: 35
Rep Power: 14
liladhar is on a distinguished road
thanks fr your suggestions. i never tried field function or table to give pressure outlet boundary condition. i will try that. my problem is that i have to specify a varying pressure at the outlet which varies with depth. can i use field function or table in that case?
liladhar is offline   Reply With Quote

Old   May 12, 2012, 05:43
Default
  #5
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 636
Rep Power: 22
abdul099 is on a distinguished road
Should be possible with both, tables and field functions. Which one is better depends on your pressure profile. When it can be described by a more or less simple equation (can be time-dependent or position-dependent), I would go for a field function.You can also combine field functions to apply more complicated settings.
Tables are nice when you easily can export a table with the settings from another simulation / program. But they don't allow that much flexibility like field functions. However, they also could be combined, since tables can be interpolated to field functions.
There are some examples in the user guide how to use them. Let us know if it works or when you need assistance.
__________________
We do three types of jobs here:
GOOD, FAST AND CHEAP
You may choose any two!

Last edited by abdul099; May 12, 2012 at 06:05.
abdul099 is offline   Reply With Quote

Old   May 12, 2012, 05:54
Default
  #6
Member
 
liladhar
Join Date: May 2012
Posts: 35
Rep Power: 14
liladhar is on a distinguished road
thanks for the help abdul. i tried the field function. it doesn't work, may be because i didnt gave write boundary condition. my problem is to get the pressure at the outlet boundary as vary with depth "patm+rho*g*h". i have height as a variable. i got the example of varying velocity in a bend pipe in the user guide of star ccm+ as [($$Centroid[0] < 5) ? 1 : 0, ($$Centroid[0] < 5) ? 0 : -1, 0]. but this variation is in x-direction. they didnt mentioned how to do it for y-direction variation.
i was trying doing this
($height >= 0.1) ? 106000 : 101325+997.56*9.81*$height
where height from free surface is 1.4m. but it doesn't work for me.
need help.
thanks
liladhar is offline   Reply With Quote

Old   May 12, 2012, 06:09
Default
  #7
Senior Member
 
Join Date: Oct 2009
Location: Germany
Posts: 636
Rep Power: 22
abdul099 is on a distinguished road
Well, $height is no primitive field function (the FF already existing in ccm+ by default), so you can't reference that when you haven't created it on your own.

The statement $$Centroid[0] means "Cell center will be evaluated in X-direction". Replace the [0] with [1] for the Y-direction or [2] for the Z-direction.
__________________
We do three types of jobs here:
GOOD, FAST AND CHEAP
You may choose any two!
abdul099 is offline   Reply With Quote

Reply

Tags
pressure, pressure boundaries


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
Pressure Outlet Guage pressure Mohsin FLUENT 36 April 29, 2016 18:16
Static pressure boundary condition at outlet jennz CFX 4 February 11, 2014 04:29
pressure outlet in boundary condition help afshinbr Main CFD Forum 1 May 9, 2010 14:01
Turbulent intensity for pressure Outlet Boundary condition Mohsin FLUENT 1 April 30, 2010 11:36
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05


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