Go to the documentation of this file.
42 int main(
int argc,
char *argv[])
46 "Generate a swirl flow for engine calculations"
52 #include "createFields.H"
56 scalar Vphi = (swirlRPMRatio * rpm *
rpmToRads()).value();
57 scalar b1 =
j1(swirlProfile).
value();
58 scalar b2 = 2.0*b1/swirlProfile.value() -
j0(swirlProfile).
value();
60 scalar omega = 0.125*(Vphi*bore*swirlProfile/b2).value();
62 scalar cylinderRadius = 0.5*bore.value();
70 if (r <= cylinderRadius)
72 scalar
b =
j1(swirlProfile*r/cylinderRadius).
value();
73 scalar vEff = omega*
b;
75 U[celli] = ((vEff/r)*(
c & yT))*xT + (-(vEff/r)*(
c & xT))*yT;
76 Umax =
max(Umax,
mag(
U[celli]));
Unit conversion functions.
Ostream & endl(Ostream &os)
const Type & value() const
const dimensionedScalar b
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
label max(const labelHashSet &set, label maxValue=labelMin)
Vector< scalar > vector
A scalar version of the templated Vector.
constexpr scalar rpmToRads(const scalar rpm) noexcept
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar j0(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
const dimensionedScalar c
dimensionedScalar j1(const dimensionedScalar &ds)