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

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

#include <CD_CdrPlasmaGodunovStorage.H>

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

Public Member Functions

 FieldStorage ()=delete
 Disallowed weak constructor.
 
 FieldStorage (const RefCountedPtr< AmrMesh > &a_amr, const std::string a_realm, const phase::which_phase a_phase)
 Full constructor. Can call allocation functions after this. More...
 
virtual ~FieldStorage ()
 Destructor.
 
virtual void allocateStorage ()
 Allocation function – allocates all the necessary memory.
 
virtual void deallocateStorage ()
 Deallocation function – deallocates all the necessary memory.
 
EBAMRCellDatagetElectricFieldCell () const
 Get scratch storage that holds the electric field at the cell center.
 
EBAMRIVDatagetElectricFieldEB () const
 Get scratch storage that holds the electric field at the EB.
 
EBAMRIFDatagetElectricFieldDomain () const
 Get scratch storage that holds the electric field at the domainf aces.
 

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_electricFieldCell
 Scratch storage for holding electric field at cell center.
 
EBAMRIVData m_electricFieldEB
 Scratch storage for holding electric field at the EB.
 
EBAMRIFData m_electricFieldDomain
 Scratch storage for holding electric field at domain faces.
 

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

◆ FieldStorage()

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

Full constructor. Can call allocation functions after this.

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: