Go to the documentation of this file.
45 pistonLayers_(
"pistonLayers",
dimLength, 0.0)
61 scalar deltaZ = engineDB_.pistonDisplacement().value();
62 Info<<
"deltaZ = " << deltaZ <<
endl;
65 scalar pistonPlusLayers = pistonPosition_.value() + pistonLayers_.value();
71 point&
p = newPoints[pointi];
73 if (
p.z() < pistonPlusLayers)
77 else if (
p.z() < deckHeight_.value())
81 *(deckHeight_.value() -
p.z())
82 /(deckHeight_.value() - pistonPlusLayers);
98 bool absolutePhi =
false;
105 movePoints(newPoints);
114 movePoints(newPoints);
117 pistonPosition_.value() += deltaZ;
118 scalar pistonSpeed = deltaZ/engineDB_.deltaTValue();
120 Info<<
"clearance: " << deckHeight_.value() - pistonPosition_.value() <<
nl
121 <<
"Piston speed = " << pistonSpeed <<
" m/s" <<
endl;
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
~layeredEngineMesh()
Destructor.
layeredEngineMesh(const layeredEngineMesh &)
Disallow default bitwise copy construct.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
dimensionedScalar pistonLayers_
Calculate the mesh motion flux and convert fluxes from absolute to relative and back.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &vf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< surfaceScalarField > meshPhi(const volVectorField &U)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Pre-declare SubField and related Field type.
Macros for easy insertion into run-time selection tables.
const IOdictionary & engineDict() const
Return the engine geometry dictionary.
Generic GeometricField class.
const engineTime & engineDB_
defineTypeNameAndDebug(combustionModel, 0)