29 #include "surfaceInterpolate.H" 42 Foam::layeredEngineMesh::layeredEngineMesh(
const IOobject& io)
45 pistonLayers_(
"pistonLayers",
dimLength, 0.0)
62 Info<<
"deltaZ = " << deltaZ <<
endl;
71 point&
p = newPoints[pointi];
73 if (p.
z() < pistonPlusLayers)
98 bool absolutePhi =
false;
121 <<
"Piston speed = " << pistonSpeed <<
" m/s" <<
endl;
~layeredEngineMesh()
Destructor.
#define forAll(list, i)
Loop across all elements in list.
dimensionedScalar pistonDisplacement() const
Return piston displacement for current time step.
const IOdictionary & engineDict() const
Return the engine geometry dictionary.
bool foundObject(const word &name) const
Is the named Type found?
const surfaceScalarField & phi() const
Return cell face motion fluxes.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool movePoints()
Do what is neccessary if the mesh has moved.
const Type & value() const
Return const reference to value.
Macros for easy insertion into run-time selection tables.
bool moving() const
Is mesh moving.
virtual const pointField & points() const
Return raw points.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
dimensionedScalar deckHeight_
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
const engineTime & engineDB_
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
scalar deltaTValue() const
Return time step value.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
Calculate the mesh motion flux and convert fluxes from absolute to relative and back.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
tmp< surfaceScalarField > meshPhi(const volVectorField &U)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
dimensionedScalar pistonPosition_