![]() |
ryujin 2.5.0 revision c64172211cf21344cb9b9b0f3a1266aa6400d392
|
#include <include/ryujin/discretization/mesh_adaptor.h>


Public Member Functions | |
Constructor and setup | |
| MeshAdaptor (Interface::Simulation< dim, Number > &simulation, const std::string &subsection="/MeshAdaptor") | |
Task | |
| void | prepare (TaskContext< Number > &context) override |
| void | execute (TaskContext< Number > &context) override |
Public Member Functions inherited from ryujin::Interface::Task< Number > | |
| virtual | ~Task ()=default |
| virtual void | initialize (TaskContext< Number > &) |
| virtual void | start (TaskContext< Number > &) |
| virtual void | finalize (TaskContext< Number > &) |
| virtual void | save (boost::archive::binary_oarchive &) const |
| virtual void | load (boost::archive::binary_iarchive &) |
Additional Inherited Members | |
Protected Member Functions inherited from ryujin::Interface::Task< Number > | |
| Task (const std::string &name, TaskPhase phase) | |
The MeshAdaptor class is responsible for performing global or local mesh adaptation.
The class is the task "mesh adaptation" that, whenever its trigger fires (by default in every 10th cycle), analyzes the state vector, marks cells for coarsening and refinement, and adapts the mesh. The state vector of the Simulation is attached to the triangulation and transferred to the new mesh when the Scheduler prepares all tasks again.
Definition at line 94 of file mesh_adaptor.h.
| ryujin::MeshAdaptor< dim, Number >::MeshAdaptor | ( | Interface::Simulation< dim, Number > & | simulation, |
| const std::string & | subsection = "/MeshAdaptor< dim, Number >" |
||
| ) |
Constructor.
|
overridevirtual |
Prepare temporary storage and clean up internal data for the analyze() facility.
Reimplemented from ryujin::Interface::Task< Number >.
|
overridevirtual |
Adapt the mesh whenever the trigger fires.
Implements ryujin::Interface::Task< Number >.