35 namespace fvMeshMovers
49 amplitude_(meshCoeffs_.lookup<scalar>(
"amplitude")),
50 frequency_(meshCoeffs_.lookup<scalar>(
"frequency")),
51 refPlaneX_(meshCoeffs_.lookup<scalar>(
"refPlaneX")),
57 mesh.time().constant(),
64 velocityMotionCorrection_(mesh,
dict())
66 Info<<
"Performing a dynamic mesh calculation: " <<
endl
67 <<
"amplitude: " << amplitude_
68 <<
" frequency: " << frequency_
69 <<
" refPlaneX: " << refPlaneX_ <<
endl;
83 const scalar scalingFunction =
90 Info<<
"Mesh scaling. Time = " << mesh().time().value() <<
" scaling: "
91 << scalingFunction <<
endl;
103 - (stationaryPoints_.component(
vector::X))
105 )*amplitude_*scalingFunction
109 mesh().movePoints(newPoints);
111 velocityMotionCorrection_.update();
Macros for easy insertion into run-time selection tables.
void replace(const direction, const UList< cmptType > &)
Replace a component field of the field.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Abstract base class for fvMesh movers.
Mesh motion specifically for the "pumping" system of an ink-jet injector.
inkJet(fvMesh &mesh)
Construct from fvMesh.
virtual void topoChange(const polyTopoChangeMap &)
Update corresponding to the given map.
virtual void distribute(const polyDistributionMap &)
Update corresponding to the given distribution map.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
virtual bool update()
Update the mesh for both mesh motion and topology change.
Mesh data needed to do the Finite Volume discretisation.
Class containing mesh-to-mesh mapping information after a mesh distribution where we send parts of me...
Class containing mesh-to-mesh mapping information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const scalar twoPi(2 *pi)
defineTypeNameAndDebug(none, 0)
addToRunTimeSelectionTable(fvMeshMover, none, fvMesh)
dimensionedScalar pos0(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar cos(const dimensionedScalar &ds)