60 lines
1.6 KiB
C++
60 lines
1.6 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | foam-extend: Open Source CFD |
|
|
| \\ / O peration | Version: 4.0 |
|
|
| \\ / A nd | Web: http://www.foam-extend.org |
|
|
| \\/ M anipulation | |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class volScalarField;
|
|
object p;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
dimensions [0 2 -2 0 0 0 0];
|
|
|
|
internalField uniform 100000;
|
|
|
|
boundaryField
|
|
{
|
|
inlet
|
|
{
|
|
//type totalPressure;
|
|
//p0 uniform 100040;
|
|
|
|
type timeVaryingTotalPressure;
|
|
p0 100040; // only used for restarts
|
|
outOfBounds clamp;
|
|
fileName "$FOAM_CASE/constant/p0vsTime";
|
|
|
|
U U;
|
|
phi phi;
|
|
rho none;
|
|
psi none;
|
|
gamma 1;
|
|
value uniform 100040;
|
|
}
|
|
|
|
outlet1
|
|
{
|
|
type fixedValue;
|
|
value uniform 100010;
|
|
}
|
|
|
|
outlet2
|
|
{
|
|
type fixedValue;
|
|
value uniform 100000;
|
|
}
|
|
|
|
defaultFaces
|
|
{
|
|
type zeroGradient;
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|