43Foam::displacementMethod::displacementMethod
71 mesh.time().constant(),
78 word solverType(dynamicMeshDict.get<
word>(
"solver"));
80 Info<<
"displacementMethod type : " << solverType <<
endl;
82 auto* ctorPtr = dictionaryConstructorTable(solverType);
91 *dictionaryConstructorTablePtr_
126 scalar timeBef = mesh_.time().elapsedCpuTime();
130 Info<<
"Max mesh movement magnitude "
131 <<
gMax(
mag(tnewPoints() - mesh_.points())) <<
endl;
134 mesh_.movePoints(tnewPoints());
135 scalar timeAft = mesh_.time().elapsedCpuTime();
136 Info<<
"Mesh movement took " << timeAft - timeBef <<
" seconds" <<
endl;
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,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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.
Abstract base class for displacement methods, which are a set or wrapper classes allowing to change t...
autoPtr< motionSolver > motionPtr_
autoPtr< motionSolver > & getMotionSolver()
Get access to motionSolver.
virtual void boundControlField(vectorField &controlField)
Bound control field in certain directions etc. For methods working with parameters (RBF etc) does not...
virtual bool preferPointField() const
Whether the motion solver prefers a point of a vol field as input.
void update()
Update mesh.
static autoPtr< displacementMethod > New(fvMesh &mesh, const labelList &patchIDs)
Return a reference to the selected turbulence model.
scalar getMaxDisplacement() const
Get max displacement.
labelList patchIDs_
IDs of the patches to be moved.
Mesh data needed to do the Finite Volume discretisation.
Virtual base class for mesh motion solver.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
List< label > labelList
A List of labels.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Field< vector > vectorField
Specialisation of Field<T> for vector.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...
errorManipArg< error, int > exit(error &err, const int errNo=1)
Type gMax(const FieldField< Field, Type > &f)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.