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

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

internalField   uniform (0 0 0);

boundaryField
{
    #includeEtc "caseDicts/setConstraintTypes"

    transducer
    {
        type            codedMixed;

        refValue        uniform (0 0 0);
        refGradient     uniform (0 0 0);
        valueFraction   uniform 1;

        name        rampedMixed;

        code
        #{
            const scalar t = this->db().time().value();
            const scalar pi = constant::mathematical::pi;

            this->valueFraction() = 1.0;
            this->refValue() = vector(0, 1, 0)*(0.03*sin(2*24000*pi*t));
            this->refGrad() = Zero;

        #};
    }
    fixedWalls
    {
        type            noSlip;
    }
    outlet
    {
        type            zeroGradient;
          
    }
    fluid_to_wire
    {
        type            noSlip;
    }
}

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