35 namespace fvMeshMovers
48 amplitude_(
dict.lookup<scalar>(
"amplitude")),
49 frequency_(
dict.lookup<scalar>(
"frequency")),
50 refPlaneX_(
dict.lookup<scalar>(
"refPlaneX")),
56 mesh.time().constant(),
63 velocityMotionCorrection_(
mesh,
dict)
65 Info<<
"Performing a dynamic mesh calculation: " <<
endl
66 <<
"amplitude: " << amplitude_
67 <<
" frequency: " << frequency_
68 <<
" refPlaneX: " << refPlaneX_ <<
endl;
82 const scalar scalingFunction =
90 << scalingFunction <<
endl;
102 - (stationaryPoints_.component(
vector::X))
104 )*amplitude_*scalingFunction
110 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...
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const Type & value() const
Return const reference to value.
Abstract base class for fvMesh movers.
Mesh motion specifically for the "pumping" system of an ink-jet injector.
inkJet(fvMesh &mesh, const dictionary &dict)
Construct from fvMesh and dictionary.
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.
const Time & time() const
Return the top-level database.
virtual tmp< scalarField > movePoints(const pointField &)
Move points, returns volumes swept by faces in motion.
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.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
#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)