chombo-discharge
Public Member Functions | Protected Attributes | List of all members
Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage Class Reference

Utility class for memory handling in CdrPlasmaStepper. More...

#include <CD_CdrPlasmaGodunovStorage.H>

Collaboration diagram for Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage:
Collaboration graph
[legend]

Public Member Functions

 CdrStorage ()=delete
 Disallowed constructor. Only strong construction allowed.
 
 CdrStorage (const RefCountedPtr< AmrMesh > &a_amr, const std::string a_realm, const phase::which_phase a_phase)
 Full constructor. After this, user may call allocateStorage and deallocateStorage. More...
 
virtual ~CdrStorage ()
 Destructor.
 
virtual void allocateStorage ()
 Allocation function. This will allocate all transient storage in this class.
 
virtual void deallocateStorage ()
 Allocation function. This will delete all transient storage in this class.
 
EBAMRCellDatagetScratch () const
 Get scratch storage.
 
EBAMRCellDatagetScratch2 () const
 Get the other scratch storage.
 
EBAMRCellDatagetExtrap () const
 Get the extrapolation storage. This is usually used for holding phi + 0.5*dt*S.
 
EBAMRCellDatagetGradient () const
 Get storage for holding gradient.
 
EBAMRIVDatagetEbState () const
 Get scratch storage that holds the density on the EB.
 
EBAMRIVDatagetEbVelo () const
 Get the scratch storage holding the normal component of the velocity on the EB.
 
EBAMRIVDatagetEbFlux () const
 Get the scratch storage holding the extrapolated flux on the EB.
 
EBAMRIVDatagetEbGrad () const
 Get the scratch storage holding the extrapolated gradient on the EB.
 
EBAMRIFDatagetDomainState () const
 Get the scratch storage holding the extrapolated density on domain faces.
 
EBAMRIFDatagetDomainVelo () const
 Get the scratch storage holding the extrapolated velocity (normal component only) on domain faces.
 
EBAMRIFDatagetDomainFlux () const
 Get the scratch storage holding the extrapolated flux on domain faces.
 
EBAMRIFDatagetDomainGrad () const
 Get the scratch storage holding the extrapolated gradient (normal component only) on domain faces.
 

Protected Attributes

RefCountedPtr< AmrMeshm_amr
 Reference to AmrMesh.
 
std::string m_realm
 Realm where data lives.
 
phase::which_phase m_phase
 Phase where data lives.
 
EBAMRCellData m_scratch
 Cell-centered scratch data.
 
EBAMRCellData m_scratch2
 Cell-centered scratch data.
 
EBAMRCellData m_cellExtr
 Cell-centered scratch data. Used for holding phi + 0.5*dt*S.
 
EBAMRCellData m_gradient
 Cell-centered scratch data for holding the gradient.
 
EBAMRIVData m_scratchIV1
 EB-centered scratch data.
 
EBAMRIVData m_scratchIV2
 EB-centered scratch data.
 
EBAMRIVData m_scratchIV3
 EB-centered scratch data.
 
EBAMRIVData m_scratchIV4
 EB-centered scratch data.
 
EBAMRIFData m_scratchIF1
 Domain-centered scratch data.
 
EBAMRIFData m_scratchIF2
 Domain-centered scratch data.
 
EBAMRIFData m_scratchIF3
 Domain-centered scratch data.
 
EBAMRIFData m_scratchIF4
 Domain-centered scratch data.
 

Detailed Description

Utility class for memory handling in CdrPlasmaStepper.

This class exists because we often need some extra storage when advancing the equations.

Constructor & Destructor Documentation

◆ CdrStorage()

CdrPlasmaGodunovStepper::CdrStorage::CdrStorage ( const RefCountedPtr< AmrMesh > &  a_amr,
const std::string  a_realm,
const phase::which_phase  a_phase 
)

Full constructor. After this, user may call allocateStorage and deallocateStorage.

Parameters
[in]a_amrReference to AmrMesh
[in]a_realmRealm where storage lives
[in]a_phasePhase where storage lives (only single-phased data in here)

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