Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::CartesianGridDimension::CellUniqueIdComputer3D Class Reference

Class for calculating the uniqueId() of a cell in 3D based on its position in the grid. More...

Collaboration diagram for Arcane::CartesianGridDimension::CellUniqueIdComputer3D:

Public Member Functions

 CellUniqueIdComputer3D (Int64 base_offset, Int64 all_nb_cell_x, Int64 all_nb_cell_xy)
Int64 compute (Int64 x, Int64 y, Int64 z)
 Calculates the uniqueId() based on coordinates.
Int64x3 compute (Int64 unique_id)
 Calculates the coordinates based on the uniqueId().

Private Attributes

Int64 m_base_offset
Int64 m_all_nb_cell_x
Int64 m_all_nb_cell_xy

Detailed Description

Class for calculating the uniqueId() of a cell in 3D based on its position in the grid.

Definition at line 215 of file CartesianGridDimension.h.

Constructor & Destructor Documentation

◆ CellUniqueIdComputer3D()

Arcane::CartesianGridDimension::CellUniqueIdComputer3D::CellUniqueIdComputer3D ( Int64 base_offset,
Int64 all_nb_cell_x,
Int64 all_nb_cell_xy )
inline

Definition at line 219 of file CartesianGridDimension.h.

Member Function Documentation

◆ compute() [1/2]

Int64x3 Arcane::CartesianGridDimension::CellUniqueIdComputer3D::compute ( Int64 unique_id)
inline

Calculates the coordinates based on the uniqueId().

Definition at line 233 of file CartesianGridDimension.h.

◆ compute() [2/2]

Int64 Arcane::CartesianGridDimension::CellUniqueIdComputer3D::compute ( Int64 x,
Int64 y,
Int64 z )
inline

Calculates the uniqueId() based on coordinates.

Definition at line 228 of file CartesianGridDimension.h.

Referenced by Arcane::CartesianMeshCoarsening2::_createCoarseCells3D(), and Arcane::mesh::CartesianFaceUniqueIdBuilder::computeFacesUniqueIdAndOwner().

Here is the caller graph for this function:

Member Data Documentation

◆ m_all_nb_cell_x

Int64 Arcane::CartesianGridDimension::CellUniqueIdComputer3D::m_all_nb_cell_x
private

Definition at line 246 of file CartesianGridDimension.h.

◆ m_all_nb_cell_xy

Int64 Arcane::CartesianGridDimension::CellUniqueIdComputer3D::m_all_nb_cell_xy
private

Definition at line 247 of file CartesianGridDimension.h.

◆ m_base_offset

Int64 Arcane::CartesianGridDimension::CellUniqueIdComputer3D::m_base_offset
private

Definition at line 245 of file CartesianGridDimension.h.


The documentation for this class was generated from the following file: