Go to the documentation of this file.
42 Foam::engineMesh::engineMesh(
const IOobject& io)
48 cylinderHeadIndex_(-1),
49 deckHeight_(
"deckHeight",
dimLength, GREAT),
50 pistonPosition_(
"pistonPosition",
dimLength, -GREAT)
52 bool foundPiston =
false;
53 bool foundLiner =
false;
54 bool foundCylinderHead =
false;
71 foundCylinderHead =
true;
82 <<
"cannot find piston patch"
89 <<
"cannot find liner patch"
93 if (!foundCylinderHead)
96 <<
"cannot find cylinderHead patch"
label size() const noexcept
The number of elements in table.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
virtual ~engineMesh()
Destructor.
dimensionedScalar pistonPosition_
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar deckHeight_
const Type & value() const
Return const reference to value.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
#define forAll(list, i)
Loop across all elements in list.
messageStream Info
Information stream (stdout output on master, null elsewhere)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
An abstract class for the time description of the piston motion.
Mesh data needed to do the Finite Volume discretisation.
To & refCast(From &r)
Reference type cast template function.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
void reduce(T &Value, const BinaryOp &bop) const
Helper: reduce with current communicator.
const std::string patch
OpenFOAM patch number as a std::string.
defineTypeNameAndDebug(combustionModel, 0)
const word & name() const
Return reference to name.