totalPressureFvPatchScalarField, uniformTotalPressureFvPatchScalarField: simplified and rationalized
The modes of operation are set by the dimensions of the pressure field
to which this boundary condition is applied, the \c psi entry and the value
of \c gamma:
\table
Mode | dimensions | psi | gamma
incompressible subsonic | p/rho | |
compressible subsonic | p | none |
compressible transonic | p | psi | 1
compressible supersonic | p | psi | > 1
\endtable
For most applications the totalPressure boundary condition now only
requires p0 to be specified e.g.
outlet
{
type totalPressure;
p0 uniform 1e5;
}
This commit is contained in:
@ -39,10 +39,6 @@ boundaryField
|
||||
{
|
||||
type totalPressure;
|
||||
p0 $internalField;
|
||||
rho none;
|
||||
psi none;
|
||||
gamma 1;
|
||||
value uniform 0;
|
||||
}
|
||||
|
||||
farField
|
||||
|
||||
@ -23,16 +23,11 @@ boundaryField
|
||||
inlet
|
||||
{
|
||||
type uniformTotalPressure;
|
||||
pressure table
|
||||
p0 table
|
||||
(
|
||||
(0 10)
|
||||
(1 40)
|
||||
);
|
||||
p0 40; // only used for restarts
|
||||
rho none;
|
||||
psi none;
|
||||
gamma 1;
|
||||
value uniform 40;
|
||||
}
|
||||
|
||||
outlet1
|
||||
|
||||
@ -24,17 +24,11 @@ boundaryField
|
||||
inlet
|
||||
{
|
||||
type uniformTotalPressure;
|
||||
rho none;
|
||||
psi none;
|
||||
gamma 1;
|
||||
pressure table
|
||||
2
|
||||
p0 table
|
||||
(
|
||||
(0 10)
|
||||
(1 40)
|
||||
)
|
||||
;
|
||||
value uniform 40;
|
||||
);
|
||||
}
|
||||
outlet1
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user