Panzer
Version of the Day
|
#include <Panzer_SubcellConnectivity.hpp>
Public Member Functions | |
SubcellConnectivity () | |
Default constructor. More... | |
~SubcellConnectivity ()=default | |
Default destructor. More... | |
KOKKOS_INLINE_FUNCTION int | numSubcells () const |
Gives number of subcells (e.g. faces) in connectivity. More... | |
KOKKOS_INLINE_FUNCTION int | numCells () const |
Gives number of cells in connectivity. More... | |
KOKKOS_INLINE_FUNCTION int | numSubcellsOnCell (const int cell) const |
gives number of subcells (e.g. faces) found on a given cell More... | |
KOKKOS_INLINE_FUNCTION int | numCellsOnSubcell (const int subcell) const |
Returns the number of cells attached to a given subcell. More... | |
KOKKOS_INLINE_FUNCTION int | subcellForCell (const int cell, const int local_subcell_index) const |
Get the subcell index for a given cell and local subcell index. More... | |
KOKKOS_INLINE_FUNCTION int | cellForSubcell (const int subcell, const int local_cell_index) const |
Get the cell for a given subcell and a local_cell_index. More... | |
KOKKOS_INLINE_FUNCTION int | localSubcellForSubcell (const int subcell, const int local_cell_index) const |
Get the local subcell index given a subcell and a local cell index. More... | |
Protected Attributes | |
int | _num_subcells |
Number of subcells for a given number of cells. More... | |
int | _num_cells |
Number of cells. More... | |
Kokkos::View< int *, PHX::Device > | _subcell_to_cells_adj |
Adjacency array for indexing into subcell_to_cells array. More... | |
Kokkos::View< int *, PHX::Device > | _subcell_to_cells |
Mapping from subcells to cells. More... | |
Kokkos::View< int *, PHX::Device > | _subcell_to_local_subcells |
Mapping from subcell indexes to local subcell indexes. More... | |
Kokkos::View< int *, PHX::Device > | _cell_to_subcells_adj |
Adjacency array for indexing into cell_to_subcells array. More... | |
Kokkos::View< int *, PHX::Device > | _cell_to_subcells |
Mapping from cells to subcells. More... | |
Definition at line 57 of file Panzer_SubcellConnectivity.hpp.
|
inline |
Default constructor.
Definition at line 62 of file Panzer_SubcellConnectivity.hpp.
|
default |
Default destructor.
|
inline |
Gives number of subcells (e.g. faces) in connectivity.
Definition at line 73 of file Panzer_SubcellConnectivity.hpp.
|
inline |
Gives number of cells in connectivity.
Definition at line 81 of file Panzer_SubcellConnectivity.hpp.
int panzer::SubcellConnectivity::numSubcellsOnCell | ( | const int | cell | ) | const |
gives number of subcells (e.g. faces) found on a given cell
If | cell is out of range |
param[in] Cell index
Definition at line 212 of file Panzer_SubcellConnectivity.hpp.
int panzer::SubcellConnectivity::numCellsOnSubcell | ( | const int | subcell | ) | const |
Returns the number of cells attached to a given subcell.
For example: 1) A face joins two cells. 2) A node joins four cells on a 2D rectilinear mesh (eight in 3D)
[in] | subcell | Subcell index |
Definition at line 224 of file Panzer_SubcellConnectivity.hpp.
int panzer::SubcellConnectivity::subcellForCell | ( | const int | cell, |
const int | local_subcell_index | ||
) | const |
Get the subcell index for a given cell and local subcell index.
A local subcell index is the local indexing scheme for the cell.
For example: 1) A quad cell has four faces indexed by 0,1,2,3 (local subcell indexes) 2) A hex cell has eight nodes indexed by 0,1,2,3,4,5,6,7 (local subcell indexes)
[in] | cell | Cell index |
[in] | local_subcell_index | Index of subcell in cell local indexing |
Definition at line 236 of file Panzer_SubcellConnectivity.hpp.
int panzer::SubcellConnectivity::cellForSubcell | ( | const int | subcell, |
const int | local_cell_index | ||
) | const |
Get the cell for a given subcell and a local_cell_index.
A local cell index is the indexing scheme local to a subcell.
For example: 1) A 1D mesh has subcells (nodes) connects two cells (lines) with local cell indexes 0,1 2) A 2D quad can have nodal subcells (on structured mesh) that connect four cells with local cell indexes 0,1,2,3
[in] | subcell | Subcell index |
[in] | local_cell_index |
Definition at line 250 of file Panzer_SubcellConnectivity.hpp.
int panzer::SubcellConnectivity::localSubcellForSubcell | ( | const int | subcell, |
const int | local_cell_index | ||
) | const |
Get the local subcell index given a subcell and a local cell index.
This is the mapping between local subcell indexes and local cell indexes
[in] | subcell | Subcell index |
[in] | local_cell_index | Local cell index on subcell |
Definition at line 264 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Number of subcells for a given number of cells.
Definition at line 159 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Number of cells.
Definition at line 162 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Adjacency array for indexing into subcell_to_cells array.
Definition at line 165 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Mapping from subcells to cells.
Definition at line 168 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Mapping from subcell indexes to local subcell indexes.
Definition at line 171 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Adjacency array for indexing into cell_to_subcells array.
Definition at line 174 of file Panzer_SubcellConnectivity.hpp.
|
protected |
Mapping from cells to subcells.
Definition at line 177 of file Panzer_SubcellConnectivity.hpp.