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;
}
61 lines
1.4 KiB
C++
61 lines
1.4 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: dev |
|
|
| \\ / A nd | Web: www.OpenFOAM.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class volScalarField;
|
|
object p;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
dimensions [0 2 -2 0 0 0 0];
|
|
|
|
internalField uniform 0;
|
|
|
|
boundaryField
|
|
{
|
|
movingWall
|
|
{
|
|
type zeroGradient;
|
|
}
|
|
|
|
farFieldMoving
|
|
{
|
|
type zeroGradient;
|
|
}
|
|
|
|
fixedWall
|
|
{
|
|
type zeroGradient;
|
|
}
|
|
|
|
left
|
|
{
|
|
type totalPressure;
|
|
p0 $internalField;
|
|
}
|
|
|
|
farField
|
|
{
|
|
type zeroGradient;
|
|
}
|
|
|
|
back
|
|
{
|
|
type wedge;
|
|
}
|
|
|
|
front
|
|
{
|
|
type wedge;
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|