chombo-discharge
Loading...
Searching...
No Matches
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>

Public Member Functions

 CdrStorage ()=delete
 Disallowed constructor. Only strong construction allowed.
 
 CdrStorage (const RefCountedPtr< AmrMesh > &a_amr, const std::string &a_realm, phase::which_phase a_phase)
 Full constructor. After this, user may call allocateStorage and deallocateStorage.
 
virtual ~CdrStorage ()
 Destructor.
 
 CdrStorage (const CdrStorage &)=delete
 
CdrStorageoperator= (const CdrStorage &)=delete
 
 CdrStorage (CdrStorage &&)=delete
 
CdrStorageoperator= (CdrStorage &&)=delete
 
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,
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)

Member Function Documentation

◆ getDomainFlux()

EBAMRIFData & Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage::getDomainFlux ( ) const
inline

Get the scratch storage holding the extrapolated flux on domain faces.

Returns
Domain flux

◆ getDomainGrad()

EBAMRIFData & Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage::getDomainGrad ( ) const
inline

Get the scratch storage holding the extrapolated gradient (normal component only) on domain faces.

Returns
Domain grad

◆ getDomainState()

EBAMRIFData & Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage::getDomainState ( ) const
inline

Get the scratch storage holding the extrapolated density on domain faces.

Returns
Domain state

◆ getDomainVelo()

EBAMRIFData & Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage::getDomainVelo ( ) const
inline

Get the scratch storage holding the extrapolated velocity (normal component only) on domain faces.

Returns
Domain velo

◆ getEbFlux()

EBAMRIVData & Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage::getEbFlux ( ) const
inline

Get the scratch storage holding the extrapolated flux on the EB.

Returns
Eb flux

◆ getEbGrad()

EBAMRIVData & Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage::getEbGrad ( ) const
inline

Get the scratch storage holding the extrapolated gradient on the EB.

Returns
Eb grad

◆ getEbState()

EBAMRIVData & Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage::getEbState ( ) const
inline

Get scratch storage that holds the density on the EB.

Returns
Eb state

◆ getEbVelo()

EBAMRIVData & Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage::getEbVelo ( ) const
inline

Get the scratch storage holding the normal component of the velocity on the EB.

Returns
Eb velo

◆ getExtrap()

EBAMRCellData & Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage::getExtrap ( ) const
inline

Get the extrapolation storage. This is usually used for holding phi + 0.5*dt*S.

Returns
Extrap

◆ getGradient()

EBAMRCellData & Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage::getGradient ( ) const
inline

Get storage for holding gradient.

Returns
Gradient

◆ getScratch()

EBAMRCellData & Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage::getScratch ( ) const
inline

Get scratch storage.

Returns
Scratch

◆ getScratch2()

EBAMRCellData & Physics::CdrPlasma::CdrPlasmaGodunovStepper::CdrStorage::getScratch2 ( ) const
inline

Get the other scratch storage.

Returns
Scratch2

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