46Foam::dynamicInkJetFvMesh::dynamicInkJetFvMesh
66 ).optionalSubDict(
typeName +
"Coeffs")
68 amplitude_(dynamicMeshCoeffs_.get<scalar>(
"amplitude")),
69 frequency_(dynamicMeshCoeffs_.get<scalar>(
"frequency")),
70 refPlaneX_(dynamicMeshCoeffs_.get<scalar>(
"refPlaneX")),
84 Info<<
"Performing a dynamic mesh calculation: " <<
endl
85 <<
"amplitude: " << amplitude_
86 <<
" frequency: " << frequency_
87 <<
" refPlaneX: " << refPlaneX_ <<
endl;
100 scalar scalingFunction =
107 Info<<
"Mesh scaling. Time = " << time().value() <<
" scaling: "
108 << scalingFunction <<
endl;
120 - (stationaryPoints_.component(
vector::X))
122 )*amplitude_*scalingFunction
128 lookupObjectRef<volVectorField>(
"U").correctBoundaryConditions();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
void replace(const direction, const UList< cmptType > &)
Replace a component field of the field.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
@ NO_REGISTER
Do not request registration (bool: false).
@ MUST_READ
Reading required.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T. FatalIOError if not found, or if the number of tokens is incorrect.
const dictionary & optionalSubDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary, otherwise return this dictionary.
Abstract base class for geometry and/or topology changing fvMesh.
Mesh motion specifically for the "pumping" system of an ink-jet injector.
~dynamicInkJetFvMesh()
Destructor.
virtual bool update()
Update the mesh for both mesh motion and topology change.
virtual bool movePoints()
Avoid masking surfaceInterpolation method.
const Time & time() const
Return the top-level database.
Type & lookupObjectRef(const word &name, const bool recursive=false) const
Lookup and return non-const reference to the object of the given Type. Fatal if not found or the wron...
static word meshSubDir
Return the mesh sub-directory name (usually "polyMesh").
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
constexpr scalar twoPi(2 *M_PI)
Different types of constants.
dimensionedScalar pos0(const dimensionedScalar &ds)
messageStream Info
Information stream (stdout output on master, null elsewhere).
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
Ostream & endl(Ostream &os)
Add newline and flush stream.
vectorField pointField
pointField is a vectorField.
dimensionedScalar cos(const dimensionedScalar &ds)