chombo-discharge
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Physics::CdrPlasma::CdrPlasmaImExSdcStepper::RtStorage Class Reference

Per-RTE-solver scratch storage for the IMEX-SDC time stepper. More...

#include <CD_CdrPlasmaImExSdcStorage.H>

Public Member Functions

 RtStorage ()
 Default constructor. Leaves all members uninitialised; call allocateStorage() after construction.
 
 RtStorage (const RefCountedPtr< AmrMesh > &a_amr, const std::string &a_realm, const phase::which_phase a_phase, const int a_ncomp)
 Full constructor.
 
 ~RtStorage ()
 Destructor.
 
void allocateStorage (const int a_p)
 Allocate RTE scratch storage for p+1 SDC nodes.
 
void deallocateStorage ()
 Deallocate all RTE scratch storage.
 
EBAMRCellDatagetPrevious ()
 Return the cell-centered photon density at the previous time step.
 
EBAMRIVDatagetEbFlux ()
 Return the EB-centered isotropic photon flux scratch array.
 
EBAMRIFDatagetDomainFlux ()
 Return the domain-face-centered isotropic photon flux scratch array.
 

Protected Attributes

std::string m_realm
 Realm on which storage is allocated.
 
RefCountedPtr< AmrMeshm_amr
 AMR mesh used for allocation.
 
phase::which_phase m_phase
 Phase on which storage is allocated.
 
int m_ncomp
 Number of scalar components (1 for RTE species).
 
int m_p
 Number of SDC subintervals.
 
EBAMRCellData m_previous
 Cell-centered photon density at the previous time step (used to restore state on rejection).
 
EBAMRIVData m_scratchIV
 EB-centered scratch array for the isotropic photon density boundary condition.
 
EBAMRIFData m_scratchIF
 Domain-face-centered scratch array for the isotropic photon density boundary condition.
 

Detailed Description

Per-RTE-solver scratch storage for the IMEX-SDC time stepper.

Holds the photon density at the previous time step plus EB and domain face flux arrays used to impose boundary conditions during the RTE advance.

Constructor & Destructor Documentation

◆ RtStorage()

CdrPlasmaImExSdcStepper::RtStorage::RtStorage ( const RefCountedPtr< AmrMesh > &  a_amr,
const std::string a_realm,
const phase::which_phase  a_phase,
const int  a_ncomp 
)

Full constructor.

Parameters
[in]a_amrAMR mesh used to allocate data.
[in]a_realmRealm on which storage is allocated.
[in]a_phasePhase on which storage is allocated.
[in]a_ncompNumber of components (1 for scalar RTE species).

Member Function Documentation

◆ allocateStorage()

void CdrPlasmaImExSdcStepper::RtStorage::allocateStorage ( const int  a_p)

Allocate RTE scratch storage for p+1 SDC nodes.

Parameters
[in]a_pNumber of SDC subintervals.

◆ getDomainFlux()

EBAMRIFData & Physics::CdrPlasma::CdrPlasmaImExSdcStepper::RtStorage::getDomainFlux ( )
inline

Return the domain-face-centered isotropic photon flux scratch array.

Returns
Reference to m_scratchIF.

◆ getEbFlux()

EBAMRIVData & Physics::CdrPlasma::CdrPlasmaImExSdcStepper::RtStorage::getEbFlux ( )
inline

Return the EB-centered isotropic photon flux scratch array.

Returns
Reference to m_scratchIV.

◆ getPrevious()

EBAMRCellData & Physics::CdrPlasma::CdrPlasmaImExSdcStepper::RtStorage::getPrevious ( )
inline

Return the cell-centered photon density at the previous time step.

Returns
Reference to m_previous.

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