16#ifndef ARCANE_CARTESIANMESH_INTERNAL_CARTESIANMESHNUMBERINGMNGINTERNAL_H
17#define ARCANE_CARTESIANMESH_INTERNAL_CARTESIANMESHNUMBERINGMNGINTERNAL_H
22#include "arcane/cartesianmesh/internal/ICartesianMeshNumberingMngInternal.h"
24#include "arcane/utils/TraceAccessor.h"
25#include "arcane/utils/Vector3.h"
27#include "arcane/core/Item.h"
29#include <unordered_map>
40class CartesianMeshNumberingMngInternal
46 explicit CartesianMeshNumberingMngInternal(
IMesh*
mesh);
50 void build()
override;
51 void saveInfosInProperties()
override;
52 void recreateFromDump()
override;
210 Int64 m_latest_cell_uid;
213 Int64 m_latest_node_uid;
216 Int64 m_latest_face_uid;
222 bool m_converting_numbering_face;
224 std::unordered_map<Int64, Int64> m_face_ori_numbering_to_new;
225 std::unordered_map<Int64, Int64> m_face_new_numbering_to_ori;
Modifiable view of an array of type T.
CartCoord globalNbFacesXCartesianView(Int32 level) const override
Method allowing the retrieval of the size of the "Cartesian grid" view containing the faces.
Int32 pattern() const override
Method allowing the retrieval of the refinement pattern used in each cell. For example,...
Int64 childNodeUniqueIdOfNode(Int64 uid, Int32 level) override
Method to retrieve the uniqueId of a child node of a parent node.
Int64x3 _face3DNumberingThreeParts(Int32 level) const
Method to retrieve the number of faces for the three parts of the numbering.
void printStatus() override
Method allowing the description of the object's state.
Int64 nbNodeInLevel(Int32 level) const override
Method allowing the retrieval of the total number of nodes in a level.
Cell childCellOfCell(Cell cell, CartCoord3 child_coord_in_parent) override
Method to retrieve a child cell of a parent cell based on the position of the child cell within the p...
Int64 nbCellInLevel(Int32 level) const override
Method allowing the retrieval of the total number of cells in a level.
CartCoord faceUniqueIdToCoordX(Int64 uid, Int32 level) override
Method to retrieve the X coordinate of a face using its uniqueId.
void cellFaceUniqueIds(CartCoord3 cell_coord, Int32 level, ArrayView< Int64 > uid) override
Method to retrieve the uniqueIds of a cell's faces based on its coordinates.
CartCoord cellUniqueIdToCoordX(Int64 uid, Int32 level) override
Method to retrieve the X coordinate of a cell using its uniqueId.
Int64 childFaceUniqueIdOfFace(Int64 uid, Int32 level, Int32 child_index_in_parent) override
Method to retrieve the uniqueId of a child face of a parent face based on the index of the child face...
void cellUniqueIdsAroundCell(CartCoord3 cell_coord, Int32 level, ArrayView< Int64 > uid) override
Method to retrieve the uniqueIds of cells around a cell.
CartCoord3 cellUniqueIdToCoord(Int64 uid, Int32 level) override
Method to retrieve the coordinates of a cell using its uniqueId.
CartCoord offsetLevelToLevel(CartCoord coord, Int32 level_from, Int32 level_to) const override
Method allowing the retrieval of the position of the first child node/cell from the position of the p...
void cellUniqueIdsAroundNode(CartCoord3 node_coord, Int32 level, ArrayView< Int64 > uid) override
Method to retrieve the uniqueIds of cells around a node.
void setChildNodeCoordinates(Cell parent_cell) override
Method to define the spatial coordinates of the nodes of child cells of a parent cell....
CartCoord nodeUniqueIdToCoordX(Int64 uid, Int32 level) override
Method to retrieve the X coordinate of a node using its uniqueId.
CartCoord globalNbFacesYCartesianView(Int32 level) const override
Method allowing the retrieval of the size of the "Cartesian grid" view containing the faces.
Int64 parentFaceUniqueIdOfFace(Int64 uid, Int32 level, bool do_fatal) override
Method to retrieve the uniqueId of a face's parent.
void prepareLevel(Int32 level) override
Method allowing the preparation of a new level.
Int64 firstFaceUniqueId(Int32 level) const override
Method allowing the retrieval of the first unique ID used by the faces of a level....
Int64 nbFaceInLevel(Int32 level) const override
Method allowing the retrieval of the total number of faces in a level.
CartCoord nodeUniqueIdToCoordY(Int64 uid, Int32 level) override
Method to retrieve the Y coordinate of a node using its uniqueId.
Int32 faceLevel(Int64 uid) const override
Method allowing the retrieval of the level of a face with its UID.
void updateFirstLevel() override
Method allowing the update of the first level.
CartCoord faceOffsetLevelToLevel(CartCoord coord, Int32 level_from, Int32 level_to) const override
Method to obtain the position of the first child face from the position of the parent face.
CartCoord globalNbCellsZ(Int32 level) const override
Method allowing the retrieval of the global number of cells in Z for a level.
CartCoord nodeUniqueIdToCoordZ(Int64 uid, Int32 level) override
Method to retrieve the Z coordinate of a node using its uniqueId.
Int64 firstCellUniqueId(Int32 level) const override
Method allowing the retrieval of the first unique ID used by the cells of a level....
Int64 parentNodeUniqueIdOfNode(Int64 uid, Int32 level, bool do_fatal) override
Method to retrieve the uniqueId of a node's parent.
void renumberingFacesLevel0FromOriginalArcaneNumbering() override
Method allowing the renumbering of level 0 faces.
CartCoord globalNbFacesZCartesianView(Int32 level) const override
Method allowing the retrieval of the size of the "Cartesian grid" view containing the faces.
CartCoord globalNbFacesZ(Int32 level) const override
Method allowing the retrieval of the global number of faces in Z for a level.
Int32 nbNodeByCell() override
Method to retrieve the number of nodes in a cell.
CartCoord globalNbNodesX(Int32 level) const override
Method allowing the retrieval of the global number of nodes in X for a level.
CartCoord globalNbNodesZ(Int32 level) const override
Method allowing the retrieval of the global number of nodes in Z for a level.
Int32 cellLevel(Int64 uid) const override
Method allowing the retrieval of the level of a cell with its UID.
CartCoord cellUniqueIdToCoordZ(Int64 uid, Int32 level) override
Method to retrieve the Z coordinate of a cell using its uniqueId.
Int32 nbFaceByCell() override
Method to retrieve the number of faces in a cell.
void cellNodeUniqueIds(CartCoord3 cell_coord, Int32 level, ArrayView< Int64 > uid) override
Method to retrieve the uniqueIds of the nodes of a cell from its coordinates.
CartCoord faceUniqueIdToCoordZ(Int64 uid, Int32 level) override
Method to retrieve the Z coordinate of a face using its uniqueId.
CartCoord faceUniqueIdToCoordY(Int64 uid, Int32 level) override
Method to retrieve the Y coordinate of a face using its uniqueId.
Int64 cellUniqueId(CartCoord3 cell_coord, Int32 level) override
Method to retrieve the uniqueId of a cell from its position and level.
CartCoord globalNbCellsX(Int32 level) const override
Method allowing the retrieval of the global number of cells in X for a level.
Int64 nodeUniqueId(CartCoord3 node_coord, Int32 level) override
Method to retrieve the uniqueId of a node from its position and level.
void setParentNodeCoordinates(Cell parent_cell) override
Method to define the spatial coordinates of the nodes of a parent cell. This method must be called af...
CartCoord globalNbCellsY(Int32 level) const override
Method allowing the retrieval of the global number of cells in Y for a level.
Int64 firstNodeUniqueId(Int32 level) const override
Method allowing the retrieval of the first unique ID used by the nodes of a level....
CartCoord globalNbNodesY(Int32 level) const override
Method allowing the retrieval of the global number of nodes in Y for a level.
Int64 faceUniqueId(CartCoord3 face_coord, Int32 level) override
Method to retrieve the uniqueId of a face from its position and level.
CartCoord globalNbFacesY(Int32 level) const override
Method allowing the retrieval of the global number of faces in Y for a level.
Int32 nodeLevel(Int64 uid) const override
Method allowing the retrieval of the level of a node with its UID.
Int64 childCellUniqueIdOfCell(Cell cell, CartCoord3 child_coord_in_parent) override
Method to retrieve the uniqueId of a child cell of a parent cell based on the position of the child c...
CartCoord globalNbFacesX(Int32 level) const override
Method allowing the retrieval of the global number of faces in X for a level.
CartCoord cellUniqueIdToCoordY(Int64 uid, Int32 level) override
Method to retrieve the Y coordinate of a cell using its uniqueId.
Int64 parentCellUniqueIdOfCell(Int64 uid, Int32 level, bool do_fatal) override
Method to retrieve the uniqueId of a cell's parent.
Interface for Cartesian mesh numbering manager.
Reference to an instance.
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
1D data vector with value semantics (STL style).
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 CartCoord
Represents a coordinate of an element in the Cartesian grid (in X or Y or Z).
std::int64_t Int64
Signed integer type of 64 bits.
Int32 Integer
Type representing an integer.
Int32x2 CartCoord2
Represents the 2D coordinates of an element in the Cartesian grid {x, y}.
std::int32_t Int32
Signed integer type of 32 bits.
Int32x3 CartCoord3
Represents the 3D coordinates of an element in the Cartesian grid {x, y, z}.