CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

What is the difference between the parameters 'value' and 'p0' in totalPressure BC?

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 4 Post By Yann
  • 1 Post By granzer
  • 1 Post By buesinaw

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2020, 03:10
Default What is the difference between the parameters 'value' and 'p0' in totalPressure BC?
  #1
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10
granzer is on a distinguished road
Hello,
I am a beginner at using OpenFoam and this may be a basic question. I am using totalPressure BC for my inlet, but I don't understand where should I set the value of total pressure.


<patchName>
{
type totalPressure;
rho none;
p0 uniform 0;
value uniform 0;
}

should it be set in the 'p0' parameter or the 'value' parameter? What is the difference between 'p0' and 'value'. Also, since I couldn't find anything on this it would be great help if you could point me to any literature on this.
granzer is offline   Reply With Quote

Old   October 26, 2020, 09:22
Default
  #2
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10
granzer is on a distinguished road
Any info on the differences between these two?
granzer is offline   Reply With Quote

Old   October 26, 2020, 11:19
Default
  #3
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,055
Rep Power: 26
Yann will become famous soon enough
Hello Granzer,

You have to define your total pressure with the p0 parameter. "value" is a placeholder which will be read when the solver starts but will be overwritten by the value computed by the boundary condition.

This is due to the fact that most of the boundary conditions in OpenFOAM are derived from few basic ones and "value" is an inherited parameter from these basic conditions.

You can probably find more about this on the forum. For instance here.

About the totalPressure boundary condition, you can find some documentation, depending on the version you are using:

Cheers,
Yann
Yann is offline   Reply With Quote

Old   October 26, 2020, 12:32
Default
  #4
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10
granzer is on a distinguished road
PressureinletOutletVelocity&Total pressure
granzer is offline   Reply With Quote

Old   October 26, 2020, 23:16
Default
  #5
Senior Member
 
Mandeep Shetty
Join Date: Apr 2016
Posts: 185
Rep Power: 10
granzer is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello Granzer,

You have to define your total pressure with the p0 parameter. "value" is a placeholder which will be read when the solver starts but will be overwritten by the value computed by the boundary condition.

This is due to the fact that most of the boundary conditions in OpenFOAM are derived from few basic ones and "value" is an inherited parameter from these basic conditions.

You can probably find more about this on the forum. For instance here.

About the totalPressure boundary condition, you can find some documentation, depending on the version you are using:

Cheers,
Yann
Thank you Yann! That is exactly what I was looking for.
Yann likes this.
granzer is offline   Reply With Quote

Old   July 21, 2022, 11:55
Default
  #6
New Member
 
Join Date: Jun 2022
Posts: 4
Rep Power: 3
Newtonian is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello Granzer,

You have to define your total pressure with the p0 parameter. "value" is a placeholder which will be read when the solver starts but will be overwritten by the value computed by the boundary condition.

This is due to the fact that most of the boundary conditions in OpenFOAM are derived from few basic ones and "value" is an inherited parameter from these basic conditions.

You can probably find more about this on the forum. For instance here.

About the totalPressure boundary condition, you can find some documentation, depending on the version you are using:

Cheers,
Yann


So in that sense is it even relevant what value you input for "value"? In may examples I've seen the value for "value" is set equal to the same value specified for "p0". Is matching the two values a requirement? Or is it just a convention that is used but doesn't really matter because "value" will be overwritten?
Newtonian is offline   Reply With Quote

Old   July 26, 2022, 04:18
Default
  #7
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,055
Rep Power: 26
Yann will become famous soon enough
No this is not a requirement, it should not be relevant. As you said it is more of a convention to use the same value as p0 and it does not really matter.
Yann is offline   Reply With Quote

Old   December 30, 2022, 09:37
Default What is the difference between the parameters 'value' and 'p0' in totalPressure BC?
  #8
New Member
 
Aaron B.
Join Date: Nov 2019
Posts: 6
Rep Power: 6
buesinaw is on a distinguished road
Where in the OpenFOAM documentation is this explained? In general, there seems to be a lot of confusion as how to set up boundary conditions. Good documentation on the topic of how to set up boundary conditions would help a lot of people. Maybe the documentation exits, but I haven't been able to find it, and it seems that threads like this are a substitute for proper documentation.
I hope I'm wrong. However, if good boundary condition documentation does not exist, how do we as an opensource community advocate for making it happen? Thank you.
Juan Daniel likes this.
buesinaw is offline   Reply With Quote

Reply


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



All times are GMT -4. The time now is 17:56.