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:
Henry Weller
2016-06-16 12:21:34 +01:00
parent 5a17dc9503
commit 07ae9b67cc
33 changed files with 129 additions and 241 deletions

View File

@ -33,10 +33,6 @@ boundaryField
{
type totalPressure;
p0 $internalField;
rho none;
psi none;
gamma 1;
value $internalField;
}
frontAndBack
{

View File

@ -33,10 +33,6 @@ boundaryField
{
type totalPressure;
p0 $internalField;
rho none;
psi none;
gamma 1;
value $internalField;
}
frontAndBack
{

View File

@ -39,10 +39,6 @@ boundaryField
{
type totalPressure;
p0 $internalField;
rho none;
psi none;
gamma 1;
value $internalField;
}
farField

View File

@ -42,11 +42,7 @@ outlet
p
{
type totalPressure;
value uniform 1e5;
p0 uniform 1e5;
rho rho;
psi none;
gamma 1.4;
}
U

View File

@ -39,10 +39,6 @@ boundaryField
{
type totalPressure;
p0 $internalField;
rho none;
psi none;
gamma 1;
value $internalField;
}
farField

View File

@ -39,10 +39,6 @@ boundaryField
{
type totalPressure;
p0 $internalField;
rho none;
psi none;
gamma 1;
value uniform 0;
}
farField

View File

@ -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

View File

@ -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
{

View File

@ -33,10 +33,6 @@ boundaryField
{
type totalPressure;
p0 $internalField;
rho none;
psi none;
gamma 1;
value $internalField;
}
frontAndBack
{

View File

@ -23,9 +23,6 @@ boundaryField
inlet
{
type totalPressure;
rho rho;
psi none;
gamma 1;
p0 uniform 300e5;
}

View File

@ -23,9 +23,6 @@ boundaryField
inlet
{
type totalPressure;
rho rho;
psi none;
gamma 1;
p0 uniform 300e5;
}

View File

@ -23,9 +23,6 @@ boundaryField
inlet
{
type totalPressure;
rho rho;
psi none;
gamma 1;
p0 uniform 300e5;
}

View File

@ -42,10 +42,6 @@ boundaryField
{
type totalPressure;
p0 uniform 1e5;
rho rho;
psi none;
gamma 1;
value $internalField;
}
defaultFaces

View File

@ -39,10 +39,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho rho;
psi none;
gamma 1;
value $internalField;
}
hull

View File

@ -38,10 +38,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
}

View File

@ -28,10 +28,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
floatingObject
{

View File

@ -42,10 +42,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
defaultFaces

View File

@ -39,10 +39,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
front

View File

@ -39,10 +39,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho rho;
psi none;
gamma 1;
value $internalField;
}
hull

View File

@ -42,10 +42,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
defaultFaces

View File

@ -42,11 +42,7 @@ boundaryField
atmosphere
{
type totalPressure;
rho rho;
psi none;
gamma 1;
p0 uniform 0;
value uniform 0;
}
defaultFaces
{

View File

@ -24,10 +24,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
".*"

View File

@ -41,10 +41,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho none;
psi none;
gamma 1;
value uniform $pressure;
}
defaultFaces

View File

@ -42,10 +42,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
defaultFaces

View File

@ -33,10 +33,6 @@ boundaryField
{
type totalPressure;
p0 $internalField;
rho rho;
psi none;
gamma 1;
value $internalField;
}
wall

View File

@ -44,10 +44,6 @@ boundaryField
p0 uniform 0;
U U.air;
phi phi.air;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
defaultFaces

View File

@ -42,10 +42,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
defaultFaces

View File

@ -42,10 +42,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
defaultFaces

View File

@ -42,10 +42,6 @@ boundaryField
{
type totalPressure;
p0 uniform 0;
rho rho;
psi none;
gamma 1;
value uniform 0;
}
defaultFaces