mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add guarded lookup for dimensionedSet
STYLE: use standard dimensionedSets
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user