Go to the documentation of this file.
43 codedPoints0MotionSolver,
75 "-I$(LIB_SRC)/finiteVolume/lnInclude \\\n"
76 "-I$(LIB_SRC)/meshTools/lnInclude \\\n"
77 "-I$(LIB_SRC)/dynamicMesh/lnInclude \\\n"
78 "-I$(LIB_SRC)/fvMotionSolvers/lnInclude \\\n"
80 +
"\n\nLIB_LIBS = \\\n"
81 " -lfiniteVolume \\\n"
84 " -lfvMotionSolvers \\\n"
98 return "points0MotionSolver " +
name();
104 redirectMotionSolverPtr_.clear();
128 updateLibrary(name_);
129 redirectMotionSolver();
138 if (!redirectMotionSolverPtr_)
144 constructDict.
set(
"solver", name_);
145 constructDict.
set(
"motionSolver", name_);
157 return *redirectMotionSolverPtr_;
163 updateLibrary(name_);
164 return redirectMotionSolver().curPoints();
170 updateLibrary(name_);
171 redirectMotionSolver().solve();
177 updateLibrary(name_);
178 return redirectMotionSolver().movePoints(
fld);
184 updateLibrary(name_);
185 return redirectMotionSolver().updateMesh(mpm);
const string & libs() const
Return the code-libs.
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
static autoPtr< motionSolver > New(const polyMesh &)
Select constructed from polyMesh.
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,...
A table of dynamically loaded libraries.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
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.
const Time & time() const
Return time.
Base class for function objects and boundary conditions using dynamic code that provides methods for ...
A class for handling character strings derived from std::string.
entry * set(entry *entryPtr)
Assign a new entry, overwriting any existing entry.
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.
void addCopyFile(const fileName &name)
Add a file template name, which will be found and filtered.
void addCompileFile(const fileName &name)
Add a file template name, which will be found and filtered.
virtual const dictionary & codeDict() const
virtual void solve()
Solve for motion.
motionSolver & redirectMotionSolver() const
Dynamically compiled motionSolver.
word name(const complex &c)
Return string representation of complex.
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,...
Macros for easy insertion into run-time selection tables.
const string & options() const
Return the code-options.
virtual string description() const
Return a description (type + name) for the output.
void setFilterVariable(const word &key, const std::string &value)
Define a filter variable.
virtual void prepare(dynamicCode &, const dynamicCodeContext &) const
Adapt the context for the current object.
virtual void clearRedirect() const
Clear any redirected objects.
void setMakeOptions(const std::string &content)
Define contents for Make/options.
Virtual base class for mesh motion solver.
readOption readOpt() const
The read option.
bool readCompat(const word &keyword, std::initializer_list< std::pair< const char *, int >> compat, T &val, enum keyType::option=keyType::REGEX, bool mandatory=true) const
const polyMesh & mesh() const
Return reference to mesh.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
defineTypeNameAndDebug(combustionModel, 0)