40 Foam::engineMesh::engineMesh(
const IOobject& io)
46 cylinderHeadIndex_(-1),
47 deckHeight_(
"deckHeight",
dimLength, GREAT),
48 pistonPosition_(
"pistonPosition",
dimLength, -GREAT)
50 bool foundPiston =
false;
51 bool foundLiner =
false;
52 bool foundCylinderHead =
false;
69 foundCylinderHead =
true;
80 <<
"cannot find piston patch" 87 <<
"cannot find liner patch" 91 if (!foundCylinderHead)
94 <<
"cannot find cylinderHead patch" #define forAll(list, i)
Loop across all elements in list.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
To & refCast(From &r)
Reference type cast template function.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type & value() const
Return const reference to value.
label size() const
Return number of elements in table.
virtual ~engineMesh()
Destructor.
Manage time in terms of engine RPM and crank-angle.
dimensionedScalar deckHeight_
void reduce(T &Value, const BinaryOp &bop) const
Helper: reduce with current communicator.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Mesh data needed to do the Finite Volume discretisation.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
const word & name() const
Return reference to name.
dimensionedScalar pistonPosition_