43 Foam::engineMesh::engineMesh(
const IOobject&
io)
49 cylinderHeadIndex_(-1),
50 deckHeight_(
"deckHeight",
dimLength, GREAT),
51 pistonPosition_(
"pistonPosition",
dimLength, -GREAT)
53 bool foundPiston =
false;
54 bool foundLiner =
false;
55 bool foundCylinderHead =
false;
72 foundCylinderHead =
true;
79 <<
"cannot find piston patch" 86 <<
"cannot find liner patch" 93 <<
"cannot find cylinderHead patch" const Type & value() const noexcept
Return const reference to value.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
constexpr char nl
The newline '\n' character (0x0a)
Type & refCast(U &obj)
A dynamic_cast (for references). Generates a FatalError on failed casts and uses the virtual type() m...
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~engineMesh()
Destructor.
An abstract class for the time description of the piston motion.
#define forAll(list, i)
Loop across all elements in list.
label size() const noexcept
The number of elements in table.
dimensionedScalar deckHeight_
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
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.
const std::string patch
OpenFOAM patch number as a std::string.
messageStream Info
Information stream (stdout output on master, null elsewhere)
const fvBoundaryMesh & boundary() const noexcept
Return reference to boundary mesh.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
bool returnReduceOr(const bool value, const label comm=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.
Defines the attributes of an object for which implicit objectRegistry management is supported...
dimensionedScalar pistonPosition_
void reduce(T &Value, const BinaryOp &bop) const
Helper: reduce with current communicator.