mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
#includeEtc "caseDicts/setConstraintTypes"
vs.
#include "${WM_PROJECT_DIR}/etc/caseDicts/setConstraintTypes"
55 lines
1.5 KiB
C++
55 lines
1.5 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
| ========= | |
|
|
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
|
| \\ / O peration | Version: plus |
|
|
| \\ / 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 (1 0 0);
|
|
|
|
boundaryField
|
|
{
|
|
#includeEtc "caseDicts/setConstraintTypes"
|
|
|
|
inlet
|
|
{
|
|
type codedFixedValue;
|
|
name swirl;
|
|
|
|
code
|
|
#{
|
|
const vector axis(1, 0, 0);
|
|
|
|
vectorField v(2.0*this->patch().Cf() ^ axis);
|
|
v.replace(vector::X, 1.0);
|
|
operator==(v);
|
|
#};
|
|
value $internalField;
|
|
}
|
|
|
|
outlet
|
|
{
|
|
type inletOutlet;
|
|
inletValue $internalField;
|
|
value $internalField;
|
|
}
|
|
|
|
walls
|
|
{
|
|
type noSlip;
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|