Athena++/Atmosphere
Planetary Atmosphere Simulator
Radiation Class Reference

#include <radiation.hpp>

Public Member Functions

 Radiation (MeshBlock *pmb)
 
 Radiation (MeshBlock *pmb, ParameterInput *pin)
 
 ~Radiation ()
 
RadiationBandgetBand (int n)
 
int getNumBands ()
 
void calculateRadiativeFluxes (AthenaArray< Real > const &w, Real time, int k, int j, int il, int iu)
 
void calculateRadiances (AthenaArray< Real > const &w, Real time, int k, int j, int il, int iu)
 
void addRadiativeFluxes (AthenaArray< Real > &x1flux, int k, int j, int il, int iu)
 
void readRadiationBands (ParameterInput *pin, int &b)
 
int getTotalNumberOutgoingRays ()
 
size_t getRestartDataSizeInBytes ()
 
size_t dumpRestartData (char *pdst)
 
size_t loadRestartData (char *psrc)
 

Public Attributes

MeshBlockpmy_block
 
RadiationBandpband
 
uint64_t rflags
 
Real cooldown
 
Real current
 
CelestrialBody * planet
 
std::string radiance_units
 
std::vector< DirectionrayInput
 
AthenaArray< Realradiance
 

Static Public Attributes

static Real const hPlanck = 6.63E-34
 
static Real const hPlanck_cgs = 6.63E-27
 
static Real const cLight = 3.E8
 
static Real const cLight_cgs = 3.E10
 
static Real const stefanBoltzmann = 5.670374419E-8
 

Protected Attributes

Real stellarDistance_au_
 

Detailed Description

Definition at line 91 of file radiation.hpp.

Constructor & Destructor Documentation

◆ Radiation() [1/2]

Radiation::Radiation ( MeshBlock pmb)

Definition at line 23 of file radiation.cpp.

◆ Radiation() [2/2]

Radiation::Radiation ( MeshBlock pmb,
ParameterInput pin 
)

Definition at line 28 of file radiation.cpp.

◆ ~Radiation()

Radiation::~Radiation ( )

Definition at line 77 of file radiation.cpp.

Member Function Documentation

◆ getBand()

RadiationBand * Radiation::getBand ( int  n)

Definition at line 89 of file radiation.cpp.

◆ getNumBands()

int Radiation::getNumBands ( )

Definition at line 100 of file radiation.cpp.

◆ calculateRadiativeFluxes()

void Radiation::calculateRadiativeFluxes ( AthenaArray< Real > const &  w,
Real  time,
int  k,
int  j,
int  il,
int  iu 
)

Definition at line 110 of file radiation.cpp.

◆ calculateRadiances()

void Radiation::calculateRadiances ( AthenaArray< Real > const &  w,
Real  time,
int  k,
int  j,
int  il,
int  iu 
)

Definition at line 137 of file radiation.cpp.

◆ addRadiativeFluxes()

void Radiation::addRadiativeFluxes ( AthenaArray< Real > &  x1flux,
int  k,
int  j,
int  il,
int  iu 
)

Definition at line 162 of file radiation.cpp.

◆ readRadiationBands()

void Radiation::readRadiationBands ( ParameterInput pin,
int &  b 
)

Definition at line 182 of file radiation.cpp.

◆ getTotalNumberOutgoingRays()

int Radiation::getTotalNumberOutgoingRays ( )

Definition at line 239 of file radiation.cpp.

◆ getRestartDataSizeInBytes()

size_t Radiation::getRestartDataSizeInBytes ( )

Definition at line 249 of file radiation.cpp.

◆ dumpRestartData()

size_t Radiation::dumpRestartData ( char *  pdst)

Definition at line 262 of file radiation.cpp.

◆ loadRestartData()

size_t Radiation::loadRestartData ( char *  psrc)

Definition at line 277 of file radiation.cpp.

Member Data Documentation

◆ hPlanck

Real const Radiation::hPlanck = 6.63E-34
static

Definition at line 94 of file radiation.hpp.

◆ hPlanck_cgs

Real const Radiation::hPlanck_cgs = 6.63E-27
static

Definition at line 95 of file radiation.hpp.

◆ cLight

Real const Radiation::cLight = 3.E8
static

Definition at line 96 of file radiation.hpp.

◆ cLight_cgs

Real const Radiation::cLight_cgs = 3.E10
static

Definition at line 97 of file radiation.hpp.

◆ stefanBoltzmann

Real const Radiation::stefanBoltzmann = 5.670374419E-8
static

Definition at line 98 of file radiation.hpp.

◆ pmy_block

MeshBlock* Radiation::pmy_block

Definition at line 101 of file radiation.hpp.

◆ pband

RadiationBand* Radiation::pband

Definition at line 102 of file radiation.hpp.

◆ rflags

uint64_t Radiation::rflags

Definition at line 103 of file radiation.hpp.

◆ cooldown

Real Radiation::cooldown

Definition at line 104 of file radiation.hpp.

◆ current

Real Radiation::current

Definition at line 104 of file radiation.hpp.

◆ planet

CelestrialBody* Radiation::planet

Definition at line 105 of file radiation.hpp.

◆ radiance_units

std::string Radiation::radiance_units

Definition at line 106 of file radiation.hpp.

◆ rayInput

std::vector<Direction> Radiation::rayInput

Definition at line 109 of file radiation.hpp.

◆ radiance

AthenaArray<Real> Radiation::radiance

Definition at line 110 of file radiation.hpp.

◆ stellarDistance_au_

Real Radiation::stellarDistance_au_
protected

Definition at line 134 of file radiation.hpp.


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