1

Previous: internalField Up: Boundary and initial condition Next: Physical properties setup
This is an automatically generated documentation by LaTeX2HTML utility. In case of any issue, please, contact us at info@cfdsupport.com.

boundaryField

boundaryField
{
    movingWall      
    {
        type            zeroGradient;
    }

    fixedWalls      
    {
        type            zeroGradient;
    }

    frontAndBack    
    {
        type            empty;
    }
}

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

boundaryField defines boundary conditions for each mesh boundaries parameter type defines the name of the boundary condition e.g. boundary condition zeroGradient is so called homogeneous Neumann boundary condition, which means that quantity gradient is zero in direction perpendicular to the boundary e.g. boundary condition empty means, that there is no flow considered in the direction perpendicular to the boundary

Let us take a look at the velocity file :
# cat $FOAM_RUN /cavity/0/U

 

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

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

internalField   uniform (0 0 0);

boundaryField
{
    movingWall      
    {
        type            fixedValue;
        value           uniform (1 0 0);
    }

    fixedWalls      
    {
        type            noSlip;
    }

    frontAndBack    
    {
        type            empty;
    }
}

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

Velocity U is a vector and has three components (Ux, Uy, Uz) At the wall, a fixed value is usually prescribed for velocity (Dirichlet boundary condition): fixedValue, which needs its value, either uniform or nonuniform Condition uniform (0 0 0) means the velocity is zero at the wall or you can use an equivalent boundary condition: noSlip. Condition uniform (1 0 0) means the velocity is 1 m/s in direction with respect to coordinate x (wall is moving)