createZeroDirectory.C File Reference

Creates a zero directory with fields appropriate for the chosen solver and turbulence model. Operates on both single and multi-region cases. More...

Go to the source code of this file.

Detailed Description

Creates a zero directory with fields appropriate for the chosen solver and turbulence model. Operates on both single and multi-region cases.

Original source file createZeroDirectory.C

Usage
The set-up is configured using a 'caseProperties' dictionary, located under the $FOAM_CASE/system (or system/regionName if multi-region) directory. This consists of a lists of initial and boundary conditions, e.g.
initialConditions
{
    U           uniform (0 0 0);
    p           uniform 0;
}

boundaryConditions
{
    topWall
    {
        category        wall;
        patches         (movingWall);
        type            noSlip;
        options
        {
            wallFunction    highReynolds;
            motion          moving;
        };
        values
        {
            U           uniform (1 0 0);
        }
    }

    walls
    {
        category        wall;
        patches         (fixedWalls);
        type            noSlip;
        options
        {
            wallFunction    highReynolds;
            motion          stationary;
        };
    }
}

Definition in file createZeroDirectory.C.