Chombo + EB + MF  3.2
Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | List of all members
FourthOrderOneDStencil Class Reference

Class to manage coarse-to-fine spatial interpolation to all fine cells within a single particular coarse cell. More...

#include <FourthOrderOneDStencil.H>

Public Member Functions

 FourthOrderOneDStencil ()
 Default constructor. More...
 
 ~FourthOrderOneDStencil ()
 Destructor. More...
 
void define (const int &a_refRatio, const int &a_order)
 Actual constructor. More...
 
void makeMomentMatrix (LAPACKMatrix &a_matrix, const Real &a_dx, const Real &a_vol)
 
void calculateStencilWeights (LAPACKMatrix &a_weights, const LAPACKMatrix &a_matrix, const LAPACKMatrix &a_coarseData)
 
void calculateMoments (Vector< Real > &a_oneDMomentMap, const Real &a_dx, const Real &a_vol)
 
void apply (FArrayBox &a_fineFab, const FArrayBox &a_coarseFab, const IntVect &a_coarseIv, const int &a_interpDir, const IntVect &a_coarseRefineVect)
 

Public Attributes

int m_refRatio
 
int m_order
 
Real ** m_weights
 

Protected Attributes

bool m_defined
 whether define() has been called More...
 

Private Member Functions

void operator= (const FourthOrderOneDStencil &a_input)
 
 FourthOrderOneDStencil (const FourthOrderOneDStencil &a_input)
 

Detailed Description

Class to manage coarse-to-fine spatial interpolation to all fine cells within a single particular coarse cell.

Constructor & Destructor Documentation

◆ FourthOrderOneDStencil() [1/2]

FourthOrderOneDStencil::FourthOrderOneDStencil ( )

Default constructor.

Object requires define() to be called before all other functions.

◆ ~FourthOrderOneDStencil()

FourthOrderOneDStencil::~FourthOrderOneDStencil ( )
inline

Destructor.

Destroys all objects created by define(). Passed in data references of define() are left alone.

References apply(), calculateMoments(), calculateStencilWeights(), define(), m_weights, and makeMomentMatrix().

◆ FourthOrderOneDStencil() [2/2]

FourthOrderOneDStencil::FourthOrderOneDStencil ( const FourthOrderOneDStencil a_input)
inlineprivate

References MayDay::Error().

Member Function Documentation

◆ define()

void FourthOrderOneDStencil::define ( const int &  a_refRatio,
const int &  a_order 
)

Actual constructor.

Set up object.

Referenced by ~FourthOrderOneDStencil().

◆ makeMomentMatrix()

void FourthOrderOneDStencil::makeMomentMatrix ( LAPACKMatrix a_matrix,
const Real a_dx,
const Real a_vol 
)

Referenced by ~FourthOrderOneDStencil().

◆ calculateStencilWeights()

void FourthOrderOneDStencil::calculateStencilWeights ( LAPACKMatrix a_weights,
const LAPACKMatrix a_matrix,
const LAPACKMatrix a_coarseData 
)

Referenced by ~FourthOrderOneDStencil().

◆ calculateMoments()

void FourthOrderOneDStencil::calculateMoments ( Vector< Real > &  a_oneDMomentMap,
const Real a_dx,
const Real a_vol 
)

Referenced by ~FourthOrderOneDStencil().

◆ apply()

void FourthOrderOneDStencil::apply ( FArrayBox a_fineFab,
const FArrayBox a_coarseFab,
const IntVect a_coarseIv,
const int &  a_interpDir,
const IntVect a_coarseRefineVect 
)

Referenced by ~FourthOrderOneDStencil().

◆ operator=()

void FourthOrderOneDStencil::operator= ( const FourthOrderOneDStencil a_input)
inlineprivate

References MayDay::Error().

Member Data Documentation

◆ m_refRatio

int FourthOrderOneDStencil::m_refRatio

◆ m_order

int FourthOrderOneDStencil::m_order

◆ m_weights

Real** FourthOrderOneDStencil::m_weights

Referenced by ~FourthOrderOneDStencil().

◆ m_defined

bool FourthOrderOneDStencil::m_defined
protected

whether define() has been called


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