42 displacementComponentLaplacianFvMotionSolver,
63 "cellDisplacement" + cmptName_,
71 cellMotionBoundaryTypes<scalar>(pointDisplacement_.boundaryField())
73 pointLocation_(
nullptr),
80 coeffDict().
found(
"frozenPointsZone")
81 ? fvMesh_.pointZones().findZoneID(coeffDict().
lookup(
"frozenPointsZone"))
87 coeffDict().lookupOrDefault
94 if (applyPointLocation)
103 fvMesh_.time().timeName(),
114 Info<<
"displacementComponentLaplacianFvMotionSolver :" 115 <<
" Read pointVectorField " 116 << pointLocation_().name()
117 <<
" to be used for boundary conditions on points." 119 <<
"Boundary conditions:" 120 << pointLocation_().boundaryField().types() <<
endl;
144 if (pointLocation_.valid())
148 Info<<
"displacementComponentLaplacianFvMotionSolver : applying " 149 <<
" boundary conditions on " << pointLocation_().name()
150 <<
" to new point location." 156 pointLocation_().primitiveFieldRef() = fvMesh_.points();
158 pointLocation_().primitiveFieldRef().replace
161 points0_ + pointDisplacement_.primitiveField()
164 pointLocation_().correctBoundaryConditions();
167 if (frozenPointsZone_ != -1)
169 const pointZone& pz = fvMesh_.pointZones()[frozenPointsZone_];
173 label pointi = pz[i];
175 pointLocation_()[pointi][cmpt_] = points0_[pointi];
191 points0_ + pointDisplacement_.primitiveField()
195 if (frozenPointsZone_ != -1)
197 const pointZone& pz = fvMesh_.pointZones()[frozenPointsZone_];
201 label pointi = pz[i];
203 curPoints[pointi][cmpt_] = points0_[pointi];
207 twoDCorrectPoints(curPoints);
218 movePoints(fvMesh_.points());
220 diffusivityPtr_->correct();
221 pointDisplacement_.boundaryFieldRef().updateCoeffs();
227 diffusivityPtr_->operator()(),
229 "laplacian(diffusivity,cellDisplacement)" 244 diffusivityPtr_.reset(
nullptr);
248 coeffDict().
lookup(
"diffusivity")
tmp< GeometricField< Type, pointPatchField, pointMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &) const
Interpolate volField using inverse distance weighting.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
T & ref() const
Return non-const reference or generate a fatal error.
~displacementComponentLaplacianFvMotionSolver()
Destructor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
Calculate the matrix for the laplacian of the field.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
void replace(const direction, const UList< cmptType > &)
Replace a component field of the field.
virtual void updateMesh(const mapPolyMesh &)
Update topology.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
conserve primitiveFieldRef()+
Macros for easy insertion into run-time selection tables.
static const pointMesh & New(const polyMesh &mesh)
Base class for fvMesh based motionSolvers.
vectorField pointField
pointField is a vectorField.
stressControl lookup("compactNormalStress") >> compactNormalStress
displacementComponentLaplacianFvMotionSolver(const polyMesh &, const dictionary &)
Construct from polyMesh and dictionary.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const Time & time() const
Return time.
defineTypeNameAndDebug(combustionModel, 0)
virtual void solve()
Solve for motion.
A subset of mesh points. The labels of points in the zone can be obtained from the addressing() list...
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
SolverPerformance< Type > solve(fvMatrix< Type > &, const word &)
Solve returning the solution statistics given convergence tolerance.
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
static autoPtr< motionDiffusivity > New(const fvMesh &mesh, Istream &mdData)
Select null constructed.
Virtual base class for displacement motion solver.
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...