Advanced Multi-Physics (AMP)
On-Line Documentation
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
AMP::Operator::FDMeshGlobalIndexingOps Class Reference

#include <RadiationDiffusionFDDiscretization.h>

Public Member Functions

 FDMeshGlobalIndexingOps (std::shared_ptr< AMP::Mesh::BoxMesh > BoxMesh, AMP::Mesh::GeomType &geom, std::shared_ptr< AMP::Discretization::DOFManager > scalarDOFMan, std::shared_ptr< AMP::Discretization::multiDOFManager > multiDOFMan)
 
AMP::Mesh::structuredMeshElement gridIndsToMeshElement (const std::array< size_t, 3 > &ijk) const
 Map from grid index to a MeshElement.
 
size_t gridIndsToScalarDOF (const std::array< size_t, 3 > &ijk) const
 Map from grid index to a the corresponding DOF.
 
std::array< size_t, 3 > scalarDOFToGridInds (size_t dof) const
 Map from scalar DOF to grid indices i, j, k.
 

Private Attributes

std::shared_ptr< AMP::Mesh::BoxMeshd_BoxMesh
 Mesh; keep a pointer to save having to downcast repeatedly.
 
AMP::Mesh::GeomType d_geom
 Geometry type.
 
std::shared_ptr< AMP::Discretization::multiDOFManagerd_multiDOFMan
 MultiDOFManager for managing [E,T] multivectors.
 
std::shared_ptr< AMP::Discretization::DOFManagerd_scalarDOFMan
 DOFManager for E and T individually.
 

Static Private Attributes

static constexpr size_t EAST = 2
 
static constexpr size_t ORIGIN = 1
 
static constexpr size_t WEST = 0
 Indices used for referencing WEST, ORIGIN, and EAST entries in Loc3 data structures.
 

Detailed Description

Abstract class providing mesh-indexing-related operations given some mesh and geometry. In particular, this class provides grid index conversions for global indices, but for interior indices these utilites are slower than those based on ArraySize.

Definition at line 187 of file RadiationDiffusionFDDiscretization.h.

Constructor & Destructor Documentation

◆ FDMeshGlobalIndexingOps()

AMP::Operator::FDMeshGlobalIndexingOps::FDMeshGlobalIndexingOps ( std::shared_ptr< AMP::Mesh::BoxMesh BoxMesh,
AMP::Mesh::GeomType geom,
std::shared_ptr< AMP::Discretization::DOFManager scalarDOFMan,
std::shared_ptr< AMP::Discretization::multiDOFManager multiDOFMan 
)

Member Function Documentation

◆ gridIndsToMeshElement()

AMP::Mesh::structuredMeshElement AMP::Operator::FDMeshGlobalIndexingOps::gridIndsToMeshElement ( const std::array< size_t, 3 > &  ijk) const

Map from grid index to a MeshElement.

◆ gridIndsToScalarDOF()

size_t AMP::Operator::FDMeshGlobalIndexingOps::gridIndsToScalarDOF ( const std::array< size_t, 3 > &  ijk) const

Map from grid index to a the corresponding DOF.

◆ scalarDOFToGridInds()

std::array< size_t, 3 > AMP::Operator::FDMeshGlobalIndexingOps::scalarDOFToGridInds ( size_t  dof) const

Map from scalar DOF to grid indices i, j, k.

Member Data Documentation

◆ d_BoxMesh

std::shared_ptr<AMP::Mesh::BoxMesh> AMP::Operator::FDMeshGlobalIndexingOps::d_BoxMesh
private

Mesh; keep a pointer to save having to downcast repeatedly.

Definition at line 198 of file RadiationDiffusionFDDiscretization.h.

◆ d_geom

AMP::Mesh::GeomType AMP::Operator::FDMeshGlobalIndexingOps::d_geom
private

Geometry type.

Definition at line 200 of file RadiationDiffusionFDDiscretization.h.

◆ d_multiDOFMan

std::shared_ptr<AMP::Discretization::multiDOFManager> AMP::Operator::FDMeshGlobalIndexingOps::d_multiDOFMan
private

MultiDOFManager for managing [E,T] multivectors.

Definition at line 204 of file RadiationDiffusionFDDiscretization.h.

◆ d_scalarDOFMan

std::shared_ptr<AMP::Discretization::DOFManager> AMP::Operator::FDMeshGlobalIndexingOps::d_scalarDOFMan
private

DOFManager for E and T individually.

Definition at line 202 of file RadiationDiffusionFDDiscretization.h.

◆ EAST

constexpr size_t AMP::Operator::FDMeshGlobalIndexingOps::EAST = 2
staticconstexprprivate

Definition at line 195 of file RadiationDiffusionFDDiscretization.h.

◆ ORIGIN

constexpr size_t AMP::Operator::FDMeshGlobalIndexingOps::ORIGIN = 1
staticconstexprprivate

Definition at line 194 of file RadiationDiffusionFDDiscretization.h.

◆ WEST

constexpr size_t AMP::Operator::FDMeshGlobalIndexingOps::WEST = 0
staticconstexprprivate

Indices used for referencing WEST, ORIGIN, and EAST entries in Loc3 data structures.

Definition at line 193 of file RadiationDiffusionFDDiscretization.h.


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



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:44.
Comments on this page