cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes
t_mesh Class Reference

#include <mesh.h>

Inheritance diagram for t_mesh:
Inheritance graph
[legend]
Collaboration diagram for t_mesh:
Collaboration graph
[legend]

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
 
 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
 

Detailed Description

Definition at line 10 of file mesh.h.

Constructor & Destructor Documentation

t_mesh::t_mesh ( )
inline

Definition at line 191 of file mesh.h.

References p_egamry, p_emm, and p_ResolutionScaleFactor.

Member Function Documentation

double t_mesh::anu ( size_t  i) const
inline

Definition at line 120 of file mesh.h.

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(), lgCompileAtmosphere(), lgValidMesh(), 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(), pltcon(), 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::anu2 ( size_t  i) const
inline
double t_mesh::anu3 ( size_t  i) const
inline

Definition at line 128 of file mesh.h.

References p_anu3.

Referenced by PlanckIntegral().

double t_mesh::anuln ( size_t  i) const
inline

Definition at line 132 of file mesh.h.

References p_anuln.

Referenced by eeBremsSpectrum().

double t_mesh::anulog10 ( size_t  i) const
inline

Definition at line 140 of file mesh.h.

References p_anulog10.

Referenced by pltcon(), and pltopc().

const double* t_mesh::anulog10ptr ( ) const
inline

Definition at line 136 of file mesh.h.

References get_ptr(), and p_anulog10.

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

Here is the call graph for this function:

double t_mesh::anumax ( size_t  i) const
inline
double t_mesh::anumin ( size_t  i) const
inline
const double* t_mesh::anuptr ( ) const
inline

Definition at line 116 of file mesh.h.

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

Definition at line 144 of file mesh.h.

References p_anusqrt.

Referenced by OpacityCreateAll().

void t_mesh::CheckMesh ( ) const

Definition at line 322 of file mesh.cpp.

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::egamry ( ) const
inline
double t_mesh::emm ( ) const
inline
double t_mesh::getResolutionScaleFactor ( ) const
inline
void t_mesh::InitMesh ( bool  lgUnitCell)
inline

Definition at line 63 of file mesh.h.

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

Definition at line 161 of file mesh.h.

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

Definition at line 168 of file mesh.h.

References ipointC().

Referenced by ipoint().

Here is the call graph for this function:

size_t t_mesh::ithreshC ( double  threshold) const
inline

Definition at line 174 of file mesh.h.

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

Definition at line 185 of file mesh.h.

References ithreshC().

Here is the call graph for this function:

bool t_mesh::lgMeshSetUp ( ) const
inline

Definition at line 84 of file mesh.h.

References p_anu.

Referenced by ContCreateMesh(), InitMesh(), ipointC(), ithreshC(), ParseCompile(), setResolutionScaleFactor(), and tfidle().

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

Definition at line 89 of file mesh.h.

References p_anu.

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

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

Definition at line 230 of file mesh.cpp.

References DEBUG_ENTRY, and p_edges.

Referenced by InitMesh().

void t_mesh::p_SetupMesh ( bool  lgUnitCell)
private

Definition at line 145 of file mesh.cpp.

References ASSERT, DEBUG_ENTRY, fprintf(), ioQQQ, t_trace::lgTrace, p_anu, p_anu2, p_anu3, p_anu_edge, p_anuln, p_anulog10, p_anusqrt, p_emm, p_RangeResolution, p_RangeUpperLimit, p_ResolutionScaleFactor, p_widflx, pow2(), pow3(), and trace.

Referenced by InitMesh().

Here is the call graph for this function:

void t_mesh::setResolutionScaleFactor ( double  fac)
inline

Definition at line 105 of file mesh.h.

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

Referenced by cdRead().

Here is the call graph for this function:

void t_mesh::ValidateEdges ( ) const

Definition at line 274 of file mesh.cpp.

References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, ipH1s, ipH2s, ipH_LIKE, ipHe1s1S, ipHE_LIKE, ipHELIUM, ipHYDROGEN, iso_sp, t_opac::o3exc, t_opac::o3exc3, opac, and p_edges.

Referenced by SanityCheckBegin().

Here is the call graph for this function:

double t_mesh::widflx ( size_t  i) const
inline

Field Documentation

vector<double> t_mesh::p_anu
private

energy in Ryd of center of cell

Definition at line 38 of file mesh.h.

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

vector<double> t_mesh::p_anu2
private

Definition at line 50 of file mesh.h.

Referenced by anu2(), and p_SetupMesh().

vector<double> t_mesh::p_anu3
private

Definition at line 51 of file mesh.h.

Referenced by anu3(), and p_SetupMesh().

vector<double> t_mesh::p_anu_edge
private

energy in Ryd at the edges of each cell

Definition at line 41 of file mesh.h.

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

vector<double> t_mesh::p_anuln
private

Definition at line 48 of file mesh.h.

Referenced by anuln(), and p_SetupMesh().

vector<double> t_mesh::p_anulog10
private

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

Definition at line 47 of file mesh.h.

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

vector<double> t_mesh::p_anusqrt
private

Definition at line 49 of file mesh.h.

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

Definition at line 35 of file mesh.h.

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

Definition at line 19 of file mesh.h.

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

Definition at line 16 of file mesh.h.

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

string t_mesh::p_mesh_md5sum
private

MD5 sum of the continuum_mesh.ini file

Definition at line 26 of file mesh.h.

Referenced by InitMesh(), and mesh_md5sum().

vector<double> t_mesh::p_RangeResolution
private

Definition at line 32 of file mesh.h.

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

Definition at line 31 of file mesh.h.

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

Definition at line 23 of file mesh.h.

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

vector<double> t_mesh::p_widflx
private

width of cells in Rydberg

Definition at line 44 of file mesh.h.

Referenced by p_SetupMesh(), and widflx().


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