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 Type & value() const
Return const reference to value.
virtual ~engineMesh()
Destructor.
dimensionedScalar deckHeight_
dimensionedScalar pistonPosition_
An abstract class for the time description of the piston motion.
Mesh data needed to do the Finite Volume discretisation.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
const word & name() const
Return reference to name.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
To & refCast(From &r)
Reference type cast template function.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
void reduce(const List< UPstream::commsStruct > &comms, T &value, const BinaryOp &bop, const int tag, const label comm)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.
#define forAll(list, i)
Loop across all elements in list.