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_
120 return maxDisplacement_;
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;
const labelList patchIDs(pbm.indices(polyPatchNames, true))
void update()
Update mesh.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Ostream & endl(Ostream &os)
Add newline and flush stream.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Virtual base class for mesh motion solver.
Ignore writing from objectRegistry::writeObject()
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A class for handling words, derived from Foam::string.
virtual void boundControlField(vectorField &controlField)
Bound control field in certain directions etc. For methods working with parameters (RBF etc) does not...
Abstract base class for displacement methods, which are a set or wrapper classes allowing to change t...
static autoPtr< displacementMethod > New(fvMesh &mesh, const labelList &patchIDs)
Return a reference to the selected turbulence model.
autoPtr< motionSolver > & getMotionSolver()
Get access to motionSolver.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
Type gMax(const FieldField< Field, Type > &f)
defineTypeNameAndDebug(combustionModel, 0)
scalar getMaxDisplacement() const
Get max displacement.
Mesh data needed to do the Finite Volume discretisation.
messageStream Info
Information stream (stdout output on master, null elsewhere)
A class for managing temporary objects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
#define FatalIOErrorInLookup(ios, lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalIOError.
virtual bool preferPointField() const
Whether the motion solver prefers a point of a vol field as input.
Do not request registration (bool: false)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...