Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
t_mesh Class Reference

#include <mesh.h>

Inheritance diagram for t_mesh:

Public Member Functions

void InitMesh (bool lgUnitCell)
 
void ValidateEdges () const
 
void CheckMesh () const
 
bool lgMeshSetUp () const
 
long ncells () const
 
double emm () const
 
double egamry () const
 
double getResolutionScaleFactor () const
 
void setResolutionScaleFactor (double fac)
 
string mesh_md5sum () const
 
const double * anuptr () const
 
double anu (size_t i) const
 
double anu2 (size_t i) const
 
double anu3 (size_t i) const
 
double anuln (size_t i) const
 
const double * anulog10ptr () const
 
double anulog10 (size_t i) const
 
double anusqrt (size_t i) const
 
double anumin (size_t i) const
 
double anumax (size_t i) const
 
double widflx (size_t i) const
 
size_t ipointC (double anu) const
 
size_t ipointF (double anu) const
 
size_t ithreshC (double threshold) const
 
size_t ithreshF (double threshold) const
 
bool isEnergyBound (Energy en) const
 
 t_mesh ()
 

Private Member Functions

void p_ReadResolution ()
 
void p_SetupMesh (bool lgUnitCell)
 
void p_SetupEdges ()
 

Private Attributes

double p_emm
 
double p_egamry
 
double p_ResolutionScaleFactor
 
string p_mesh_md5sum
 
vector< double > p_RangeUpperLimit
 
vector< double > p_RangeResolution
 
vector< Energyp_edges
 
vector< double > p_anu
 
vector< double > p_anu_edge
 
vector< double > p_widflx
 
vector< double > p_anulog10
 
vector< double > p_anuln
 
vector< double > p_anusqrt
 
vector< double > p_anu2
 
vector< double > p_anu3
 

Constructor & Destructor Documentation

t_mesh::t_mesh ( )
inline

Member Function Documentation

double t_mesh::anu ( size_t  i) const
inline

References p_anu.

Referenced by AGN_Hemis(), CalcTwoPhotonRates(), ContCreateMesh(), ContCreatePointers(), ContNegative(), ContRate(), ContSetIntensity(), ConvInitSolution(), CoolEvaluate(), EdenChange(), eeBremsSpectrum(), extin(), ffun1(), flxCell(), GammaBn(), GammaK(), GammaPrt(), GetDissociationRateCoeff(), diatomics::GetHeatRate(), GrainDrift(), GrainIonColl(), GrainMakeDiffuse(), GrainMakeDiffuseSingle(), GrainRateDr(), GrainsInit(), IncidentContinuumHere(), InitBinAugerData(), InterpolateGridCoStar(), InterpolateRectGrid(), ion_collis(), ion_trim(), ion_trim_init(), ipShells(), iso_collide(), iso_rad_rec_cooling_discrete(), IterRestart(), lgReadAtmosphereTail(), lincom(), lindst1(), lines_continuum(), mie_calc_ial(), mie_read_opc(), mie_write_opc(), mole_h_reactions(), OpacityAddTotal(), diatomics::OpacityCreate(), OpacityCreate1Element(), OpacityCreateAll(), OpacityCreatePowerLaw(), OpacityCreateReilMan(), outline_base(), outsum(), PE_init(), pintr(), PlanckIntegral(), plankf(), pnegopc(), PresTotCurrent(), PrettyTransmission(), PrtComment(), PrtFinal(), PrtHeader(), punchFITS_GenericData(), qheat(), qheat_init(), qintr(), ReadTable(), RebinAtmosphere(), RebinSingleCell(), RT_continuum(), RT_DestProb(), RT_diffuse(), RT_iso_integrate_RRC(), RT_line_one_tauinc(), RT_OTS_ChkSum(), RT_OTS_PrtRate(), RT_recom_effic(), RT_tau_init(), SanityCheckBegin(), save_opacity(), SaveDo(), saveFITSfile(), SaveSpecial(), t_rfield::setTrimming(), sum_radiation(), sumcon(), tauff(), tfidle(), TwoPhotonSetup(), UpdatePot(), y0b(), and y0b01().

double t_mesh::anu3 ( size_t  i) const
inline

References p_anu3.

Referenced by PlanckIntegral().

double t_mesh::anuln ( size_t  i) const
inline

References p_anuln.

Referenced by eeBremsSpectrum().

double t_mesh::anulog10 ( size_t  i) const
inline

References p_anulog10.

const double* t_mesh::anulog10ptr ( ) const
inline

References get_ptr(), and p_anulog10.

Referenced by t_gaunt::brems_opac(), and t_gaunt::p_setup_brems().

Here is the call graph for this function:

const double* t_mesh::anuptr ( ) const
inline

References get_ptr(), and p_anu.

Referenced by GammaK(), GrainCharge(), GrainTemperature(), lgReadAtmosphereTail(), mie_calc_ial(), mie_write_opc(), and UpdatePot1().

Here is the call graph for this function:

double t_mesh::anusqrt ( size_t  i) const
inline

References p_anusqrt.

Referenced by OpacityCreateAll().

void t_mesh::CheckMesh ( ) const

References anumax(), anumin(), ASSERT, cdEXIT, DEBUG_ENTRY, egamry(), emm(), energy(), EXIT_FAILURE, fp_equal(), fprintf(), ioQQQ, ipointC(), ncells(), p_anu, and p_RangeUpperLimit.

Referenced by SanityCheckBegin().

Here is the call graph for this function:

double t_mesh::getResolutionScaleFactor ( ) const
inline

References p_ResolutionScaleFactor.

Referenced by conorm(), mie_write_opc(), and SaveDo().

void t_mesh::InitMesh ( bool  lgUnitCell)
inline

References lgMeshSetUp(), MD5datafile(), p_egamry, p_emm, p_mesh_md5sum, p_ReadResolution(), p_SetupEdges(), p_SetupMesh(), and Energy::Ryd().

Referenced by cdDrive().

Here is the call graph for this function:

size_t t_mesh::ipointC ( double  anu) const
inline

References ASSERT, hunt_bisect(), lgMeshSetUp(), and p_anu_edge.

Referenced by CheckMesh(), ffun1(), GrainCharge(), ipointF(), ParseTable(), pintr(), qheat_init(), qintr(), and saveFITSfile().

Here is the call graph for this function:

size_t t_mesh::ipointF ( double  anu) const
inline

References ipointC().

Referenced by ipoint().

Here is the call graph for this function:

bool t_mesh::isEnergyBound ( Energy  en) const
inline

References egamry(), emm(), and Energy::Ryd().

Referenced by atmdat_CHIANTI_readin(), atmdat_LAMDA_readin(), atmdat_STOUT_readin(), ContCreatePointers(), and iso_create().

Here is the call graph for this function:

size_t t_mesh::ithreshC ( double  threshold) const
inline

References ASSERT, hunt_bisect(), lgMeshSetUp(), and p_anu.

Referenced by eeBremsSpectrum(), GrainsInit(), ithreshF(), UpdatePot1(), and y0b().

Here is the call graph for this function:

size_t t_mesh::ithreshF ( double  threshold) const
inline

References ithreshC().

Here is the call graph for this function:

bool t_mesh::lgMeshSetUp ( ) const
inline
string t_mesh::mesh_md5sum ( ) const
inline
long t_mesh::ncells ( ) const
inline

References p_anu.

Referenced by cdDrive(), CheckMesh(), and ContCreateMesh().

void t_mesh::p_ReadResolution ( )
private
void t_mesh::p_SetupEdges ( )
private

References DEBUG_ENTRY, and p_edges.

Referenced by InitMesh().

void t_mesh::p_SetupMesh ( bool  lgUnitCell)
private
void t_mesh::setResolutionScaleFactor ( double  fac)
inline

References ASSERT, fp_equal(), lgMeshSetUp(), and p_ResolutionScaleFactor.

Referenced by cdRead().

Here is the call graph for this function:

void t_mesh::ValidateEdges ( ) const

Member Data Documentation

vector<double> t_mesh::p_anu
private

energy in Ryd of center of cell

Referenced by anu(), anuptr(), CheckMesh(), ithreshC(), lgMeshSetUp(), ncells(), and p_SetupMesh().

vector<double> t_mesh::p_anu2
private

Referenced by anu2(), and p_SetupMesh().

vector<double> t_mesh::p_anu3
private

Referenced by anu3(), and p_SetupMesh().

vector<double> t_mesh::p_anu_edge
private

energy in Ryd at the edges of each cell

Referenced by anumax(), anumin(), ipointC(), and p_SetupMesh().

vector<double> t_mesh::p_anuln
private

Referenced by anuln(), and p_SetupMesh().

vector<double> t_mesh::p_anulog10
private

these are log, sqrt, square, and cube of anu array

Referenced by anulog10(), anulog10ptr(), and p_SetupMesh().

vector<double> t_mesh::p_anusqrt
private

Referenced by anusqrt(), and p_SetupMesh().

vector<Energy> t_mesh::p_edges
private

a list of major ionization edges that need to be fiddled into the frequency mesh

Referenced by p_ReadResolution(), p_SetupEdges(), and ValidateEdges().

double t_mesh::p_egamry
private

the energy of the upper limit high-energy limit of the continuum

Referenced by egamry(), InitMesh(), p_ReadResolution(), and t_mesh().

double t_mesh::p_emm
private

================================================================================= the following define the continuum energy scale and its limits the energy of the lower limit low-energy limit of the continuum

Referenced by emm(), InitMesh(), p_SetupMesh(), and t_mesh().

string t_mesh::p_mesh_md5sum
private

MD5 sum of the continuum_mesh.ini file

Referenced by InitMesh(), and mesh_md5sum().

vector<double> t_mesh::p_RangeResolution
private

Referenced by p_ReadResolution(), and p_SetupMesh().

vector<double> t_mesh::p_RangeUpperLimit
private

this is information needed to set the energy binning, full continuum is described by series of ranges where resolution is constant over that range

Referenced by CheckMesh(), p_ReadResolution(), and p_SetupMesh().

double t_mesh::p_ResolutionScaleFactor
private

factor to reset continuum resolution from continuum_mesh.ini, default is unity, reset with set continuum resolution command

Referenced by getResolutionScaleFactor(), p_ReadResolution(), p_SetupMesh(), setResolutionScaleFactor(), and t_mesh().

vector<double> t_mesh::p_widflx
private

width of cells in Rydberg

Referenced by p_SetupMesh(), and widflx().


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