Go to the documentation of this file.
74 #ifndef codedPoints0MotionSolver_H
75 #define codedPoints0MotionSolver_H
88 class codedPoints0MotionSolver
135 =
"codedPoints0MotionSolverTemplate.C";
139 =
"codedPoints0MotionSolverTemplate.H";
169 virtual void solve();
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A table of dynamically loaded libraries.
A class for handling words, derived from Foam::string.
Tools for handling dynamic code compilation.
A class for managing temporary objects.
virtual void movePoints(const pointField &fld)
Update local data for geometry changes.
codedPoints0MotionSolver(const codedPoints0MotionSolver &)=delete
No copy construct.
virtual dlLibraryTable & libs() const
Get the loaded dynamic libraries.
Encapsulation of dynamic code dictionaries.
Base class for function objects and boundary conditions using dynamic code that provides methods for ...
void operator=(const codedPoints0MotionSolver &)=delete
No copy assignment.
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
virtual void updateMesh(const mapPolyMesh &mpm)
Update local data for topology changes.
Mesh consisting of general polyhedral cells.
static constexpr const char *const codeTemplateH
Name of the H code template to be used.
virtual const dictionary & codeDict() const
virtual void solve()
Solve for motion.
motionSolver & redirectMotionSolver() const
Dynamically compiled motionSolver.
Provides a general interface to enable dynamic code compilation of mesh motion solvers.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual string description() const
Return a description (type + name) for the output.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
virtual void clearRedirect() const
Clear any redirected objects.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Virtual base class for mesh motion solver.
autoPtr< motionSolver > redirectMotionSolverPtr_
Underlying motionSolver.
static constexpr const char *const codeTemplateC
Name of the C code template to be used.
const polyMesh & mesh() const
Return reference to mesh.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
TypeName("coded")
Runtime type information.
virtual ~codedPoints0MotionSolver()
Destructor.
word name_
Name of redirected motion solver.