![]() |
PRISMS-PF Manual
|
This class handlers the generation and manipulation of triangulations. More...
#include <triangulation_manager.h>
Public Member Functions | |
| TriangulationManager () | |
| Constructor. | |
| void | init_mg () |
| Initialize the multigrid triangulations. | |
| void | clear_mg () |
| Remove the multigrid triangulations. | |
| bool | has_mg () const |
| Check if the multigrid triangulations are initialized. | |
| unsigned int | num_levels () const |
| Get the number of levels in the multigrid. | |
| const Triangulation< dim > & | get_triangulation () const |
| Getter function for triangulation. | |
| const dealii::Triangulation< dim > & | get_triangulation (unsigned int relative_level) const |
| Getter function for a relative level in the globally coarsening multigrid triangulation. | |
| const std::vector< dealii::GridTools::PeriodicFacePair< typename dealii::Triangulation< dim >::cell_iterator > > & | get_periodic_face_pairs () const |
| Get the vector of periodic face pairs. | |
| double | get_volume () const |
| Get the volume of the triangulation. | |
| void | generate_mesh (const SpatialDiscretization< dim > &discretization_params) |
| Generate mesh based on the inputs provided by the user. | |
| void | export_triangulation_as_vtk (const std::string &filename) const |
| Export triangulation to vtk. This is done for debugging purposes when dealing with unusual meshes (e.g., circular domains). | |
| void | prepare_for_grid_refinement () |
| Prepare the triangulation for grid refinement. | |
| void | execute_grid_refinement () |
| Execute grid refinement on the triangulation. | |
| void | clear_user_flags () |
| Clear all user flags. | |
| PRISMS_PF_BEGIN_NAMESPACE | TriangulationManager () |
Private Attributes | |
| Triangulation< dim > | triangulation |
| Main triangulation. | |
| std::vector< std::shared_ptr< const dealii::Triangulation< dim > > > | coarsened_triangulations |
| Coarsened triangulations for multigrid. | |
| std::vector< dealii::GridTools::PeriodicFacePair< typename dealii::Triangulation< dim >::cell_iterator > > | periodicity_vector |
| Periodic face pairs on the coarsest mesh if they exist. | |
| double | volume = 0 |
| Volume of the triangulation. | |
This class handlers the generation and manipulation of triangulations.
|
explicit |
Constructor.
| PRISMS_PF_BEGIN_NAMESPACE TriangulationManager< 1U >::TriangulationManager | ( | ) |
| void TriangulationManager< dim >::clear_mg | ( | ) |
Remove the multigrid triangulations.
|
inline |
Clear all user flags.
|
inline |
Execute grid refinement on the triangulation.
| void TriangulationManager< dim >::export_triangulation_as_vtk | ( | const std::string & | filename | ) | const |
Export triangulation to vtk. This is done for debugging purposes when dealing with unusual meshes (e.g., circular domains).
| void TriangulationManager< dim >::generate_mesh | ( | const SpatialDiscretization< dim > & | discretization_params | ) |
Generate mesh based on the inputs provided by the user.
|
nodiscard |
Get the vector of periodic face pairs.
|
nodiscard |
Getter function for triangulation.
|
nodiscard |
Getter function for a relative level in the globally coarsening multigrid triangulation.
|
nodiscard |
Get the volume of the triangulation.
|
nodiscard |
Check if the multigrid triangulations are initialized.
| void TriangulationManager< dim >::init_mg | ( | ) |
Initialize the multigrid triangulations.
|
nodiscard |
Get the number of levels in the multigrid.
|
inline |
Prepare the triangulation for grid refinement.
|
private |
Coarsened triangulations for multigrid.
|
private |
Periodic face pairs on the coarsest mesh if they exist.
|
private |
Main triangulation.
|
private |
Volume of the triangulation.