AMRLevelWaveEquation Class Reference

#include <AMRLevelWaveEquation.H>

Inheritance diagram for AMRLevelWaveEquation:

Inheritance graph
[legend]
Collaboration diagram for AMRLevelWaveEquation:

Collaboration graph
[legend]

List of all members.


Detailed Description

AMR Level for second-order wave equation.

Public Member Functions

 AMRLevelWaveEquation ()
 Constructor.
virtual ~AMRLevelWaveEquation ()
 Destructor.
virtual void define (AMRLevel *a_coarserLevelPtr, const ProblemDomain &a_problemDomain, int a_level, int a_refRatio)
 Define new AMR level.
virtual Real advance ()
 Advance by one timestep -- RK4.
virtual void postTimeStep ()
 Things to do after a timestep -- reflux.
virtual void tagCells (IntVectSet &a_tags)
 Create tags for regridding.
virtual void tagCellsInit (IntVectSet &a_tags)
 Create tags at initialization.
virtual void regrid (const Vector< Box > &a_newGrids)
 Set up data on this level after regridding.
virtual void initialGrid (const Vector< Box > &a_newGrids)
 Initialize grids.
virtual void initialData ()
 Initialize data.
virtual void postInitialize ()
 Things to do after initialization.
virtual Real computeDt ()
 Returns the dt computed earlier for this level.
virtual Real computeInitialDt ()
 Compute dt using initial data.
Real computeEnergy ()
 Compute integral of energy over this and all finer levels.
virtual void CFL (Real a_cfl)
 Set the CFL number.
virtual void domainLength (Real a_domainLength)
 Set the physical dimension of the longest side of the domain.
virtual void refinementThreshold (Real a_refineThresh)
 Set the refinement threshold.
void tagBufferSize (int a_tagBufferSize)
 Set the tag buffer size.
void IBC (PhysIBC *a_ibc)
LevelData< FArrayBox > * phi ()
 Accessors.
LevelData< FArrayBox > * pi ()

Protected Member Functions

DisjointBoxLayout loadBalance (const Vector< Box > &a_grids)
void levelSetup ()
AMRLevelWaveEquationgetCoarserLevel () const
AMRLevelWaveEquationgetFinerLevel () const
void initializeODE (LevelData< FArrayBox > &a_piOld, LevelData< FArrayBox > &a_pi)
void updateODE (LevelData< FArrayBox > &a_LOfPhi, LevelData< FArrayBox > &a_pi, Real a_dt)

Protected Attributes

Real m_r0
LevelData< FArrayBoxm_phiOld
LevelData< FArrayBoxm_phiNew
LevelData< FArrayBoxm_piOld
LevelData< FArrayBoxm_piNew
Real m_cfl
Real m_dx
FineInterp m_fineInterp
CoarseAverage m_coarseAverage
Real m_dtNew
int m_numStates
Vector< std::string > m_stateNames
int m_numGhost
Real m_domainLength
LevelWaveOperator m_levelWaveOperator
LevelFluxRegister m_fluxRegister
Real m_refineThresh
int m_tagBufferSize
bool m_hasCoarser
bool m_hasFiner
DisjointBoxLayout m_grids
PhysIBCm_physIBCPtr

Private Member Functions

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

Friends

class AMRLevelWaveEqnFactory

Constructor & Destructor Documentation

AMRLevelWaveEquation::AMRLevelWaveEquation (  ) 

Constructor.

virtual AMRLevelWaveEquation::~AMRLevelWaveEquation (  )  [virtual]

Destructor.

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

References MayDay::Error().


Member Function Documentation

virtual void AMRLevelWaveEquation::define ( AMRLevel a_coarserLevelPtr,
const ProblemDomain a_problemDomain,
int  a_level,
int  a_refRatio 
) [virtual]

Define new AMR level.

Reimplemented from AMRLevel.

virtual Real AMRLevelWaveEquation::advance (  )  [virtual]

Advance by one timestep -- RK4.

Implements AMRLevel.

virtual void AMRLevelWaveEquation::postTimeStep (  )  [virtual]

Things to do after a timestep -- reflux.

Implements AMRLevel.

virtual void AMRLevelWaveEquation::tagCells ( IntVectSet a_tags  )  [virtual]

Create tags for regridding.

Implements AMRLevel.

virtual void AMRLevelWaveEquation::tagCellsInit ( IntVectSet a_tags  )  [virtual]

Create tags at initialization.

Implements AMRLevel.

virtual void AMRLevelWaveEquation::regrid ( const Vector< Box > &  a_newGrids  )  [virtual]

Set up data on this level after regridding.

Implements AMRLevel.

virtual void AMRLevelWaveEquation::initialGrid ( const Vector< Box > &  a_newGrids  )  [virtual]

Initialize grids.

Implements AMRLevel.

virtual void AMRLevelWaveEquation::initialData (  )  [virtual]

Initialize data.

Implements AMRLevel.

virtual void AMRLevelWaveEquation::postInitialize (  )  [virtual]

Things to do after initialization.

Implements AMRLevel.

virtual Real AMRLevelWaveEquation::computeDt (  )  [virtual]

Returns the dt computed earlier for this level.

Implements AMRLevel.

virtual Real AMRLevelWaveEquation::computeInitialDt (  )  [virtual]

Compute dt using initial data.

Implements AMRLevel.

Real AMRLevelWaveEquation::computeEnergy (  ) 

Compute integral of energy over this and all finer levels.

virtual void AMRLevelWaveEquation::CFL ( Real  a_cfl  )  [virtual]

Set the CFL number.

virtual void AMRLevelWaveEquation::domainLength ( Real  a_domainLength  )  [virtual]

Set the physical dimension of the longest side of the domain.

virtual void AMRLevelWaveEquation::refinementThreshold ( Real  a_refineThresh  )  [virtual]

Set the refinement threshold.

void AMRLevelWaveEquation::tagBufferSize ( int  a_tagBufferSize  ) 

Set the tag buffer size.

void AMRLevelWaveEquation::IBC ( PhysIBC a_ibc  )  [inline]

References m_physIBCPtr.

LevelData<FArrayBox>* AMRLevelWaveEquation::phi (  )  [inline]

Accessors.

References m_phiNew.

LevelData<FArrayBox>* AMRLevelWaveEquation::pi (  )  [inline]

References m_piNew.

DisjointBoxLayout AMRLevelWaveEquation::loadBalance ( const Vector< Box > &  a_grids  )  [protected]

void AMRLevelWaveEquation::levelSetup (  )  [protected]

AMRLevelWaveEquation* AMRLevelWaveEquation::getCoarserLevel (  )  const [protected]

AMRLevelWaveEquation* AMRLevelWaveEquation::getFinerLevel (  )  const [protected]

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

References MayDay::Error().

void AMRLevelWaveEquation::initializeODE ( LevelData< FArrayBox > &  a_piOld,
LevelData< FArrayBox > &  a_pi 
) [protected]

void AMRLevelWaveEquation::updateODE ( LevelData< FArrayBox > &  a_LOfPhi,
LevelData< FArrayBox > &  a_pi,
Real  a_dt 
) [protected]


Friends And Related Function Documentation

friend class AMRLevelWaveEqnFactory [friend]


Member Data Documentation

Referenced by phi().

Referenced by pi().

Vector<std::string> AMRLevelWaveEquation::m_stateNames [protected]

Referenced by IBC().


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

Generated on Tue Apr 14 14:22:47 2009 for Chombo + EB by  doxygen 1.5.5