/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  8
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    location    "0";
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

pOut            101325;
pAll            1.2e5;


dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 101325;

boundaryField
{
    perleft
    {
        type            cyclic;
    }
    perright
    {
        type            cyclic;
    }
    perfrontup
    {
        type            cyclic;
    }
    perfrontdown
    {
        type            cyclic;
    }
    perrearup
    {
        type            cyclic;
    }
    perreardown
    {
        type            cyclic;
    }
    INLET
    {
        type            totalPressure;
        psi             thermo:psi;  
        gamma           1.4;      
        p0              uniform $pAll;
        value           uniform $pOut;
    }
    OUTLET
    {
        type            waveTransmissive;
        field           p;
        psi             thermo:psi;
        gamma           1.4;
        fieldInf        100000;
        lInf            0.3;
        value           uniform 100000;
    }
    WALLUP
    {
        type            zeroGradient;
    }
    WALLDOWN
    {
        type            zeroGradient;
    }
}


// ************************************************************************* //
