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.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
virtual void boundControlField(vectorField &controlField)
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
scalar getMaxDisplacement() const
Get max displacement.
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
messageStream Info
Information stream (stdout output on master, null elsewhere)
autoPtr< motionSolver > & getMotionSolver()
Get access to motionSolver.
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)
Global function forwards to reuseTmpDimensionedField::New.
void update()
Update mesh.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
static autoPtr< displacementMethod > New(fvMesh &mesh, const labelList &patchIDs)
Return a reference to the selected turbulence model.
defineTypeNameAndDebug(combustionModel, 0)
Type gMax(const FieldField< Field, Type > &f)