ENH: add guarded lookup for dimensionedSet

STYLE: use standard dimensionedSets
This commit is contained in:
Mark Olesen
2019-01-02 16:53:41 +01:00
parent 2ce944a748
commit 505b4b9c1c
22 changed files with 58 additions and 80 deletions

View File

@ -70,12 +70,7 @@ functions
}
reduce(ULeft, maxOp<scalar>());
dimensionedScalar uInfX
(
"uInfx",
dimensionSet(0, 1, -1, 0, 0),
ULeft
);
dimensionedScalar uInfX("uInfx", dimVelocity, ULeft);
Info << "U at inlet = " << uInfX.value() << " m/s" << endl;
@ -89,12 +84,7 @@ functions
}
reduce(magCylinder, maxOp<scalar>());
dimensionedScalar radius
(
"radius",
dimensionSet(0, 1, 0, 0, 0),
magCylinder
);
dimensionedScalar radius("radius", dimLength, magCylinder);
Info << "Cylinder radius = " << radius.value() << " m" << endl;