44 displacementLaplacianFvMotionSolver,
74 pointDisplacement_.dimensions(),
77 cellMotionBoundaryTypes<vector>(pointDisplacement_.boundaryField())
79 pointLocation_(
nullptr),
86 coeffDict().
found(
"frozenPointsZone")
87 ? fvMesh_.pointZones().findZoneID(coeffDict().
lookup(
"frozenPointsZone"))
94 fvMesh_.time().timeName(),
102 Info<<
"displacementLaplacianFvMotionSolver:" <<
nl 103 <<
" diffusivity : " << diffusivityPtr_().type() <<
nl 104 <<
" frozenPoints zone : " << frozenPointsZone_ <<
endl;
121 Info<<
"displacementLaplacianFvMotionSolver :" 122 <<
" Read pointVectorField " 124 <<
" to be used for boundary conditions on points." 126 <<
"Boundary conditions:" 127 << pointLocation_().boundaryField().types() <<
endl;
145 if (!diffusivityPtr_.valid())
150 coeffDict().
lookup(
"diffusivity")
153 return diffusivityPtr_();
166 if (pointLocation_.valid())
170 Info<<
"displacementLaplacianFvMotionSolver : applying " 171 <<
" boundary conditions on " << pointLocation_().name()
172 <<
" to new point location." 176 pointLocation_().primitiveFieldRef() =
178 + pointDisplacement_.primitiveField();
180 pointLocation_().correctBoundaryConditions();
183 if (frozenPointsZone_ != -1)
185 const pointZone& pz = fvMesh_.pointZones()[frozenPointsZone_];
189 pointLocation_()[pz[i]] = points0()[pz[i]];
201 points0() + pointDisplacement_.primitiveField()
206 if (frozenPointsZone_ != -1)
208 const pointZone& pz = fvMesh_.pointZones()[frozenPointsZone_];
212 curPoints[pz[i]] = points0()[pz[i]];
216 twoDCorrectPoints(curPoints);
227 movePoints(fvMesh_.points());
229 diffusivity().correct();
230 pointDisplacement_.boundaryFieldRef().updateCoeffs();
236 diffusivity().
operator()(),
238 "laplacian(diffusivity,cellDisplacement)" 253 diffusivityPtr_.clear();
tmp< GeometricField< Type, pointPatchField, pointMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &) const
Interpolate volField using inverse distance weighting.
Virtual base class for displacement motion solver.
#define forAll(list, i)
Loop across all elements in list.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Ostream & endl(Ostream &os)
Add newline and flush stream.
~displacementLaplacianFvMotionSolver()
Destructor.
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.
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
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.
virtual void updateMesh(const mapPolyMesh &)
Update topology.
stressControl lookup("compactNormalStress") >> compactNormalStress
virtual void updateMesh(const mapPolyMesh &)
Update local data for topology changes.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
Abstract base class for cell-centre mesh motion diffusivity.
const Time & time() const
Return time.
defineTypeNameAndDebug(combustionModel, 0)
displacementLaplacianFvMotionSolver(const polyMesh &, const dictionary &)
Construct from polyMesh and dictionary.
A subset of mesh points. The labels of points in the zone can be obtained from the addressing() list...
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
virtual void solve()
Solve for motion.
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.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
motionDiffusivity & diffusivity()
Return reference to the diffusivity field.