This is to make it clear that the value supplied is the scalar mean velocity normal to the patch, and to distinguish it from other instances of the keyword "UMean" which take a vector quantity.
58 lines
1.4 KiB
C++
58 lines
1.4 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
version 2.0;
|
|
format ascii;
|
|
class volVectorField;
|
|
location "0";
|
|
object U;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
UMean 1.668;
|
|
|
|
dimensions [0 1 -1 0 0 0 0];
|
|
|
|
internalField uniform (#neg $UMean 0 0);
|
|
|
|
boundaryField
|
|
{
|
|
//- Set patchGroups for constraint patches
|
|
#includeEtc "caseDicts/setConstraintTypes"
|
|
|
|
inlet
|
|
{
|
|
type fixedValue;
|
|
value $internalField;
|
|
}
|
|
|
|
outlet
|
|
{
|
|
type outletPhaseMeanVelocity;
|
|
alpha alpha.water;
|
|
UnMean $UMean;
|
|
value $internalField;
|
|
}
|
|
|
|
atmosphere
|
|
{
|
|
type pressureInletOutletVelocity;
|
|
value uniform (0 0 0);
|
|
}
|
|
|
|
hull
|
|
{
|
|
type movingWallVelocity;
|
|
value uniform (0 0 0);
|
|
}
|
|
}
|
|
|
|
|
|
// ************************************************************************* //
|