FourthOrderPatchInterp Class Reference

#include <FourthOrderPatchInterp.H>

List of all members.


Detailed Description

Fourth-order interpolation in space on a single patch.

Public Member Functions

 FourthOrderPatchInterp ()
 Default constructor.
virtual ~FourthOrderPatchInterp ()
 Destructor.
virtual void define (const ProblemDomain &a_domain, const int &a_refineCoarse, const int &a_maxStencilDist, Interval a_fixedDims=Interval())
 Actual constructor.
virtual void setCoarseBox (const Box &a_coarseBox)
 Set the coarse box before calling setStencil or interpToFine.
virtual void setStencil (BaseFab< IntVect > &a_stencil)
 Set stencil for current coarse box and domain.
virtual void interpToFine (FArrayBox &a_fine, const FArrayBox &a_coarse, const BaseFab< IntVect > &a_stencils)
 Interpolate in space.
virtual void interpToFine (FArrayBox &a_fine, const FArrayBox &a_coarse, const BaseFab< IntVect > &a_stencils, const IntVectSet &a_ivs)
 Interpolate in space.

Protected Attributes

BaseFab
< FourthOrderInterpStencil * > 
m_stencils
 all possible stencils, on (-m_maxStencilDist:+m_maxStencilDist)^SpaceDim
ProblemDomain m_domain
 Problem domain - index space for this level.
ProblemDomain m_coarseDomain
int m_refineCoarse
 Refinement ratio between this level and the next coarser.
int m_maxStencilDist
 maximum distance of stencil from domain boundary
int m_degree
 max degree of approximations
Interval m_fixedDims
 dimensions that are fixed, not interpolated
IntVect m_refineVect
 1 in m_fixedDims, m_refineCoarse in other dimensions
bool m_defined
 define() has been called
Box m_coarseBox
 current coarse box
bool m_isCoarseBoxSet
 m_coarseBox is set

Private Member Functions

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

Constructor & Destructor Documentation

FourthOrderPatchInterp::FourthOrderPatchInterp (  ) 

Default constructor.

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

virtual FourthOrderPatchInterp::~FourthOrderPatchInterp (  )  [virtual]

Destructor.

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

FourthOrderPatchInterp::FourthOrderPatchInterp ( const FourthOrderPatchInterp a_input  )  [inline, private]

References MayDay::Error().


Member Function Documentation

virtual void FourthOrderPatchInterp::define ( const ProblemDomain a_domain,
const int &  a_refineCoarse,
const int &  a_maxStencilDist,
Interval  a_fixedDims = Interval() 
) [virtual]

Actual constructor.

Set up object.

Parameters:
a_domain  problem domain on this level
a_refineCoarse  refinement ratio between this level and next coarser level
a_maxStencilDist  maximum distance of stencil from domain boundary
a_fixedDims  dimensions that are fixed, not interpolated

virtual void FourthOrderPatchInterp::setCoarseBox ( const Box a_coarseBox  )  [virtual]

Set the coarse box before calling setStencil or interpToFine.

virtual void FourthOrderPatchInterp::setStencil ( BaseFab< IntVect > &  a_stencil  )  [virtual]

Set stencil for current coarse box and domain.

Set a_stencil for m_coarseBox.

virtual void FourthOrderPatchInterp::interpToFine ( FArrayBox a_fine,
const FArrayBox a_coarse,
const BaseFab< IntVect > &  a_stencils 
) [virtual]

Interpolate in space.

Interpolate in space to a_fine from a_coarse.

Parameters:
a_fine  interpolated solution on this level
a_coarse  coarse solution
a_stencils  stencils

virtual void FourthOrderPatchInterp::interpToFine ( FArrayBox a_fine,
const FArrayBox a_coarse,
const BaseFab< IntVect > &  a_stencils,
const IntVectSet a_ivs 
) [virtual]

Interpolate in space.

Interpolate in space to a_fine from a_coarse at fine cells within the coarse cells listed in a_ivs.

Parameters:
a_fine  interpolated solution on this level
a_coarse  coarse solution
a_stencils  stencils
a_ivs  we fill in fine cells within these coarse cells

void FourthOrderPatchInterp::operator= ( const FourthOrderPatchInterp a_input  )  [inline, private]

References MayDay::Error().


Member Data Documentation

all possible stencils, on (-m_maxStencilDist:+m_maxStencilDist)^SpaceDim

Problem domain - index space for this level.

Refinement ratio between this level and the next coarser.

maximum distance of stencil from domain boundary

max degree of approximations

dimensions that are fixed, not interpolated

1 in m_fixedDims, m_refineCoarse in other dimensions

define() has been called

current coarse box

m_coarseBox is set


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

Generated on Tue May 23 04:03:45 2017 for Chombo + EB by  doxygen 1.5.5