Information about the dimensions of a Cartesian grid. More...
#include <arcane/core/CartesianGridDimension.h>
Classes | |
| class | NodeUniqueIdComputer2D |
| Class for calculating the uniqueId() of a node in 2D based on its position in the grid. More... | |
| class | CellUniqueIdComputer2D |
| Class for calculating the uniqueId() of a cell in 2D based on its position in the grid. More... | |
| class | FaceUniqueIdComputer2D |
| Class for calculating the uniqueId() of a face in 2D based on its position in the grid. More... | |
| class | NodeUniqueIdComputer3D |
| Class for calculating the uniqueId() of a node in 3D based on its position in the grid. More... | |
| class | CellUniqueIdComputer3D |
| Class for calculating the uniqueId() of a cell in 3D based on its position in the grid. More... | |
| class | FaceUniqueIdComputer3D |
| Class for calculating the uniqueId() of a face in 2D based on its position in the grid. More... | |
Public Member Functions | |
| CartesianGridDimension (Int64 nb_cell_x, Int64 nb_cell_y) | |
| Constructs a 2D grid of dimension (nb_cell_x,nb_cell_y). | |
| CartesianGridDimension (Int64 nb_cell_x, Int64 nb_cell_y, Int64 nb_cell_z) | |
| Constructs a 3D grid of dimension (nb_cell_x,nb_cell_y,nb_cell_z). | |
| CartesianGridDimension (const Int64x2 &dims) | |
| Constructs a 2D grid of dimension dims. | |
| CartesianGridDimension (const Int64x3 &dims) | |
| Constructs a 3D grid of dimension dims. | |
| CartesianGridDimension (const Int32x2 &dims) | |
| Constructs a 2D grid of dimension dims. | |
| CartesianGridDimension (const Int32x3 &dims) | |
| Constructs a 3D grid of dimension dims. | |
| constexpr Int64x3 | nbCell () const |
| Number of cells in each direction. | |
| constexpr Int64x3 | nbNode () const |
| Number of nodes in each direction. | |
| constexpr Int64x3 | nbFace () const |
| Number of faces in each direction. | |
| constexpr Int64x3 | nbFaceParallelToDirection () const |
| Total number of faces parallel to a given direction. | |
| constexpr Int64 | totalNbCell () const |
| Total number of cells. | |
Private Member Functions | |
| NodeUniqueIdComputer2D | getNodeComputer2D (Int64 offset) const |
| Instance to calculate the uniqueIds() of nodes for this grid. | |
| NodeUniqueIdComputer3D | getNodeComputer3D (Int64 offset) const |
| Instance to calculate the uniqueIds() of nodes for this grid. | |
| CellUniqueIdComputer2D | getCellComputer2D (Int64 offset) const |
| Instance to calculate the uniqueIds() of cells for this grid. | |
| CellUniqueIdComputer3D | getCellComputer3D (Int64 offset) const |
| Instance to calculate the uniqueIds() of cells for this grid. | |
| FaceUniqueIdComputer2D | getFaceComputer2D (Int64 offset) const |
| Instance to calculate the uniqueIds() of faces for this grid. | |
| FaceUniqueIdComputer3D | getFaceComputer3D (Int64 offset) const |
| Instance to calculate the uniqueIds() of faces for this grid. | |
| void | _init () |
Private Attributes | |
| Int64x3 | m_nb_cell |
| Number of cells in each direction. | |
| Int64x3 | m_nb_node |
| Number of nodes in each direction. | |
| Int64x3 | m_nb_face |
| Number of faces in each direction. | |
| Int64x3 | m_nb_face_oriented |
| Total number of faces in a given orientation. | |
| Int64 | m_nb_cell_xy = 0 |
| Int64 | m_total_nb_cell = 0 |
Friends | |
| class | CartesianMeshUniqueIdRenumbering |
| class | CartesianMeshCoarsening |
| class | CartesianMeshCoarsening2 |
Information about the dimensions of a Cartesian grid.
This class allows obtaining, based on the number of cells in each direction, the various information about the dimensions of the mesh.
Definition at line 48 of file CartesianGridDimension.h.
Constructs a 2D grid of dimension (nb_cell_x,nb_cell_y).
Definition at line 40 of file CartesianGridDimension.cc.
| Arcane::CartesianGridDimension::CartesianGridDimension | ( | Int64 | nb_cell_x, |
| Int64 | nb_cell_y, | ||
| Int64 | nb_cell_z ) |
Constructs a 3D grid of dimension (nb_cell_x,nb_cell_y,nb_cell_z).
Definition at line 30 of file CartesianGridDimension.cc.
References m_nb_cell.
|
explicit |
Constructs a 2D grid of dimension dims.
Definition at line 49 of file CartesianGridDimension.cc.
|
explicit |
Constructs a 3D grid of dimension dims.
Definition at line 58 of file CartesianGridDimension.cc.
|
explicit |
Constructs a 2D grid of dimension dims.
Definition at line 67 of file CartesianGridDimension.cc.
|
explicit |
Constructs a 3D grid of dimension dims.
Definition at line 76 of file CartesianGridDimension.cc.
|
private |
Definition at line 85 of file CartesianGridDimension.cc.
|
inlineprivate |
Instance to calculate the uniqueIds() of cells for this grid.
Definition at line 349 of file CartesianGridDimension.h.
References m_nb_cell.
Referenced by Arcane::CartesianMeshCoarsening2::_createCoarseCells2D(), and Arcane::CartesianMeshCoarsening::createCoarseCells().
|
inlineprivate |
Instance to calculate the uniqueIds() of cells for this grid.
Definition at line 354 of file CartesianGridDimension.h.
References m_nb_cell.
Referenced by Arcane::CartesianMeshCoarsening2::_createCoarseCells3D().
|
inlineprivate |
Instance to calculate the uniqueIds() of faces for this grid.
Definition at line 359 of file CartesianGridDimension.h.
References m_nb_cell, m_nb_face, and nbFaceParallelToDirection().
Referenced by Arcane::CartesianMeshCoarsening2::_createCoarseCells2D(), Arcane::mesh::CartesianFaceUniqueIdBuilder::computeFacesUniqueIdAndOwner(), and Arcane::CartesianMeshCoarsening::createCoarseCells().
|
inlineprivate |
Instance to calculate the uniqueIds() of faces for this grid.
Definition at line 365 of file CartesianGridDimension.h.
References m_nb_cell, m_nb_face, and nbFaceParallelToDirection().
Referenced by Arcane::CartesianMeshCoarsening2::_createCoarseCells3D(), and Arcane::mesh::CartesianFaceUniqueIdBuilder::computeFacesUniqueIdAndOwner().
|
inlineprivate |
Instance to calculate the uniqueIds() of nodes for this grid.
Definition at line 339 of file CartesianGridDimension.h.
References m_nb_node.
Referenced by Arcane::CartesianMeshCoarsening2::_createCoarseCells2D(), and Arcane::CartesianMeshCoarsening::createCoarseCells().
|
inlineprivate |
Instance to calculate the uniqueIds() of nodes for this grid.
Definition at line 344 of file CartesianGridDimension.h.
References m_nb_node.
Referenced by Arcane::CartesianMeshCoarsening2::_createCoarseCells3D().
|
inlineconstexpr |
Number of cells in each direction.
Definition at line 322 of file CartesianGridDimension.h.
References m_nb_cell.
Referenced by Arcane::mesh::CartesianFaceUniqueIdBuilder::computeFacesUniqueIdAndOwner().
|
inlineconstexpr |
Number of faces in each direction.
Definition at line 328 of file CartesianGridDimension.h.
References m_nb_face.
Referenced by Arcane::mesh::CartesianFaceUniqueIdBuilder::computeFacesUniqueIdAndOwner().
|
inlineconstexpr |
Total number of faces parallel to a given direction.
Definition at line 331 of file CartesianGridDimension.h.
References m_nb_face_oriented.
Referenced by Arcane::mesh::CartesianFaceUniqueIdBuilder::computeFacesUniqueIdAndOwner(), getFaceComputer2D(), and getFaceComputer3D().
|
inlineconstexpr |
Number of nodes in each direction.
Definition at line 325 of file CartesianGridDimension.h.
References m_nb_node.
|
inlineconstexpr |
Total number of cells.
Definition at line 334 of file CartesianGridDimension.h.
|
friend |
Definition at line 54 of file CartesianGridDimension.h.
|
friend |
Definition at line 55 of file CartesianGridDimension.h.
|
friend |
Definition at line 53 of file CartesianGridDimension.h.
|
private |
Number of cells in each direction.
Definition at line 376 of file CartesianGridDimension.h.
Referenced by CartesianGridDimension(), getCellComputer2D(), getCellComputer3D(), getFaceComputer2D(), getFaceComputer3D(), and nbCell().
|
private |
Definition at line 384 of file CartesianGridDimension.h.
|
private |
Number of faces in each direction.
Definition at line 380 of file CartesianGridDimension.h.
Referenced by getFaceComputer2D(), getFaceComputer3D(), and nbFace().
|
private |
Total number of faces in a given orientation.
Definition at line 382 of file CartesianGridDimension.h.
Referenced by nbFaceParallelToDirection().
|
private |
Number of nodes in each direction.
Definition at line 378 of file CartesianGridDimension.h.
Referenced by getNodeComputer2D(), getNodeComputer3D(), and nbNode().
|
private |
Definition at line 385 of file CartesianGridDimension.h.