43Foam::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"
label size() const noexcept
Defines the attributes of an object for which implicit objectRegistry management is supported,...
virtual ~engineMesh()
Destructor.
dimensionedScalar deckHeight_
const engineTime & engineDB_
dimensionedScalar pistonPosition_
An abstract class for the time description of the piston motion.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
fvMesh(const fvMesh &)=delete
No copy construct.
const word & name() const
Return reference to name.
const fvBoundaryMesh & boundary() const noexcept
Return reference to boundary mesh.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
bool returnReduceOr(const bool value, const int communicator=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
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(T &value, BinaryOp bop, const int tag=UPstream::msgType(), const int communicator=UPstream::worldComm)
Reduce inplace (cf. MPI Allreduce).
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
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.