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.
engineMesh(const IOobject &io)
Construct from objectRegistry, and read/write options.
virtual ~engineMesh()
Destructor.
An abstract class for the time description of the piston motion.
label size() const
Return number of elements in table.
dimensionedScalar deckHeight_
const Type & value() const
Return const reference to value.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
const word & name() const
Return reference to name.
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...
dimensionedScalar pistonPosition_
void reduce(T &Value, const BinaryOp &bop) const
Helper: reduce with current communicator.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.