cloudy
trunk
|
#include <mesh.h>
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< Energy > | p_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 |
|
inline |
Definition at line 182 of file mesh.h.
References MD5datafile(), p_egamry, p_emm, p_mesh_md5sum, p_ResolutionScaleFactor, and Energy::Ryd().
|
inline |
Definition at line 111 of file mesh.h.
References p_anu.
Referenced by AGN_Hemis(), CalcTwoPhotonRates(), cdSPEC(), ContCreateMesh(), ContCreatePointers(), ContNegative(), ContRate(), ContSetIntensity(), ConvInitSolution(), CoolEvaluate(), EdenChange(), eeBremsSpectrum(), extin(), ffun1(), GammaBn(), GammaK(), GammaPrt(), GetDissociationRateCoeff(), diatomics::GetHeatRate(), GrainDrift(), GrainIonColl(), GrainMakeDiffuse(), GrainMakeDiffuseSingle(), GrainRateDr(), GrainsInit(), GridGatherInCloudy(), IncidentContinuumHere(), InitBinAugerData(), InterpolateGridCoStar(), InterpolateRectGrid(), ion_collis(), ion_trim(), ion_trim_init(), ipShells(), iso_collide(), iso_rad_rec_cooling_discrete(), IterRestart(), lgCompileAtmosphere(), 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(), SaveNewContinuum(), SaveSpecial(), t_rfield::setTrimming(), sum_radiation(), sumcon(), tauff(), tfidle(), TwoPhotonSetup(), UpdatePot(), ValidateMesh(), y0b(), and y0b01().
|
inline |
Definition at line 115 of file mesh.h.
References p_anu2.
Referenced by AGN_Hemis(), cdSPEC(), ContCreatePointers(), ContSetIntensity(), eeBremsSpectrum(), GrainMakeDiffuse(), highen(), iso_rad_rec_cooling_discrete(), lines_continuum(), pltcon(), qheat(), RT_diffuse(), RT_iso_integrate_RRC(), SaveDo(), SaveSpecial(), and sumcon().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 127 of file mesh.h.
References get_ptr(), and p_anulog10.
Referenced by t_gaunt::brems_opac(), t_gaunt::p_setup_brems(), pltcon(), and pltopc().
|
inline |
Definition at line 143 of file mesh.h.
References p_anu_edge.
Referenced by CheckMesh(), ContBandsCreate(), ContSetIntensity(), EdenChange(), ffun1(), FindStrongestLineLabels(), GammaBn(), iso_rad_rec_cooling_discrete(), PrtHeader(), punchFITS_EnergyData(), qheat_init(), RebinAtmosphere(), RebinSingleCell(), RT_iso_integrate_RRC(), TryDoubleStep(), and TwoPhotonSetup().
|
inline |
Definition at line 139 of file mesh.h.
References p_anu_edge.
Referenced by CheckMesh(), ContBandsCreate(), ContSetIntensity(), EdenChange(), FindStrongestLineLabels(), GammaBn(), iso_rad_rec_cooling_discrete(), PrtHeader(), punchFITS_EnergyData(), RebinAtmosphere(), RebinSingleCell(), RT_iso_integrate_RRC(), tfidle(), and TryDoubleStep().
|
inline |
Definition at line 107 of file mesh.h.
References get_ptr(), and p_anu.
Referenced by GammaK(), GrainCharge(), GrainTemperature(), lgReadAtmosphereTail(), mie_calc_ial(), mie_write_opc(), and UpdatePot1().
|
inline |
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().
|
inline |
Definition at line 88 of file mesh.h.
References p_egamry.
Referenced by t_PredCont::add(), CheckMesh(), dgaunt_check(), ffun1(), GrainsInit(), GridGatherInCloudy(), InitDefaultsPreparse(), InitGridBin(), ipoint(), lgCompileAtmosphere(), lgValidBinFile(), mie_read_opc(), mie_write_opc(), outline_base(), EnergyEntry::p_set_ip(), ParseAbsMag(), ParseBackgrd(), ParseBlackbody(), ParseCMB(), ParseEnergy(), ParseInterp(), ParseLuminosity(), ParsePlotRangeContin(), ParseRangeOption(), ParseRatio(), ParseSave(), ParseSet(), ParseStop(), ParseTable(), PrtHeader(), ReadTable(), and SaveDo().
|
inline |
Definition at line 84 of file mesh.h.
References p_emm.
Referenced by t_PredCont::add(), atmdat_LAMDA_readin(), CheckMesh(), ContCreatePointers(), dgaunt_check(), ffun1(), GrainsInit(), HyperfineCreate(), InitGridBin(), ipoint(), lgCompileAtmosphere(), lgValidBinFile(), mie_read_opc(), mie_write_opc(), outline_base(), EnergyEntry::p_set_ip(), ParseAbsMag(), ParseBackgrd(), ParseBlackbody(), ParseCMB(), ParseDatabaseISO(), ParseEnergy(), ParseInterp(), ParseLuminosity(), ParsePlotRangeContin(), ParseRangeOption(), ParseRatio(), ParseSave(), ParseSet(), ParseStop(), ParseTable(), qheat_init(), ReadTable(), resetBltin(), rfield_opac_malloc(), and SaveDo().
|
inline |
Definition at line 92 of file mesh.h.
References p_ResolutionScaleFactor.
Referenced by conorm(), InitGridASCII(), lgCompileAtmosphere(), lgValidBinFile(), mie_write_opc(), and SaveDo().
|
inline |
Definition at line 63 of file mesh.h.
References lgMeshSetUp(), p_ReadResolution(), p_SetupEdges(), and p_SetupMesh().
Referenced by cdDrive().
|
inline |
Definition at line 152 of file mesh.h.
References ASSERT, hunt_bisect(), lgMeshSetUp(), and p_anu_edge.
Referenced by CheckMesh(), ffun1(), GrainCharge(), ipointF(), ParseTable(), pintr(), qheat_init(), and qintr().
|
inline |
|
inline |
Definition at line 165 of file mesh.h.
References ASSERT, hunt_bisect(), lgMeshSetUp(), and p_anu.
Referenced by eeBremsSpectrum(), GrainsInit(), ithreshF(), UpdatePot1(), and y0b().
|
inline |
Definition at line 176 of file mesh.h.
References ithreshC().
|
inline |
Definition at line 75 of file mesh.h.
References p_anu.
Referenced by ContCreateMesh(), InitMesh(), ipointC(), ithreshC(), ParseCompile(), setResolutionScaleFactor(), and tfidle().
|
inline |
Definition at line 103 of file mesh.h.
References p_mesh_md5sum.
Referenced by InitGridBin(), lgCompileAtmosphere(), lgValidBinFile(), mie_read_opc(), mie_write_opc(), ReadTable(), and SaveDo().
|
inline |
Definition at line 80 of file mesh.h.
References p_anu.
Referenced by cdDrive(), CheckMesh(), and ContCreateMesh().
|
private |
Definition at line 11 of file mesh.cpp.
References ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, FFmtRead(), fp_equal(), fp_equal_tol(), fprintf(), INPUT_LINE_LENGTH, ioQQQ, t_trace::lgTrace, open_data(), p_edges, p_egamry, p_RangeResolution, p_RangeUpperLimit, p_ResolutionScaleFactor, read_whole_line(), and trace.
Referenced by InitMesh().
|
private |
Definition at line 230 of file mesh.cpp.
References DEBUG_ENTRY, and p_edges.
Referenced by InitMesh().
|
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().
|
inline |
Definition at line 96 of file mesh.h.
References ASSERT, fp_equal(), lgMeshSetUp(), and p_ResolutionScaleFactor.
Referenced by cdRead().
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().
|
inline |
Definition at line 147 of file mesh.h.
References p_widflx.
Referenced by AGN_Hemis(), cdSPEC(), ContBandsCreate(), ContCreatePointers(), ContRate(), ContSetIntensity(), eeBremsSpectrum(), GammaBn(), GrainMakeDiffuse(), GrainRateDr(), IncidentContinuumHere(), iso_rad_rec_cooling_discrete(), lincom(), lines_continuum(), t_gaunt::p_setup_brems(), pintr(), PlanckIntegral(), pltcon(), PrettyTransmission(), PrtFinal(), PrtHeader(), PrtTwoPhotonEmissCoef(), qheat(), qheat_init(), qintr(), RT_diffuse(), RT_iso_integrate_RRC(), SaveDo(), SaveSpecial(), t_rfield::setTrimming(), tauff(), tfidle(), and TwoPhotonSetup().
|
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().
|
private |
Definition at line 50 of file mesh.h.
Referenced by anu2(), and p_SetupMesh().
|
private |
Definition at line 51 of file mesh.h.
Referenced by anu3(), and p_SetupMesh().
|
private |
|
private |
Definition at line 48 of file mesh.h.
Referenced by anuln(), and p_SetupMesh().
|
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().
|
private |
Definition at line 49 of file mesh.h.
Referenced by anusqrt(), and p_SetupMesh().
|
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().
|
private |
the energy of the upper limit high-energy limit of the continuum
Definition at line 19 of file mesh.h.
Referenced by egamry(), p_ReadResolution(), and t_mesh().
|
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(), p_SetupMesh(), and t_mesh().
|
private |
MD5 sum of the continuum_mesh.ini file
Definition at line 26 of file mesh.h.
Referenced by mesh_md5sum(), and t_mesh().
|
private |
Definition at line 32 of file mesh.h.
Referenced by p_ReadResolution(), and p_SetupMesh().
|
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().
|
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().
|
private |
width of cells in Rydberg
Definition at line 44 of file mesh.h.
Referenced by p_SetupMesh(), and widflx().