Go to the documentation of this file.
43 Foam::displacementMethod::displacementMethod
52 maxDisplacement_(SMALL)
71 mesh.time().constant(),
78 word solverType(dynamicMeshDict.get<
word>(
"solver"));
80 Info<<
"displacementMethod type : " << solverType <<
endl;
82 auto* ctorPtr = dictionaryConstructorTable(solverType);
91 *dictionaryConstructorTablePtr_
114 return maxDisplacement_;
120 scalar timeBef = mesh_.time().elapsedCpuTime();
124 Info<<
"Max mesh movement magnitude "
125 <<
gMax(
mag(tnewPoints() - mesh_.points())) <<
endl;
128 mesh_.movePoints(tnewPoints());
129 scalar timeAft = mesh_.time().elapsedCpuTime();
130 Info<<
"Mesh movement took " << timeAft - timeBef <<
" seconds" <<
endl;
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
Abstract base class for displacement methods, which are a set or wrapper classes allowing to change t...
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
virtual void boundControlField(vectorField &controlField)
Ostream & endl(Ostream &os)
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
scalar getMaxDisplacement() const
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Generic templated field type.
autoPtr< motionSolver > & getMotionSolver()
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Virtual base class for mesh motion solver.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static autoPtr< displacementMethod > New(fvMesh &mesh, const labelList &patchIDs)
defineTypeNameAndDebug(combustionModel, 0)
Type gMax(const FieldField< Field, Type > &f)