/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2212                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      setExprBoundaryFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

updateBCs
{
    field   U;

    _value1
    {
        target value;

        variables
        (
            "v = vector (1, 0, 0)"
            "thickness = 1.0"
        );

        expression
        #{
            v*pos().y()/thickness
        #};
    }

    expressions
    (
        { $_value1; patch left;}
        { $_value1; patch right;}
        { $_value1; patch top;}
        { $_value1; patch bottom;}
    );
}


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