/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | foam-extend: Open Source CFD                    |
|  \\    /   O peration     | Version:     3.1                                |
|   \\  /    A nd           | Web:         http://www.extend-project.de       |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

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

internalField   uniform 0;

boundaryField
{
    walls
    {
        type            zeroGradient;
        value           $internalField;
    }
    acous
    {
        type            codedFixedValue;
        value           $internalField;
        name            acousticWave; // 任意の識別名

        codeOptions
        #{
            -I$(LIB_SRC)/finiteVolume/lnInclude
        #};

        code
        #{
            const fvPatch& boundaryPatch = patch();
            const scalar pi = constant::mathematical::pi;
            const scalar t = this->db().time().value();
            scalar value = 20.0 * sin(2.0 * pi * 1e7 * t);
            operator==(scalarField(boundaryPatch.size(), value));
        #};
    }
    symm
    {
        type            symmetryPlane;
    }
    defaultFaces
    {
        type            empty;
    }
}

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