![]() |
PRISMS-PF Manual
|
Struct that holds spatial discretization parameters. More...
#include <spatial_discretization.h>
Public Types | |
| using | Triangulation = typename Mesh<dim>::Triangulation |
Public Member Functions | |
| void | assign (dealii::ParameterHandler ¶meter_handler, unsigned int n_subsections=Numbers::default_subsections) override |
| Assign the parameters from file. | |
| void | validate (const std::vector< FieldAttributes > &field_attributes, const std::vector< SolveBlock > &solve_blocks) const override |
| Validate. | |
| void | generate_mesh (Triangulation &triangulation) const override |
| Generate the mesh. | |
| void | mark_boundaries (Triangulation &triangulation) const override |
| Mark the boundaries of the mesh. | |
| std::list< PeriodicPair< dim > > | periodicity_set () const override |
| Periodicity set. | |
| double | distance (const dealii::Point< dim > &point_1, const dealii::Point< dim > &point_2) const override |
| Calculation the distance between two points considering periodic boundaries. | |
| const Mesh< dim > & | get_mesh () const |
| Get the mesh object. | |
| Mesh< dim > & | get_mesh () |
| Get the mesh object. | |
| bool | should_refine_mesh (unsigned int increment) const |
| Whether the provided increment is a valid grid refinement step. | |
Public Member Functions inherited from ParameterBase | |
| ParameterBase ()=default | |
| virtual | ~ParameterBase ()=default |
| ParameterBase (const ParameterBase &)=default | |
| ParameterBase (ParameterBase &&)=default | |
| ParameterBase & | operator= (const ParameterBase &)=default |
| ParameterBase & | operator= (ParameterBase &&)=default |
Static Public Member Functions | |
| static void | declare (dealii::ParameterHandler ¶meter_handler, unsigned int n_subsections=Numbers::default_subsections) |
| Declare the parameters to be read from file. | |
Public Attributes | |
| TriangulationType | mesh_type = TriangulationType::Rectangular |
| RectangularMesh< dim > | rectangular_mesh |
| SphericalMesh< dim > | spherical_mesh |
| Mesh< dim > * | custom_mesh = nullptr |
| unsigned int | global_refinement = 0 |
| bool | has_adaptivity = false |
| unsigned int | max_refinement = 0 |
| unsigned int | min_refinement = 0 |
| unsigned int | remeshing_period = UINT_MAX |
| std::map< std::string, RefinementCriterion > | refinement_criteria |
Additional Inherited Members | |
Private Types inherited from Mesh< dim > | |
| using | Triangulation |
Private Member Functions inherited from Mesh< dim > | |
| Mesh ()=default | |
| Constructor. | |
| template<typename real1, typename real2> | |
| double | distance (const dealii::Point< dim, real1 > &point_1, const dealii::Point< dim, real2 > &point_2) const |
| Calculation the distance between two points considering periodic boundaries. | |
| template<typename real1> | |
| dealii::VectorizedArray< real1 > | distance (const dealii::Point< dim, dealii::VectorizedArray< real1 > > &point_1, const dealii::Point< dim, dealii::VectorizedArray< real1 > > &point_2) const |
| Calculation the distance between two points considering periodic boundaries. | |
| virtual void | validate () const |
| Validate. | |
| void | mark_periodic (Triangulation &triangulation) const |
| Mark the periodic faces of the mesh. | |
| template<typename number> | |
| void | mark_periodic (const dealii::DoFHandler< dim > &dof_handler, dealii::AffineConstraints< number > &constraints) const |
| Mark the periodic faces of the mesh. | |
| template<unsigned int dim> | |
| void | mark_periodic (typename Mesh< dim >::Triangulation &triangulation) const |
Struct that holds spatial discretization parameters.
| using SpatialDiscretization< dim >::Triangulation = typename Mesh<dim>::Triangulation |
|
overridevirtual |
Assign the parameters from file.
Implements ParameterBase.
|
static |
Declare the parameters to be read from file.
|
overridevirtual |
Calculation the distance between two points considering periodic boundaries.
Reimplemented from Mesh< dim >.
|
overridevirtual |
Generate the mesh.
Implements Mesh< dim >.
| Mesh< dim > & SpatialDiscretization< dim >::get_mesh | ( | ) |
Get the mesh object.
| const Mesh< dim > & SpatialDiscretization< dim >::get_mesh | ( | ) | const |
Get the mesh object.
|
overridevirtual |
Mark the boundaries of the mesh.
Reimplemented from Mesh< dim >.
|
overridevirtual |
Periodicity set.
This set contains all the information about periodicity for the system. Each entry contain tuple with three entries: the first boundary id, the second boundary id, and the direction.
Reimplemented from Mesh< dim >.
|
nodiscard |
Whether the provided increment is a valid grid refinement step.
|
overridevirtual |
Validate.
Implements ParameterBase.
| Mesh<dim>* SpatialDiscretization< dim >::custom_mesh = nullptr |
| unsigned int SpatialDiscretization< dim >::global_refinement = 0 |
| bool SpatialDiscretization< dim >::has_adaptivity = false |
| unsigned int SpatialDiscretization< dim >::max_refinement = 0 |
| TriangulationType SpatialDiscretization< dim >::mesh_type = TriangulationType::Rectangular |
| unsigned int SpatialDiscretization< dim >::min_refinement = 0 |
| RectangularMesh<dim> SpatialDiscretization< dim >::rectangular_mesh |
| std::map<std::string, RefinementCriterion> SpatialDiscretization< dim >::refinement_criteria |
| unsigned int SpatialDiscretization< dim >::remeshing_period = UINT_MAX |
| SphericalMesh<dim> SpatialDiscretization< dim >::spherical_mesh |