Go to the documentation of this file.
43 Foam::displacementMethod::displacementMethod
52 maxDisplacement_(SMALL)
71 mesh.time().constant(),
78 word motionSolverName(dynamicMeshDict.
get<
word>(
"solver"));
79 word modelType(
"displacementMethod" + motionSolverName);
81 Info<<
"displacementMethod type : " << modelType <<
endl;
83 auto cstrIter = dictionaryConstructorTablePtr_->cfind(modelType);
85 if (!cstrIter.found())
92 *dictionaryConstructorTablePtr_
115 return maxDisplacement_;
121 scalar timeBef = mesh_.time().elapsedCpuTime();
125 Info<<
"Max mesh movement magnitude "
126 <<
gMax(
mag(tnewPoints() - mesh_.points())) <<
endl;
129 mesh_.movePoints(tnewPoints());
130 scalar timeAft = mesh_.time().elapsedCpuTime();
131 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 (uses stdout - output is on the master only)
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)