56 xFixed_(coeffDict().lookup<scalar>(
"xFixed")),
57 xMoving_(coeffDict().lookup<scalar>(
"xMoving")),
58 displacement_(
Function1<scalar>::
New(
"displacement", coeffDict()))
77 const scalar t = mesh().time().userTimeValue();
79 const scalar displacement = displacement_->value(t);
84 (xFixed_ - (axis_ & curPoints[i]))/(xFixed_ - xMoving_);
88 curPoints[i] += axis_*displacement;
92 curPoints[i] += axis_*
lambda*displacement;
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Run-time selectable general function of one variable.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Mesh motion solver simple linear expansion and contraction of a mesh region defined by a motion axis ...
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
displacementLinearMotionMotionSolver(const word &name, const polyMesh &, const dictionary &)
Construct from polyMesh and dictionary.
~displacementLinearMotionMotionSolver()
Destructor.
Virtual base class for mesh motion solver.
Virtual base class for displacement motion solvers.
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
dimensionedScalar lambda(viscosity->lookup("lambda"))
autoPtr< CompressibleMomentumTransportModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const viscosity &viscosity)
vectorField pointField
pointField is a vectorField.
defineTypeNameAndDebug(combustionModel, 0)
Form normalised(const VectorSpace< Form, Cmpt, Ncmpts > &vs)
word name(const complex &)
Return a string representation of a complex.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)