83 cellMotionBoundaryTypes<
vector>(pointDisplacement_.boundaryField())
85 pointLocation_(nullptr),
88 coeffDict().
found(
"interpolation")
98 coeffDict().
found(
"frozenPointsZone")
99 ? fvMesh_.pointZones().findZoneID
101 coeffDict().get<
word>(
"frozenPointsZone")
117 Info<<
"displacementLaplacianFvMotionSolver:" <<
nl
118 <<
" diffusivity : " << diffusivityPtr_().type() <<
nl
119 <<
" frozenPoints zone : " << frozenPointsZone_ <<
endl;
136 Info<<
"displacementLaplacianFvMotionSolver :"
137 <<
" Read pointVectorField "
139 <<
" to be used for boundary conditions on points."
141 <<
"Boundary conditions:"
142 << pointLocation_().boundaryField().types() <<
endl;
148Foam::displacementLaplacianFvMotionSolver::
149displacementLaplacianFvMotionSolver
171 cellMotionBoundaryTypes<
vector>(pointDisplacement_.boundaryField())
173 pointLocation_(nullptr),
176 coeffDict().
found(
"interpolation")
186 coeffDict().
found(
"frozenPointsZone")
187 ? fvMesh_.pointZones().findZoneID
189 coeffDict().get<
word>(
"frozenPointsZone")
205 Info<<
"displacementLaplacianFvMotionSolver:" <<
nl
206 <<
" diffusivity : " << diffusivityPtr_().type() <<
nl
207 <<
" frozenPoints zone : " << frozenPointsZone_ <<
endl;
224 Info<<
"displacementLaplacianFvMotionSolver :"
225 <<
" Read pointVectorField "
227 <<
" to be used for boundary conditions on points."
229 <<
"Boundary conditions:"
230 << pointLocation_().boundaryField().types() <<
endl;
248 if (!diffusivityPtr_)
253 coeffDict().
lookup(
"diffusivity")
257 return *diffusivityPtr_;
264 interpolationPtr_->interpolate
274 Info<<
"displacementLaplacianFvMotionSolver : applying "
275 <<
" boundary conditions on " << pointLocation_().name()
276 <<
" to new point location."
280 pointLocation_().primitiveFieldRef() =
282 + pointDisplacement_.primitiveField();
284 pointLocation_().correctBoundaryConditions();
287 if (frozenPointsZone_ != -1)
289 const pointZone& pz = fvMesh_.pointZones()[frozenPointsZone_];
293 pointLocation_()[pz[i]] =
points0()[pz[i]];
305 points0() + pointDisplacement_.primitiveField()
310 if (frozenPointsZone_ != -1)
312 const pointZone& pz = fvMesh_.pointZones()[frozenPointsZone_];
316 curPoints[pz[i]] =
points0()[pz[i]];
320 twoDCorrectPoints(curPoints);
331 movePoints(fvMesh_.points());
333 diffusivity().correct();
334 pointDisplacement_.boundaryFieldRef().updateCoeffs();
345 *diffusivity().
operator()(),
347 "laplacian(diffusivity,cellDisplacement)"
368 diffusivityPtr_.clear();
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A primitive field of type <T> with automated input and output.
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,...
const word & name() const noexcept
Return the object name.
bool typeHeaderOk(const bool checkType=true, const bool search=true, const bool verbose=true)
Read header (uses typeFilePath to find file) and check its info.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
static word timeName(const scalar t, const int precision=precision_)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh motion solver for an fvMesh. Based on solving the cell-centre Laplacian for the motion displacem...
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
motionDiffusivity & diffusivity()
Return reference to the diffusivity field.
~displacementLaplacianFvMotionSolver()
Destructor.
virtual void solve()
Solve for motion.
Virtual base class for displacement motion solver.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
SolverPerformance< Type > solveSegregatedOrCoupled(const dictionary &)
Solve segregated or coupled returning the solution statistics.
const dictionary & solverDict() const
Return the solver dictionary taking into account finalIteration.
const Time & time() const
Return the top-level database.
Base class for fvMesh based motionSolvers.
const fvMesh & fvMesh_
The fvMesh to be moved.
void constrain(fvMatrix< Type > &eqn)
Apply constraints to equation.
void correct(GeometricField< Type, fvPatchField, volMesh > &field)
Apply correction to field.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Abstract base class for cell-centre mesh motion diffusivity.
Base class for interpolation of cell displacement fields, generated by fvMotionSolvers,...
void updateMesh()
Update for new mesh topology.
Virtual base class for mesh motion solver.
Mesh consisting of general polyhedral cells.
Lookup type of boundary radiation properties.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
Calculate the matrix for the laplacian of the field.
fvScalarMatrix TEqn(fvm::ddt(T)+fvm::div(phi, T) - fvm::laplacian(alphaEff, T)==radiation->ST(rhoCpRef, T)+fvOptions(T))
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
tmp< fvMatrix< Type > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
const dimensionSet dimViscosity
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static constexpr const zero Zero
Global zero (0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
constexpr char nl
The newline '\n' character (0x0a)
#define forAll(list, i)
Loop across all elements in list.
pointField points0(pointIOField(IOobject("points", mesh.time().constant(), polyMesh::meshSubDir, mesh, IOobject::MUST_READ, IOobject::NO_WRITE, false)))
conserve primitiveFieldRef()+