RectangularMesh< dim_, TriangulationType_ > Class Template Reference#
|
DiFfRG
Discretization Framework for functional Renormalization Group flows
|
Class to manage the discretization mesh, also called grid and triangluation, on which we simulate. This class only builds cartesian, regular grids, however cell density in all directions can be chosen independently. More...
#include <rectangular_mesh.hh>
Public Types | |
| using | TriangulationType = TriangulationType_ |
Public Member Functions | |
| RectangularMesh (const ConfigTree &config) | |
| Construct a new RectangularMesh object. | |
| RectangularMesh (const ConfigTree &config, RectangularMeshOptions options) | |
| Construct a new RectangularMesh object from ConfigTree configuration. | |
| RectangularMesh (const Config::ConfigurationMesh< dim > &mesh_config) | |
| RectangularMesh (const Config::ConfigurationMesh< dim > &mesh_config, RectangularMeshOptions options) | |
| Construct a new RectangularMesh object. | |
| TriangulationType & | get_triangulation () |
| const TriangulationType & | get_triangulation () const |
Static Public Attributes | |
| static constexpr uint | dim = dim_ |
| static constexpr bool | is_rectangular = true |
| static constexpr bool | is_parallel = !std::is_same_v<TriangulationType, dealii::Triangulation<dim_>> |
Whether cells carry subdomain ids, i.e. whether cell->is_locally_owned() is selective. | |
Protected Member Functions | |
| virtual void | make_grid () |
Protected Attributes | |
| const Config::ConfigurationMesh< dim > | mesh_config |
| const RectangularMeshOptions | options |
Protected Attributes inherited from DiFfRG::internal::TriangulationHolder< Tria > | |
| Tria | triangulation |
Detailed Description
class DiFfRG::RectangularMesh< dim_, TriangulationType_ >
Class to manage the discretization mesh, also called grid and triangluation, on which we simulate. This class only builds cartesian, regular grids, however cell density in all directions can be chosen independently.
- Template Parameters
-
dim_ dimensionality of the spatial discretization. TriangulationType_ the triangulation to build on. Defaults to DefaultTriangulation<dim_>, i.e. parallel::shared::Triangulationin an MPI+PETSc build anddealii::Triangulationotherwise, so that a plainRectangularMesh<dim>follows the build configuration. A partitioned triangulation splits cell ownership across ranks while keeping the mesh itself replicated, which is what lets the assemblers restrict themselves to locally-owned cells without any of the caches or the EoM search having to change.
Use RectangularMeshSerial<dim> / RectangularMeshParallel<dim> below to pin one explicitly.
Member Typedef Documentation
◆ TriangulationType
| using DiFfRG::RectangularMesh< dim_, TriangulationType_ >::TriangulationType = TriangulationType_ |
Constructor & Destructor Documentation
◆ RectangularMesh() [1/4]
| DiFfRG::RectangularMesh< dim_, TriangulationType_ >::RectangularMesh | ( | const ConfigTree & | config | ) |
Construct a new RectangularMesh object.
- Parameters
-
config ConfigTree object containing the parameters for the mesh.
◆ RectangularMesh() [2/4]
| DiFfRG::RectangularMesh< dim_, TriangulationType_ >::RectangularMesh | ( | const ConfigTree & | config, |
| RectangularMeshOptions | options ) |
Construct a new RectangularMesh object from ConfigTree configuration.
- Parameters
-
config ConfigTree object containing the parameters for the mesh. options Options controlling rectangular mesh construction.
All configured axes must start at zero when origin centering is enabled.
◆ RectangularMesh() [3/4]
| DiFfRG::RectangularMesh< dim_, TriangulationType_ >::RectangularMesh | ( | const Config::ConfigurationMesh< dim > & | mesh_config | ) |
◆ RectangularMesh() [4/4]
| DiFfRG::RectangularMesh< dim_, TriangulationType_ >::RectangularMesh | ( | const Config::ConfigurationMesh< dim > & | mesh_config, |
| RectangularMeshOptions | options ) |
Construct a new RectangularMesh object.
- Parameters
-
mesh_config Configuration of the rectangular mesh. options Options controlling rectangular mesh construction.
All configured axes must start at zero when origin centering is enabled.
Member Function Documentation
◆ get_triangulation() [1/2]
|
inline |
◆ get_triangulation() [2/2]
|
inline |
◆ make_grid()
|
protectedvirtual |
Member Data Documentation
◆ dim
|
staticconstexpr |
◆ is_parallel
|
staticconstexpr |
Whether cells carry subdomain ids, i.e. whether cell->is_locally_owned() is selective.
◆ is_rectangular
|
staticconstexpr |
◆ mesh_config
|
protected |
◆ options
|
protected |
The documentation for this class was generated from the following file:
- /home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/discretization/mesh/rectangular_mesh.hh
Generated by
Protected Attributes inherited from