40 int main(
int argc,
char *argv[])
45 #include "createFields.H"
50 scalar b1 =
j1(swirlProfile).
value();
51 scalar b2 = 2.0*b1/swirlProfile.value() -
j0(swirlProfile).
value();
53 scalar
omega = 0.125*(Vphi*bore*swirlProfile/b2).value();
55 scalar cylinderRadius = 0.5*bore.
value();
63 if (r <= cylinderRadius)
65 scalar
b =
j1(swirlProfile*r/cylinderRadius).
value();
68 U[celli] = ((vEff/r)*(
c & yT))*xT + (-(vEff/r)*(
c & xT))*yT;
69 Umax =
max(Umax,
mag(
U[celli]));
#define forAll(list, i)
Loop across all elements in list.
const Type & value() const
Return const reference to value.
const volVectorField & C() const
Return cell centres.
Convenience class to handle the input of constant rotational speed. Reads an omega entry with default...
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
int main(int argc, char *argv[])
const dimensionedScalar c
Speed of light in a vacuum.
dimensionedScalar j1(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
void pow(LagrangianPatchField< typename powProduct< Type, r >::type > &f, const LagrangianPatchField< Type > &f1)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)
dimensionedScalar j0(const dimensionedScalar &ds)