29 #include "surfaceInterpolate.H" 45 pistonLayers_(
"pistonLayers",
dimLength, 0.0),
49 engineDB_.engineDict()
67 Info<<
"deltaZ = " << deltaZ <<
endl;
89 motionSolver_.
solve();
102 bool absolutePhi =
false;
125 <<
"Piston speed = " << pistonSpeed <<
" m/s" <<
endl;
bool moving() const
Is mesh moving.
Type & lookupObjectRef(const word &name) const
Lookup and return the object reference of the given Type.
const surfaceScalarField & phi() const
Return cell face motion fluxes.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool movePoints()
Do what is necessary if the mesh has moved.
bool foundObject(const word &name) const
Is the named Type found?
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
fvMotionSolverEngineMesh(const IOobject &io)
Construct from IOobject.
const IOdictionary & engineDict() const
Return the engine geometry dictionary.
Macros for easy insertion into run-time selection tables.
virtual void solve()
Solve for motion.
const dimensionSet dimLength
dimensionedScalar deckHeight_
scalar deltaTValue() const
Return time step value.
const Type & value() const
Return const reference to value.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
~fvMotionSolverEngineMesh()
Destructor.
const engineTime & engineDB_
dimensionedScalar pos0(const dimensionedScalar &ds)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
pointScalarField & pointMotionU()
Non-const access to the pointMotionU in order to allow changes.
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.
Boundary & boundaryFieldRef()
Return a reference to the boundary field.
tmp< surfaceScalarField > meshPhi(const volVectorField &U)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
void component(FieldField< Field, typename FieldField< Field, Type >::cmptType > &sf, const FieldField< Field, Type > &f, const direction d)
dimensionedScalar pistonPosition_
dimensionedScalar pistonDisplacement() const
Return piston displacement for current time step.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.