Files
OpenFOAM-12/tutorials/incompressibleFluid/TJunctionFan/system/createBafflesDict
Will Bainbridge c3f131e816 Function1s::Polynomial: Simplification
The coefficients in the polynomial are now specified in order of
increasing exponent, starting from the constant coefficient (i.e., zero
exponent). Exponents are no longer specified. This better fits the
definition of a polynomial, and it prevents the strange scenario when if
exponents are given as a vector or tensor or similar then the units of
the coefficients are not the same across the different components.

For example, polynomial y = -1 + x^2 + 2x^3 can be specified as:

    <name>  polynomial (-1 0 1 2);

Or, alternatively:

    <name>
    {
        type    polynomial;
        coeffs  (-1 0 1 2);
    }
2024-04-29 22:02:22 +01:00

123 lines
2.9 KiB
C++

/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class dictionary;
object createBafflesDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
internalFacesOnly true;
fields true;
baffles
{
baffle
{
type faceZone;
zoneName baffle;
owner
{
name baffle0;
type wall;
patchFields
{
epsilon
{
type epsilonWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
k
{
type kqRWallFunction;
value uniform 0;
}
nut
{
type nutkWallFunction;
Cmu 0.09;
kappa 0.41;
E 9.8;
value uniform 0;
}
nuTilda
{
type zeroGradient;
}
p
{
type zeroGradient;
}
U
{
type fixedValue;
value uniform (0 0 0);
}
}
}
neighbour
{
name baffle1;
type wall;
patchFields
{
$../../owner/patchFields;
}
}
}
fan
{
type faceZone;
zoneName fan;
owner
{
name fan0;
type cyclic;
neighbourPatch fan1;
patchFields
{
p
{
type fanPressureJump;
patchType cyclic;
jump uniform 0;
value uniform 0;
jumpTable polynomial (100);
}
}
}
neighbour
{
name fan1;
type cyclic;
neighbourPatch fan0;
patchFields
{
$../../owner/patchFields;
}
}
}
}
// ************************************************************************* //