WARPXM v1.10.0
Loading...
Searching...
No Matches
WmBasisArraySet Class Reference

#include <wmbasisarrayset.h>

Public Member Functions

 WmBasisArraySet ()
 
void loadBasis (const int primitiveID, const std::string &basisArraySetName, const std::string &vspace_basisName, const size_t vspace_ndims)
 
void loadFile (const std::string &filename)
 
int getNumFacesPerElement () const
 
int getNumFaceNodes () const
 
int getNumTotalFaceNodes () const
 
int getNumTotalFaceNodesDeduplicated () const
 Get the total number of face nodes on the element, not double-counting nodes that live on more than one face.
 
int getNumDims () const
 
int getNumTotalNodes () const
 
int getNumGaussQuadNodes () const
 
int getNumInternalNodes () const
 
int getSpatialOrder () const
 
real getCFLLimit () const
 
size_t getBasisArrayBlockSize_Source () const
 
size_t getBasisArrayBlockSize_NumericalFlux () const
 
size_t getBasisArrayBlockSize_InternalFlux () const
 
size_t getBasisArrayBlockSize_DerivativeApproximation () const
 
size_t getBasisArraySize_NumericalFlux () const
 
size_t getBasisArraySize_NumericalFlux_altFace () const
 
size_t getBasisArraySize_InternalFlux () const
 
size_t getBasisArraySize_DerivativeApproximation () const
 
size_t getBasisArraySize_LinearAverage () const
 
size_t getBasisArraySize_LinearCenter () const
 
size_t getBasisArraySize_MonomialConversion () const
 
int getNumSubElements () const
 
int getNumNodesPerSubElement () const
 
const int * getSubElementConnectivity () const
 
const std::vector< int > & getFaceNodesDeduplicated () const
 Return the list of all face node indices, with duplicates (e.g.
 
const std::vector< real > & getNodePositions () const
 
const std::vector< real > & getNodePositionsGaussQuad () const
 
const std::vector< real > & getNodePositions_PositivityPreservingQuad () const
 
size_t getNumPositivityPreservingQuadNodes ()
 
size_t getNumInteriorPositivityPreservingQuadNodes () const
 
const realgetBasisArray_LagrangeOnGQnodes () const
 
const realgetBasisArray_NumericalFlux () const
 
const realgetBasisArray_NumericalFlux_altFace () const
 
const realgetBasisArray_InternalFlux () const
 
const realgetBasisArray_GaussQuad () const
 
const std::vector< real > & getBasisArray_PositivityPreservingQuadWeights () const
 
const std::vector< real > & getBasisArray_evaluateAtInteriorPositivityPreservingQuadNodes () const
 
const realgetBasisArray_DerivativeApproximation () const
 
const std::vector< real > & getBasisArray_LinearAverage () const
 
const realgetBasisArray_LinearCenter () const
 
const realgetBasisArray_MonomialConversion () const
 
const int * getOrientations (const int index) const
 
const int * getFaceNodes (const int face_index) const
 
real getInverseElementVolume () const
 1/element volume, in the local coordinate system useful for turning volume averages into volume integrals
 
int getNumFaceTypes () const
 
int getNumFaceNodes (int face_index) const
 
int getNumOrientations () const
 
int getNumFaceNodesForFaceType (int face_type) const
 
const std::vector< int > & getNumFaceNodesVector () const
 
bool has_csr () const
 
const std::vector< real > & getBasisArrayInternalFluxCSRVal (const int dim) const
 
const std::vector< int > & getBasisArrayInternalFluxCSRCol (const int dim) const
 
const std::vector< int > & getBasisArrayInternalFluxCSRRowPtr (const int dim) const
 
const std::vector< real > & getBasisArrayDerivativeMatrixCSRVal (const int dim) const
 
const std::vector< int > & getBasisArrayDerivativeMatrixCSRCol (const int dim) const
 
const std::vector< int > & getBasisArrayDerivativeCSRRowPtr (const int dim) const
 
const std::vector< real > & getBasisArrayNumericalFluxCSRVal (const int face) const
 
const std::vector< int > & getBasisArrayNumericalFluxCSRCol (const int face) const
 
const std::vector< int > & getBasisArrayNumericalFluxCSRRowPtr (const int face) const
 

Protected Member Functions

void clear ()
 

Protected Attributes

int _two_num_flux_arrays_flag
 
int _numFacesPerElement
 
int _numFacesPerElementSquares
 
int _numFaceNodes
 
int _numFaceNodesSquares
 
int _numTotalFaceNodes
 
int _numTotalFaceNodesDeduplicated
 
int _numInternalNodes
 
int _numTotalNodes
 
int _numGaussQuadNodes
 
int _numDims
 
int _numDimsUnstruct
 
int _numOrientations
 
int _spatialOrder
 
int _numInteriorPositivityPreservingQuadNodes
 
real _vol_multiplier
 
int _numSubElements
 
int _numNodesPerSubElement
 
std::vector< int > _subElementConnectivity
 
int _basisArray_NumericalFlux_Size
 
int _basisArray_NumericalFlux_altFace_Size
 
int _basisArray_InternalFlux_Size
 
int _basisArray_LinearAverage_Size
 
int _basisArray_LinearCenter_Size
 
int _basisArray_MonomialConversion_Size
 
int _basisArray_Derivative_Approximation_Size
 
real _cfl
 
int _num_face_types
 
std::vector< int > _num_faces_per_face_type
 
std::vector< int > _num_face_nodes_per_face_type
 
std::vector< int > _num_face_nodes_per_face
 
std::vector< int > _faceNodesDeduplicated
 
std::vector< real_nodePositionsGaussQuad
 
std::vector< real_basisArray_GaussQuad
 
std::vector< real_basisArray_LagrangeOnGQnodes
 
std::vector< real_nodePositions
 
std::vector< real_basisArray_NumericalFlux
 
std::vector< real_basisArray_NumericalFlux_altFace
 
std::vector< real_basisArray_InternalFlux
 
std::vector< real_basisArray_LinearAverage
 
std::vector< real_basisArray_LinearCenter
 
std::vector< real_basisArray_MonomialConversion
 
std::vector< real_basisArray_Derivative_Approximation
 
std::vector< real_basisArray_evaluateAtInteriorPositivityPreservingQuadNodes
 
std::vector< std::vector< int > > _orientations
 
std::vector< std::vector< int > > _faceNodes
 
bool _has_csr
 
std::vector< int > _ups2csr_val_lengths
 
std::vector< std::vector< real > > _ups2csr_val
 
std::vector< std::vector< int > > _ups2csr_col
 
std::vector< std::vector< int > > _ups2csr_rowptr
 
std::vector< int > _Drcsr_val_lengths
 
std::vector< std::vector< real > > _Drcsr_val
 
std::vector< std::vector< int > > _Drcsr_col
 
std::vector< std::vector< int > > _Drcsr_rowptr
 
std::vector< int > _ups1csr_val_lengths
 
std::vector< std::vector< real > > _ups1csr_val
 
std::vector< std::vector< int > > _ups1csr_col
 
std::vector< std::vector< int > > _ups1csr_rowptr
 

Constructor & Destructor Documentation

◆ WmBasisArraySet()

WmBasisArraySet::WmBasisArraySet ( )

Member Function Documentation

◆ clear()

void WmBasisArraySet::clear ( )
protected

◆ getBasisArray_DerivativeApproximation()

const real * WmBasisArraySet::getBasisArray_DerivativeApproximation ( ) const
inline

◆ getBasisArray_evaluateAtInteriorPositivityPreservingQuadNodes()

const std::vector< real > & WmBasisArraySet::getBasisArray_evaluateAtInteriorPositivityPreservingQuadNodes ( ) const
inline

◆ getBasisArray_GaussQuad()

const real * WmBasisArraySet::getBasisArray_GaussQuad ( ) const
inline

◆ getBasisArray_InternalFlux()

const real * WmBasisArraySet::getBasisArray_InternalFlux ( ) const
inline

◆ getBasisArray_LagrangeOnGQnodes()

const real * WmBasisArraySet::getBasisArray_LagrangeOnGQnodes ( ) const
inline

◆ getBasisArray_LinearAverage()

const std::vector< real > & WmBasisArraySet::getBasisArray_LinearAverage ( ) const
inline

◆ getBasisArray_LinearCenter()

const real * WmBasisArraySet::getBasisArray_LinearCenter ( ) const
inline

◆ getBasisArray_MonomialConversion()

const real * WmBasisArraySet::getBasisArray_MonomialConversion ( ) const
inline

◆ getBasisArray_NumericalFlux()

const real * WmBasisArraySet::getBasisArray_NumericalFlux ( ) const
inline

◆ getBasisArray_NumericalFlux_altFace()

const real * WmBasisArraySet::getBasisArray_NumericalFlux_altFace ( ) const
inline

◆ getBasisArray_PositivityPreservingQuadWeights()

const std::vector< real > & WmBasisArraySet::getBasisArray_PositivityPreservingQuadWeights ( ) const
inline

◆ getBasisArrayBlockSize_DerivativeApproximation()

size_t WmBasisArraySet::getBasisArrayBlockSize_DerivativeApproximation ( ) const
inline

◆ getBasisArrayBlockSize_InternalFlux()

size_t WmBasisArraySet::getBasisArrayBlockSize_InternalFlux ( ) const
inline

◆ getBasisArrayBlockSize_NumericalFlux()

size_t WmBasisArraySet::getBasisArrayBlockSize_NumericalFlux ( ) const
inline

◆ getBasisArrayBlockSize_Source()

size_t WmBasisArraySet::getBasisArrayBlockSize_Source ( ) const
inline

◆ getBasisArrayDerivativeCSRRowPtr()

const std::vector< int > & WmBasisArraySet::getBasisArrayDerivativeCSRRowPtr ( const int  dim) const
inline

◆ getBasisArrayDerivativeMatrixCSRCol()

const std::vector< int > & WmBasisArraySet::getBasisArrayDerivativeMatrixCSRCol ( const int  dim) const
inline

◆ getBasisArrayDerivativeMatrixCSRVal()

const std::vector< real > & WmBasisArraySet::getBasisArrayDerivativeMatrixCSRVal ( const int  dim) const
inline

◆ getBasisArrayInternalFluxCSRCol()

const std::vector< int > & WmBasisArraySet::getBasisArrayInternalFluxCSRCol ( const int  dim) const
inline

◆ getBasisArrayInternalFluxCSRRowPtr()

const std::vector< int > & WmBasisArraySet::getBasisArrayInternalFluxCSRRowPtr ( const int  dim) const
inline

◆ getBasisArrayInternalFluxCSRVal()

const std::vector< real > & WmBasisArraySet::getBasisArrayInternalFluxCSRVal ( const int  dim) const
inline

◆ getBasisArrayNumericalFluxCSRCol()

const std::vector< int > & WmBasisArraySet::getBasisArrayNumericalFluxCSRCol ( const int  face) const
inline

◆ getBasisArrayNumericalFluxCSRRowPtr()

const std::vector< int > & WmBasisArraySet::getBasisArrayNumericalFluxCSRRowPtr ( const int  face) const
inline

◆ getBasisArrayNumericalFluxCSRVal()

const std::vector< real > & WmBasisArraySet::getBasisArrayNumericalFluxCSRVal ( const int  face) const
inline

◆ getBasisArraySize_DerivativeApproximation()

size_t WmBasisArraySet::getBasisArraySize_DerivativeApproximation ( ) const
inline

◆ getBasisArraySize_InternalFlux()

size_t WmBasisArraySet::getBasisArraySize_InternalFlux ( ) const
inline

◆ getBasisArraySize_LinearAverage()

size_t WmBasisArraySet::getBasisArraySize_LinearAverage ( ) const
inline

◆ getBasisArraySize_LinearCenter()

size_t WmBasisArraySet::getBasisArraySize_LinearCenter ( ) const
inline

◆ getBasisArraySize_MonomialConversion()

size_t WmBasisArraySet::getBasisArraySize_MonomialConversion ( ) const
inline

◆ getBasisArraySize_NumericalFlux()

size_t WmBasisArraySet::getBasisArraySize_NumericalFlux ( ) const
inline

◆ getBasisArraySize_NumericalFlux_altFace()

size_t WmBasisArraySet::getBasisArraySize_NumericalFlux_altFace ( ) const
inline

◆ getCFLLimit()

real WmBasisArraySet::getCFLLimit ( ) const
inline

◆ getFaceNodes()

const int * WmBasisArraySet::getFaceNodes ( const int  face_index) const
inline

◆ getFaceNodesDeduplicated()

const std::vector< int > & WmBasisArraySet::getFaceNodesDeduplicated ( ) const
inline

Return the list of all face node indices, with duplicates (e.g.

from double counting vertices which live on two faces) removed.

◆ getInverseElementVolume()

real WmBasisArraySet::getInverseElementVolume ( ) const
inline

1/element volume, in the local coordinate system useful for turning volume averages into volume integrals

◆ getNodePositions()

const std::vector< real > & WmBasisArraySet::getNodePositions ( ) const
inline

◆ getNodePositions_PositivityPreservingQuad()

const std::vector< real > & WmBasisArraySet::getNodePositions_PositivityPreservingQuad ( ) const
inline

◆ getNodePositionsGaussQuad()

const std::vector< real > & WmBasisArraySet::getNodePositionsGaussQuad ( ) const
inline

◆ getNumDims()

int WmBasisArraySet::getNumDims ( ) const
inline

◆ getNumFaceNodes() [1/2]

int WmBasisArraySet::getNumFaceNodes ( ) const
inline

◆ getNumFaceNodes() [2/2]

int WmBasisArraySet::getNumFaceNodes ( int  face_index) const
inline

◆ getNumFaceNodesForFaceType()

int WmBasisArraySet::getNumFaceNodesForFaceType ( int  face_type) const
inline

◆ getNumFaceNodesVector()

const std::vector< int > & WmBasisArraySet::getNumFaceNodesVector ( ) const
inline

◆ getNumFacesPerElement()

int WmBasisArraySet::getNumFacesPerElement ( ) const
inline

◆ getNumFaceTypes()

int WmBasisArraySet::getNumFaceTypes ( ) const
inline

◆ getNumGaussQuadNodes()

int WmBasisArraySet::getNumGaussQuadNodes ( ) const
inline

◆ getNumInteriorPositivityPreservingQuadNodes()

size_t WmBasisArraySet::getNumInteriorPositivityPreservingQuadNodes ( ) const
inline

◆ getNumInternalNodes()

int WmBasisArraySet::getNumInternalNodes ( ) const
inline

◆ getNumNodesPerSubElement()

int WmBasisArraySet::getNumNodesPerSubElement ( ) const
inline

◆ getNumOrientations()

int WmBasisArraySet::getNumOrientations ( ) const
inline

◆ getNumPositivityPreservingQuadNodes()

size_t WmBasisArraySet::getNumPositivityPreservingQuadNodes ( )
inline

◆ getNumSubElements()

int WmBasisArraySet::getNumSubElements ( ) const
inline

◆ getNumTotalFaceNodes()

int WmBasisArraySet::getNumTotalFaceNodes ( ) const
inline

◆ getNumTotalFaceNodesDeduplicated()

int WmBasisArraySet::getNumTotalFaceNodesDeduplicated ( ) const
inline

Get the total number of face nodes on the element, not double-counting nodes that live on more than one face.

◆ getNumTotalNodes()

int WmBasisArraySet::getNumTotalNodes ( ) const
inline

◆ getOrientations()

const int * WmBasisArraySet::getOrientations ( const int  index) const
inline

◆ getSpatialOrder()

int WmBasisArraySet::getSpatialOrder ( ) const
inline

◆ getSubElementConnectivity()

const int * WmBasisArraySet::getSubElementConnectivity ( ) const
inline

◆ has_csr()

bool WmBasisArraySet::has_csr ( ) const
inline

◆ loadBasis()

void WmBasisArraySet::loadBasis ( const int  primitiveID,
const std::string &  basisArraySetName,
const std::string &  vspace_basisName,
const size_t  vspace_ndims 
)

◆ loadFile()

void WmBasisArraySet::loadFile ( const std::string &  filename)

Member Data Documentation

◆ _basisArray_Derivative_Approximation

std::vector<real> WmBasisArraySet::_basisArray_Derivative_Approximation
protected

◆ _basisArray_Derivative_Approximation_Size

int WmBasisArraySet::_basisArray_Derivative_Approximation_Size
protected

◆ _basisArray_evaluateAtInteriorPositivityPreservingQuadNodes

std::vector<real> WmBasisArraySet::_basisArray_evaluateAtInteriorPositivityPreservingQuadNodes
protected

◆ _basisArray_GaussQuad

std::vector<real> WmBasisArraySet::_basisArray_GaussQuad
protected

◆ _basisArray_InternalFlux

std::vector<real> WmBasisArraySet::_basisArray_InternalFlux
protected

◆ _basisArray_InternalFlux_Size

int WmBasisArraySet::_basisArray_InternalFlux_Size
protected

◆ _basisArray_LagrangeOnGQnodes

std::vector<real> WmBasisArraySet::_basisArray_LagrangeOnGQnodes
protected

◆ _basisArray_LinearAverage

std::vector<real> WmBasisArraySet::_basisArray_LinearAverage
protected

◆ _basisArray_LinearAverage_Size

int WmBasisArraySet::_basisArray_LinearAverage_Size
protected

◆ _basisArray_LinearCenter

std::vector<real> WmBasisArraySet::_basisArray_LinearCenter
protected

◆ _basisArray_LinearCenter_Size

int WmBasisArraySet::_basisArray_LinearCenter_Size
protected

◆ _basisArray_MonomialConversion

std::vector<real> WmBasisArraySet::_basisArray_MonomialConversion
protected

◆ _basisArray_MonomialConversion_Size

int WmBasisArraySet::_basisArray_MonomialConversion_Size
protected

◆ _basisArray_NumericalFlux

std::vector<real> WmBasisArraySet::_basisArray_NumericalFlux
protected

◆ _basisArray_NumericalFlux_altFace

std::vector<real> WmBasisArraySet::_basisArray_NumericalFlux_altFace
protected

◆ _basisArray_NumericalFlux_altFace_Size

int WmBasisArraySet::_basisArray_NumericalFlux_altFace_Size
protected

◆ _basisArray_NumericalFlux_Size

int WmBasisArraySet::_basisArray_NumericalFlux_Size
protected

◆ _cfl

real WmBasisArraySet::_cfl
protected

◆ _Drcsr_col

std::vector<std::vector<int> > WmBasisArraySet::_Drcsr_col
protected

◆ _Drcsr_rowptr

std::vector<std::vector<int> > WmBasisArraySet::_Drcsr_rowptr
protected

◆ _Drcsr_val

std::vector<std::vector<real> > WmBasisArraySet::_Drcsr_val
protected

◆ _Drcsr_val_lengths

std::vector<int> WmBasisArraySet::_Drcsr_val_lengths
protected

◆ _faceNodes

std::vector<std::vector<int> > WmBasisArraySet::_faceNodes
protected

◆ _faceNodesDeduplicated

std::vector<int> WmBasisArraySet::_faceNodesDeduplicated
protected

◆ _has_csr

bool WmBasisArraySet::_has_csr
protected

◆ _nodePositions

std::vector<real> WmBasisArraySet::_nodePositions
protected

◆ _nodePositionsGaussQuad

std::vector<real> WmBasisArraySet::_nodePositionsGaussQuad
protected

◆ _num_face_nodes_per_face

std::vector<int> WmBasisArraySet::_num_face_nodes_per_face
protected

◆ _num_face_nodes_per_face_type

std::vector<int> WmBasisArraySet::_num_face_nodes_per_face_type
protected

◆ _num_face_types

int WmBasisArraySet::_num_face_types
protected

◆ _num_faces_per_face_type

std::vector<int> WmBasisArraySet::_num_faces_per_face_type
protected

◆ _numDims

int WmBasisArraySet::_numDims
protected

◆ _numDimsUnstruct

int WmBasisArraySet::_numDimsUnstruct
protected

◆ _numFaceNodes

int WmBasisArraySet::_numFaceNodes
protected

◆ _numFaceNodesSquares

int WmBasisArraySet::_numFaceNodesSquares
protected

◆ _numFacesPerElement

int WmBasisArraySet::_numFacesPerElement
protected

◆ _numFacesPerElementSquares

int WmBasisArraySet::_numFacesPerElementSquares
protected

◆ _numGaussQuadNodes

int WmBasisArraySet::_numGaussQuadNodes
protected

◆ _numInteriorPositivityPreservingQuadNodes

int WmBasisArraySet::_numInteriorPositivityPreservingQuadNodes
protected

◆ _numInternalNodes

int WmBasisArraySet::_numInternalNodes
protected

◆ _numNodesPerSubElement

int WmBasisArraySet::_numNodesPerSubElement
protected

◆ _numOrientations

int WmBasisArraySet::_numOrientations
protected

◆ _numSubElements

int WmBasisArraySet::_numSubElements
protected

◆ _numTotalFaceNodes

int WmBasisArraySet::_numTotalFaceNodes
protected

◆ _numTotalFaceNodesDeduplicated

int WmBasisArraySet::_numTotalFaceNodesDeduplicated
protected

◆ _numTotalNodes

int WmBasisArraySet::_numTotalNodes
protected

◆ _orientations

std::vector<std::vector<int> > WmBasisArraySet::_orientations
protected

◆ _spatialOrder

int WmBasisArraySet::_spatialOrder
protected

◆ _subElementConnectivity

std::vector<int> WmBasisArraySet::_subElementConnectivity
protected

◆ _two_num_flux_arrays_flag

int WmBasisArraySet::_two_num_flux_arrays_flag
protected

◆ _ups1csr_col

std::vector<std::vector<int> > WmBasisArraySet::_ups1csr_col
protected

◆ _ups1csr_rowptr

std::vector<std::vector<int> > WmBasisArraySet::_ups1csr_rowptr
protected

◆ _ups1csr_val

std::vector<std::vector<real> > WmBasisArraySet::_ups1csr_val
protected

◆ _ups1csr_val_lengths

std::vector<int> WmBasisArraySet::_ups1csr_val_lengths
protected

◆ _ups2csr_col

std::vector<std::vector<int> > WmBasisArraySet::_ups2csr_col
protected

◆ _ups2csr_rowptr

std::vector<std::vector<int> > WmBasisArraySet::_ups2csr_rowptr
protected

◆ _ups2csr_val

std::vector<std::vector<real> > WmBasisArraySet::_ups2csr_val
protected

◆ _ups2csr_val_lengths

std::vector<int> WmBasisArraySet::_ups2csr_val_lengths
protected

◆ _vol_multiplier

real WmBasisArraySet::_vol_multiplier
protected

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