|
[Sponsors] |
What is the difference between the parameters 'value' and 'p0' in totalPressure BC? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 26, 2020, 04:10 |
What is the difference between the parameters 'value' and 'p0' in totalPressure BC?
|
#1 |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10 |
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. |
|
October 26, 2020, 10:22 |
|
#2 |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10 |
Any info on the differences between these two?
|
|
October 26, 2020, 12:19 |
|
#3 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,214
Rep Power: 28 |
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 |
|
October 26, 2020, 13:32 |
|
#4 |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10 |
||
October 27, 2020, 00:16 |
|
#5 | |
Senior Member
Mandeep Shetty
Join Date: Apr 2016
Posts: 188
Rep Power: 10 |
Quote:
|
||
July 21, 2022, 12:55 |
|
#6 | |
New Member
Join Date: Jun 2022
Posts: 4
Rep Power: 4 |
Quote:
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? |
||
July 26, 2022, 05:18 |
|
#7 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,214
Rep Power: 28 |
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.
|
|
December 30, 2022, 10:37 |
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: 7 |
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. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|