Public Member Functions | Protected Member Functions | Private Attributes
Sundance::StdFwkEvalMediator Class Reference
Inheritance diagram for Sundance::StdFwkEvalMediator:
Sundance::AbstractEvalMediator Playa::Printable Sundance::CurveEvalMediator Sundance::QuadratureEvalMediator

List of all members.

Public Member Functions

 StdFwkEvalMediator (const Mesh &mesh, int cellDim)
virtual ~StdFwkEvalMediator ()
void setCellBatch (const RCP< const Array< int > > &cellLID)
void setIntegrationSpec (IntegrationCellSpecifier intCellSpec)
virtual void setCellType (const CellType &cellType, const CellType &maxCellType, bool isInternalBdry)
const CellJacobianBatchJVol () const
const CellJacobianBatchJTrans () const
const Array< int > & facetIndices () const
const Array< int > & maxCellLIDs () const
int cellDim () const
int maxCellDim () const
const CellTypecellType () const
const CellTypemaxCellType () const
const RCP< const Array< int > > & cellLID () const
const RCP< Array< int > > & cofacetCellLID () const
IntegrationCellSpecifier integrationCellSpec () const
bool cofacetCellsAreReady () const
bool isInternalBdry () const
bool forbidCofacetIntegrations () const

Protected Member Functions

const Meshmesh () const
Meshmesh ()
bool & cacheIsValid () const
void setupFacetTransformations () const
Map< const
DiscreteFunctionData *, RCP
< Array< Array< double > > > > & 
fCache () const
Map< const
DiscreteFunctionData *, RCP
< Array< Array< double > > > > & 
dfCache () const
Map< const
DiscreteFunctionData *, RCP
< Array< Array< double > > > > & 
localValueCache () const
Map< const
DiscreteFunctionData *, RCP
< const MapStructure > > & 
mapStructCache () const
Map< const
DiscreteFunctionData *, bool > & 
fCacheIsValid () const
Map< const
DiscreteFunctionData *, bool > & 
dfCacheIsValid () const
Map< const
DiscreteFunctionData *, bool > & 
localValueCacheIsValid () const

Private Attributes

Mesh mesh_
int cellDim_
CellType cellType_
CellType maxCellType_
bool isInternalBdry_
bool forbidCofacetIntegrations_
RCP< const Array< int > > cellLID_
IntegrationCellSpecifier intCellSpec_
RCP< CellJacobianBatchJVol_
RCP< CellJacobianBatchJTrans_
RCP< Array< int > > facetIndices_
RCP< Array< int > > maxCellLIDs_
bool cofacetCellsAreReady_
bool cacheIsValid_
bool jCacheIsValid_
Map< const
DiscreteFunctionData *, RCP
< Array< Array< double > > > > 
fCache_
Map< const
DiscreteFunctionData *, RCP
< Array< Array< double > > > > 
dfCache_
Map< const
DiscreteFunctionData *, RCP
< Array< Array< double > > > > 
localValueCache_
Map< const
DiscreteFunctionData *, RCP
< const MapStructure > > 
mapStructCache_
Map< const
DiscreteFunctionData *, bool > 
fCacheIsValid_
Map< const
DiscreteFunctionData *, bool > 
dfCacheIsValid_
Map< const
DiscreteFunctionData *, bool > 
localValueCacheIsValid_

Detailed Description

StdFwkEvalMediator evaluates mesh-dependent functions in the standard framework. A number of subtypes are supported: QuadratureEvalMediator, which does evaluation on quadrature points, and NodalEvalMediator, which does evaluation at nodal points.

Definition at line 64 of file SundanceStdFwkEvalMediator.hpp.


Constructor & Destructor Documentation

StdFwkEvalMediator::StdFwkEvalMediator ( const Mesh mesh,
int  cellDim 
)

Definition at line 62 of file SundanceStdFwkEvalMediator.cpp.

Definition at line 72 of file SundanceStdFwkEvalMediator.hpp.


Member Function Documentation

bool& Sundance::StdFwkEvalMediator::cacheIsValid ( ) const [inline, protected]
int Sundance::StdFwkEvalMediator::cellDim ( ) const [inline]
const RCP<const Array<int> >& Sundance::StdFwkEvalMediator::cellLID ( ) const [inline]
const RCP<Array<int> >& Sundance::StdFwkEvalMediator::cofacetCellLID ( ) const [inline]
Map<const DiscreteFunctionData*, RCP<Array<Array<double> > > >& Sundance::StdFwkEvalMediator::dfCache ( ) const [inline, protected]
Map<const DiscreteFunctionData*, bool>& Sundance::StdFwkEvalMediator::dfCacheIsValid ( ) const [inline, protected]
const Array<int>& Sundance::StdFwkEvalMediator::facetIndices ( ) const [inline]

When evaluating derivatives on boundaries, we evaluate basis functions on the maximal cofacets of the boundary cells. This function returns the facet index, relative to the maximal cofacet, of each boundary cell in the batch.

Definition at line 100 of file SundanceStdFwkEvalMediator.hpp.

References facetIndices_.

Referenced by Sundance::QuadratureEvalMediator::computePhysQuadPts(), and Sundance::QuadratureEvalMediator::fillFunctionCache().

Map<const DiscreteFunctionData*, RCP<Array<Array<double> > > >& Sundance::StdFwkEvalMediator::fCache ( ) const [inline, protected]
Map<const DiscreteFunctionData*, bool>& Sundance::StdFwkEvalMediator::fCacheIsValid ( ) const [inline, protected]

Return the Jacobian to be used in derivative transformations.

Definition at line 175 of file SundanceStdFwkEvalMediator.cpp.

References intCellSpec_, JTrans_, JVol_, and Sundance::NoTermsNeedCofacets.

Referenced by Sundance::QuadratureEvalMediator::fillFunctionCache().

Return the Jacobian to be used in computing the volume of cells being integrated. This will not necessarily be the same as the Jacobian used for transformations of vectors: when integrating derivatives over boundaries, the volume is the volume of the facet, while the transformations are computed on the maximal cofacets.

Definition at line 91 of file SundanceStdFwkEvalMediator.hpp.

References JVol_.

Map<const DiscreteFunctionData*, RCP<Array<Array<double> > > >& Sundance::StdFwkEvalMediator::localValueCache ( ) const [inline, protected]
Map<const DiscreteFunctionData*, RCP<const MapStructure> >& Sundance::StdFwkEvalMediator::mapStructCache ( ) const [inline, protected]
const Array<int>& Sundance::StdFwkEvalMediator::maxCellLIDs ( ) const [inline]

Definition at line 103 of file SundanceStdFwkEvalMediator.hpp.

References maxCellLIDs_.

const Mesh& Sundance::StdFwkEvalMediator::mesh ( ) const [inline, protected]
Mesh& Sundance::StdFwkEvalMediator::mesh ( ) [inline, protected]

Definition at line 140 of file SundanceStdFwkEvalMediator.hpp.

References mesh_.

void StdFwkEvalMediator::setCellBatch ( const RCP< const Array< int > > &  cellLID)
void StdFwkEvalMediator::setCellType ( const CellType cellType,
const CellType maxCellType,
bool  isInternalBdry 
) [virtual]

Definition at line 103 of file SundanceStdFwkEvalMediator.cpp.

References intCellSpec_.


Member Data Documentation

Definition at line 192 of file SundanceStdFwkEvalMediator.hpp.

Referenced by cacheIsValid().

Definition at line 168 of file SundanceStdFwkEvalMediator.hpp.

Referenced by cellDim(), and setCellType().

RCP<const Array<int> > Sundance::StdFwkEvalMediator::cellLID_ [private]

Definition at line 170 of file SundanceStdFwkEvalMediator.hpp.

Referenced by cellType(), and setCellType().

Map<const DiscreteFunctionData*, RCP<Array<Array<double> > > > Sundance::StdFwkEvalMediator::dfCache_ [mutable, private]

Definition at line 201 of file SundanceStdFwkEvalMediator.hpp.

Referenced by dfCache().

Definition at line 210 of file SundanceStdFwkEvalMediator.hpp.

Referenced by dfCacheIsValid(), and setCellBatch().

RCP<Array<int> > Sundance::StdFwkEvalMediator::facetIndices_ [mutable, private]

Definition at line 186 of file SundanceStdFwkEvalMediator.hpp.

Referenced by facetIndices(), and setupFacetTransformations().

Map<const DiscreteFunctionData*, RCP<Array<Array<double> > > > Sundance::StdFwkEvalMediator::fCache_ [mutable, private]

Definition at line 199 of file SundanceStdFwkEvalMediator.hpp.

Referenced by fCache().

Definition at line 208 of file SundanceStdFwkEvalMediator.hpp.

Referenced by fCacheIsValid(), and setCellBatch().

Definition at line 176 of file SundanceStdFwkEvalMediator.hpp.

Referenced by forbidCofacetIntegrations(), and setCellType().

Definition at line 174 of file SundanceStdFwkEvalMediator.hpp.

Referenced by isInternalBdry(), and setCellType().

Definition at line 194 of file SundanceStdFwkEvalMediator.hpp.

Referenced by setCellBatch(), and setCellType().

Definition at line 184 of file SundanceStdFwkEvalMediator.hpp.

Referenced by JTrans(), and setupFacetTransformations().

Definition at line 182 of file SundanceStdFwkEvalMediator.hpp.

Referenced by JTrans(), JVol(), and setCellBatch().

Map<const DiscreteFunctionData*, RCP<Array<Array<double> > > > Sundance::StdFwkEvalMediator::localValueCache_ [mutable, private]

Definition at line 203 of file SundanceStdFwkEvalMediator.hpp.

Referenced by localValueCache().

Definition at line 212 of file SundanceStdFwkEvalMediator.hpp.

Referenced by localValueCacheIsValid(), and setCellBatch().

Definition at line 205 of file SundanceStdFwkEvalMediator.hpp.

Referenced by mapStructCache().

RCP<Array<int> > Sundance::StdFwkEvalMediator::maxCellLIDs_ [mutable, private]

Reimplemented in Sundance::CurveEvalMediator.

Definition at line 172 of file SundanceStdFwkEvalMediator.hpp.

Referenced by maxCellType(), and setCellType().

Site Contact