Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::CartesianConnectivity Class Reference

Connectivity information of a Cartesian mesh. More...

#include <arcane/cartesianmesh/CartesianConnectivity.h>

Public Member Functions

Cell upperLeft (Node n) const
 Cell top left of node n.
Cell upperRight (Node n) const
 Cell top right of node n.
Cell lowerRight (Node n) const
 Cell bottom right of node n.
Cell lowerLeft (Node n) const
 Cell bottom left of node n.
__host__ __device__ CellLocalId upperLeftId (NodeLocalId n) const
 Cell top left of node n.
__host__ __device__ CellLocalId upperRightId (NodeLocalId n) const
 Cell top right of node n.
__host__ __device__ CellLocalId lowerRightId (NodeLocalId n) const
 Cell bottom right of node n.
__host__ __device__ CellLocalId lowerLeftId (NodeLocalId n) const
 Cell bottom left of node n.
__host__ __device__ CellLocalId upperLeftId (NodeLocalId n, Int32 dir) const
 Cell top left of node n for direction dir.
__host__ __device__ CellLocalId upperRightId (NodeLocalId n, Int32 dir) const
 Cell top right of node n for direction dir.
__host__ __device__ CellLocalId lowerRightId (NodeLocalId n, Int32 dir) const
 Cell bottom right of node n for direction dir.
__host__ __device__ CellLocalId lowerLeftId (NodeLocalId n, Int32 dir) const
 Cell bottom left of node n for direction dir.
Cell topZUpperLeft (Node n) const
 In 3D, cell top left of node n.
Cell topZUpperRight (Node n) const
 In 3D, cell top right of node n.
Cell topZLowerRight (Node n) const
 In 3D, cell bottom right of node n.
Cell topZLowerLeft (Node n) const
 In 3D, cell bottom left of node n.
__host__ __device__ CellLocalId topZUpperLeftId (NodeLocalId n) const
 In 3D, cell top left of node n.
__host__ __device__ CellLocalId topZUpperRightId (NodeLocalId n) const
 In 3D, cell top right of node n.
__host__ __device__ CellLocalId topZLowerRightId (NodeLocalId n) const
 In 3D, cell bottom right of node n.
__host__ __device__ CellLocalId topZLowerLeftId (NodeLocalId n) const
 In 3D, cell bottom left of node n.
__host__ __device__ CellLocalId topZUpperLeftId (NodeLocalId n, Int32 dir) const
 In 3D, cell top left of node n for direction dir.
__host__ __device__ CellLocalId topZUpperRightId (NodeLocalId n, Int32 dir) const
 In 3D, cell top right of node n for direction dir.
__host__ __device__ CellLocalId topZLowerRightId (NodeLocalId n, Int32 dir) const
 In 3D, cell bottom right of node n for direction dir.
__host__ __device__ CellLocalId topZLowerLeftId (NodeLocalId n, Int32 dir) const
 In 3D, cell bottom left of node n for direction dir.
Node upperLeft (Cell c) const
 Node top left of cell c.
Node upperRight (Cell c) const
 Node top right of cell c.
Node lowerRight (Cell c) const
 Node bottom right of cell c.
Node lowerLeft (Cell c) const
 Node bottom left of cell c.
__host__ __device__ NodeLocalId upperLeftId (CellLocalId c) const
 Node top left of cell c.
__host__ __device__ NodeLocalId upperRightId (CellLocalId c) const
 Node top right of cell c.
__host__ __device__ NodeLocalId lowerRightId (CellLocalId c) const
 Node bottom right of cell c.
__host__ __device__ NodeLocalId lowerLeftId (CellLocalId c) const
 Node bottom left of cell c.
__host__ __device__ NodeLocalId upperLeftId (CellLocalId c, Int32 dir) const
 Node top left of cell c for direction dir.
__host__ __device__ NodeLocalId upperRightId (CellLocalId c, Int32 dir) const
 Node top right of cell c for direction dir.
__host__ __device__ NodeLocalId lowerRightId (CellLocalId c, Int32 dir) const
 Node bottom right of cell c for direction dir.
__host__ __device__ NodeLocalId lowerLeftId (CellLocalId c, Int32 dir) const
 Node bottom left of cell c for direction dir.
Node topZUpperLeft (Cell c) const
 In 3D, node above top left of cell c.
Node topZUpperRight (Cell c) const
 In 3D, node above top right of cell c.
Node topZLowerRight (Cell c) const
 In 3D, node above bottom right of cell c.
Node topZLowerLeft (Cell c) const
 In 3D, node above bottom left of cell c.
__host__ __device__ NodeLocalId topZUpperLeftId (CellLocalId c) const
 In 3D, node above top left of cell c.
__host__ __device__ NodeLocalId topZUpperRightId (CellLocalId c) const
 In 3D, node above top right of cell c.
__host__ __device__ NodeLocalId topZLowerRightId (CellLocalId c) const
 In 3D, node above bottom right of cell c.
__host__ __device__ NodeLocalId topZLowerLeftId (CellLocalId c) const
 In 3D, node above bottom left of cell c.
__host__ __device__ NodeLocalId topZUpperLeftId (CellLocalId c, Int32 dir) const
 In 3D, node above top left of cell c for direction dir.
__host__ __device__ NodeLocalId topZUpperRightId (CellLocalId c, Int32 dir) const
 In 3D, node above top right of cell c for direction dir.
__host__ __device__ NodeLocalId topZLowerRightId (CellLocalId c, Int32 dir) const
 In 3D, node above bottom right of cell c for direction dir.
__host__ __device__ NodeLocalId topZLowerLeftId (CellLocalId c, Int32 dir) const
 In 3D, node above bottom left of cell c for direction dir.

Friends

class CartesianConnectivityLocalId
class CartesianMeshImpl

Detailed Description

Connectivity information of a Cartesian mesh.

Like all objects related to the Cartesian mesh, these instances are only valid as long as the mesh topology does not change.

This class serves for both 2D connectivities and 3D connectivities. Methods starting with topZ are only valid in 3D.

The method names follow the following nomenclature:

  • topZ/.: for the Z direction
  • upper/lower: for the Y direction
  • left/right: for the X direction

For the connectivity of nodes around a coordinate cell (X0,Y0,Z0), the coordinate node (X,Y,Z) is retrieved as follows:

  • In 3D, topZ if Z>Z0, otherwise no prefix. In 2D, never a prefix.
  • upper if Y>Y0, lower otherwise,
  • right if X>X0, left otherwise,

So for example, if Z>Z0, Y<Y0 and X>X0, the method name is topZLowerRight(). If Z<Z0, Y>Y0 and X>X0, the name is upperRight().

The functionality is the same for the connectivities of cells around a node.

Definition at line 56 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

Member Function Documentation

◆ lowerLeft() [1/2]

Node Arcane::CartesianConnectivity::lowerLeft ( Cell c) const
inline

Node bottom left of cell c.

Definition at line 173 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ lowerLeft() [2/2]

Cell Arcane::CartesianConnectivity::lowerLeft ( Node n) const
inline

Cell bottom left of node n.

Definition at line 119 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ lowerLeftId() [1/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::lowerLeftId ( CellLocalId c) const
inline

Node bottom left of cell c.

Definition at line 182 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ lowerLeftId() [2/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::lowerLeftId ( CellLocalId c,
Int32 dir ) const
inline

Node bottom left of cell c for direction dir.

Definition at line 191 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ lowerLeftId() [3/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::lowerLeftId ( NodeLocalId n) const
inline

Cell bottom left of node n.

Definition at line 128 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ lowerLeftId() [4/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::lowerLeftId ( NodeLocalId n,
Int32 dir ) const
inline

Cell bottom left of node n for direction dir.

Definition at line 137 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ lowerRight() [1/2]

Node Arcane::CartesianConnectivity::lowerRight ( Cell c) const
inline

Node bottom right of cell c.

Definition at line 171 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ lowerRight() [2/2]

Cell Arcane::CartesianConnectivity::lowerRight ( Node n) const
inline

Cell bottom right of node n.

Definition at line 117 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ lowerRightId() [1/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::lowerRightId ( CellLocalId c) const
inline

Node bottom right of cell c.

Definition at line 180 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ lowerRightId() [2/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::lowerRightId ( CellLocalId c,
Int32 dir ) const
inline

Node bottom right of cell c for direction dir.

Definition at line 189 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ lowerRightId() [3/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::lowerRightId ( NodeLocalId n) const
inline

Cell bottom right of node n.

Definition at line 126 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ lowerRightId() [4/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::lowerRightId ( NodeLocalId n,
Int32 dir ) const
inline

Cell bottom right of node n for direction dir.

Definition at line 135 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZLowerLeft() [1/2]

Node Arcane::CartesianConnectivity::topZLowerLeft ( Cell c) const
inline

In 3D, node above bottom left of cell c.

Definition at line 200 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZLowerLeft() [2/2]

Cell Arcane::CartesianConnectivity::topZLowerLeft ( Node n) const
inline

In 3D, cell bottom left of node n.

Definition at line 146 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZLowerLeftId() [1/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::topZLowerLeftId ( CellLocalId c) const
inline

In 3D, node above bottom left of cell c.

Definition at line 209 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZLowerLeftId() [2/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::topZLowerLeftId ( CellLocalId c,
Int32 dir ) const
inline

In 3D, node above bottom left of cell c for direction dir.

Definition at line 218 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZLowerLeftId() [3/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::topZLowerLeftId ( NodeLocalId n) const
inline

In 3D, cell bottom left of node n.

Definition at line 155 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZLowerLeftId() [4/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::topZLowerLeftId ( NodeLocalId n,
Int32 dir ) const
inline

In 3D, cell bottom left of node n for direction dir.

Definition at line 164 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZLowerRight() [1/2]

Node Arcane::CartesianConnectivity::topZLowerRight ( Cell c) const
inline

In 3D, node above bottom right of cell c.

Definition at line 198 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZLowerRight() [2/2]

Cell Arcane::CartesianConnectivity::topZLowerRight ( Node n) const
inline

In 3D, cell bottom right of node n.

Definition at line 144 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZLowerRightId() [1/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::topZLowerRightId ( CellLocalId c) const
inline

In 3D, node above bottom right of cell c.

Definition at line 207 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZLowerRightId() [2/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::topZLowerRightId ( CellLocalId c,
Int32 dir ) const
inline

In 3D, node above bottom right of cell c for direction dir.

Definition at line 216 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZLowerRightId() [3/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::topZLowerRightId ( NodeLocalId n) const
inline

In 3D, cell bottom right of node n.

Definition at line 153 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZLowerRightId() [4/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::topZLowerRightId ( NodeLocalId n,
Int32 dir ) const
inline

In 3D, cell bottom right of node n for direction dir.

Definition at line 162 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZUpperLeft() [1/2]

Node Arcane::CartesianConnectivity::topZUpperLeft ( Cell c) const
inline

In 3D, node above top left of cell c.

Definition at line 194 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZUpperLeft() [2/2]

Cell Arcane::CartesianConnectivity::topZUpperLeft ( Node n) const
inline

In 3D, cell top left of node n.

Definition at line 140 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZUpperLeftId() [1/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::topZUpperLeftId ( CellLocalId c) const
inline

In 3D, node above top left of cell c.

Definition at line 203 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZUpperLeftId() [2/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::topZUpperLeftId ( CellLocalId c,
Int32 dir ) const
inline

In 3D, node above top left of cell c for direction dir.

Definition at line 212 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZUpperLeftId() [3/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::topZUpperLeftId ( NodeLocalId n) const
inline

In 3D, cell top left of node n.

Definition at line 149 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZUpperLeftId() [4/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::topZUpperLeftId ( NodeLocalId n,
Int32 dir ) const
inline

In 3D, cell top left of node n for direction dir.

Definition at line 158 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZUpperRight() [1/2]

Node Arcane::CartesianConnectivity::topZUpperRight ( Cell c) const
inline

In 3D, node above top right of cell c.

Definition at line 196 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZUpperRight() [2/2]

Cell Arcane::CartesianConnectivity::topZUpperRight ( Node n) const
inline

In 3D, cell top right of node n.

Definition at line 142 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZUpperRightId() [1/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::topZUpperRightId ( CellLocalId c) const
inline

In 3D, node above top right of cell c.

Definition at line 205 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZUpperRightId() [2/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::topZUpperRightId ( CellLocalId c,
Int32 dir ) const
inline

In 3D, node above top right of cell c for direction dir.

Definition at line 214 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZUpperRightId() [3/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::topZUpperRightId ( NodeLocalId n) const
inline

In 3D, cell top right of node n.

Definition at line 151 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ topZUpperRightId() [4/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::topZUpperRightId ( NodeLocalId n,
Int32 dir ) const
inline

In 3D, cell top right of node n for direction dir.

Definition at line 160 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ upperLeft() [1/2]

Node Arcane::CartesianConnectivity::upperLeft ( Cell c) const
inline

Node top left of cell c.

Definition at line 167 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ upperLeft() [2/2]

Cell Arcane::CartesianConnectivity::upperLeft ( Node n) const
inline

Cell top left of node n.

Definition at line 113 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ upperLeftId() [1/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::upperLeftId ( CellLocalId c) const
inline

Node top left of cell c.

Definition at line 176 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ upperLeftId() [2/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::upperLeftId ( CellLocalId c,
Int32 dir ) const
inline

Node top left of cell c for direction dir.

Definition at line 185 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ upperLeftId() [3/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::upperLeftId ( NodeLocalId n) const
inline

Cell top left of node n.

Definition at line 122 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ upperLeftId() [4/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::upperLeftId ( NodeLocalId n,
Int32 dir ) const
inline

Cell top left of node n for direction dir.

Definition at line 131 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ upperRight() [1/2]

Node Arcane::CartesianConnectivity::upperRight ( Cell c) const
inline

Node top right of cell c.

Definition at line 169 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ upperRight() [2/2]

Cell Arcane::CartesianConnectivity::upperRight ( Node n) const
inline

Cell top right of node n.

Definition at line 115 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ upperRightId() [1/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::upperRightId ( CellLocalId c) const
inline

Node top right of cell c.

Definition at line 178 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ upperRightId() [2/4]

__host__ __device__ NodeLocalId Arcane::CartesianConnectivity::upperRightId ( CellLocalId c,
Int32 dir ) const
inline

Node top right of cell c for direction dir.

Definition at line 187 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ upperRightId() [3/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::upperRightId ( NodeLocalId n) const
inline

Cell top right of node n.

Definition at line 124 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ upperRightId() [4/4]

__host__ __device__ CellLocalId Arcane::CartesianConnectivity::upperRightId ( NodeLocalId n,
Int32 dir ) const
inline

Cell top right of node n for direction dir.

Definition at line 133 of file src/arcane/cartesianmesh/CartesianConnectivity.h.

◆ CartesianConnectivityLocalId

friend class CartesianConnectivityLocalId
friend

◆ CartesianMeshImpl

friend class CartesianMeshImpl
friend

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