cloudy
trunk
|
#include <radius.h>
Public Member Functions | |
const char * | chName () const |
void | zero () |
void | comment (t_warnings &) |
![]() | |
module () | |
virtual | ~module () |
Data Fields | |
double | rinner |
double | Radius |
double | Radius_mid_zone |
double | drad |
double | drad_mid_zone |
double | depth |
double | depth_mid_zone |
double | Depth2Go |
double | r1r0sq |
double | PI4_rinner_sq |
double | PI4_Radius_sq |
double | drNext |
double | distance |
double | dRadSign |
double | drad_x_fillfac |
double | depth_x_fillfac |
double | darea_x_fillfac |
double | dVeffVol |
double | dVeffAper |
double | dRNeff |
double | dVolOutwrd |
double | dVolReflec |
double | BeamInIn |
double | BeamInOut |
double | BeamOutOut |
bool | lgdR2Small |
bool | lgRadiusKnown |
double | CylindHigh |
bool | lgCylnOn |
double | rdfalt |
realnum | glbden |
realnum | glbrad |
realnum | glbpow |
realnum | glbdst |
bool | lgDrMnOn |
bool | lgPredLumin |
realnum | pirsq |
double | Conv2PrtInten |
double | sdrmin |
double | sdrmax |
double | lgFixed |
double | sdrmin_rel_depth |
bool | lgSdrminRel |
bool | lgSdrmaxRel |
bool | lgSMinON |
bool | lgDR2Big |
realnum | drMinimum |
double | dr_min_last_iter |
double | dr_max_last_iter |
bool | lgDrMinUsed |
realnum | drChange |
realnum | thickness_stromgren |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Implements module.
Definition at line 7 of file radius.cpp.
References CylindHigh, darea_x_fillfac, DEBUG_ENTRY, depth, depth_mid_zone, DEPTH_OFFSET, depth_x_fillfac, distance, drad, drad_mid_zone, drad_x_fillfac, dRadSign, dRNeff, drNext, dVeffAper, dVeffVol, lgCylnOn, lgdR2Small, lgDrMinUsed, lgDrMnOn, lgFixed, lgRadiusKnown, lgSdrmaxRel, lgSdrminRel, lgSMinON, PI4_Radius_sq, PI4_rinner_sq, r1r0sq, Radius, Radius_mid_zone, rdfalt, rinner, sdrmax, sdrmin, sdrmin_rel_depth, and SMALLFLOAT.
double t_radius::BeamInIn |
Beam vars are related to lines where inward and outward fracs known BeamInIn inward part of inwardly directed beam, 0 if sphere
Definition at line 107 of file radius.h.
Referenced by TransitionProxy::outline(), outline_base_bin(), and ZoneStart().
double t_radius::BeamInOut |
BeamInOut outward part of inwardly directed beam, 0 if not sphere
Definition at line 110 of file radius.h.
Referenced by TransitionProxy::outline(), outline_base_bin(), RT_diffuse(), and ZoneStart().
double t_radius::BeamOutOut |
BeamOutOut outward part of outwardly directed beam
Definition at line 113 of file radius.h.
Referenced by outline_base_bin(), RT_diffuse(), and ZoneStart().
double t_radius::Conv2PrtInten |
additive factor to convert stored line intensities within code into a final desired unit, luminosity, flux at Earth, or surface brightness
Definition at line 152 of file radius.h.
Referenced by cdLine_ip(), conorm(), diatomics::getLine(), diatomics::H2_PunchDo(), iter_end_check(), lines_continuum(), optimize_func(), PrintSpectrum(), PrtFinal(), PrtLineSum(), and SaveDo().
double t_radius::CylindHigh |
lgCylnOn set true when cylinder command given cylind is half height in centimeters
Definition at line 125 of file radius.h.
Referenced by ParseCylinder(), zero(), and ZoneStart().
double t_radius::darea_x_fillfac |
darea_x_fillfac is 2pi * radius * drad * filling factor
Definition at line 82 of file radius.h.
Referenced by t_mean::MeanInc(), zero(), and ZoneStart().
double t_radius::depth |
the depth, the distance from the outer edge of current zone to the illuminated face
Definition at line 31 of file radius.h.
Referenced by AbundancesSet(), AbundChange(), ConvTempEdenIoniz(), DynaEndZone(), DynaIonize(), DynaIterEnd(), DynaStartZone(), GetAveVelocity(), GetDopplerWidth(), highen(), iter_end_check(), IterEnd(), lgCheckMonitors(), lindst(), ParseCommands(), PressureChange(), PresTotCurrent(), PrtComment(), radius_first(), radius_increment(), radius_next(), RT_continuum(), RT_line_escape(), RT_line_one_tauinc(), SaveDo(), PresMode::set(), stepDensity(), zero(), zoneDensity(), and ZoneStart().
double t_radius::Depth2Go |
an estimate of the depth to the shielded face
Definition at line 31 of file radius.h.
Referenced by radius_first(), radius_next(), and ZoneStart().
double t_radius::depth_mid_zone |
depth from illuminated face to center of last or current zone
Definition at line 31 of file radius.h.
Referenced by CoolSave(), DynaSave(), diatomics::H2_PunchDo(), matchGeneric(), PrtZone(), save_line(), Save_Line_RT(), SaveDo(), SaveHeat(), SaveSpeciesOne(), zero(), and ZoneStart().
double t_radius::depth_x_fillfac |
integrated dReff, integral of depth times filling factor
Definition at line 79 of file radius.h.
Referenced by lgCheckMonitors(), PrtFinal(), RT_line_fine_opacity(), zero(), and ZoneStart().
double t_radius::distance |
the distance to the object from Earth, set with the distance command
Definition at line 70 of file radius.h.
Referenced by conorm(), optimize_func(), ParseDistance(), PrtFinal(), and zero().
double t_radius::dr_max_last_iter |
Definition at line 182 of file radius.h.
Referenced by DynaIterEnd(), IterStart(), and ZoneStart().
double t_radius::dr_min_last_iter |
min and max dr found in previous iteration
Definition at line 181 of file radius.h.
Referenced by IterStart(), and ZoneStart().
double t_radius::drad |
the thickness of the current zone
Definition at line 31 of file radius.h.
Referenced by ConvInitSolution(), DynaEndZone(), GravitationalPressure(), IterRestart(), IterStart(), PresTotCurrent(), PrtZone(), radius_first(), radius_increment(), radius_next(), RT_continuum(), SaveDo(), zero(), zoneDensity(), and ZoneStart().
double t_radius::drad_mid_zone |
the distance between middle of previous zone and middle of this zone
Definition at line 31 of file radius.h.
Referenced by ConvInitSolution(), IterRestart(), radius_first(), zero(), and ZoneStart().
double t_radius::drad_x_fillfac |
drad_x_fillfac is drad * filling factor
Definition at line 76 of file radius.h.
Referenced by ConvInitSolution(), GravitationalPressure(), diatomics::H2_Colden(), iter_end_check(), IterEnd(), IterStart(), t_mean::MeanInc(), molcol(), radius_first(), radius_increment(), RT_continuum(), RT_line_all_escape(), RT_line_one_tauinc(), RT_line_pumping(), RT_tau_inc(), SaveDo(), zero(), and ZoneStart().
double t_radius::dRadSign |
sign of dr for going in or out, 1 (usually) or -1
Definition at line 73 of file radius.h.
Referenced by GravitationalPressure(), ParseRoberto(), RT_continuum(), zero(), and ZoneStart().
realnum t_radius::drChange |
fractional change used in nextdr
Definition at line 188 of file radius.h.
Referenced by InitDefaultsPreparse(), ParseSet(), radius_first(), and radius_next().
realnum t_radius::drMinimum |
fraction of initial thickness, set in firstdr do not let dr get smaller than this NB - drMinimum not used in code - delete?
Definition at line 178 of file radius.h.
Referenced by radius_first(), and radius_next().
double t_radius::dRNeff |
dRNeff is next dr effective radius
Definition at line 95 of file radius.h.
Referenced by zero(), and ZoneStart().
double t_radius::drNext |
next dr, as set in nextdr
Definition at line 66 of file radius.h.
Referenced by iter_end_check(), IterRestart(), IterStart(), radius_increment(), radius_next(), zero(), and ZoneStart().
double t_radius::dVeffAper |
dVeff is effec vol relative to inner radius this version is affected by the APERTURE SLIT | BEAM commands it should ONLY be used for quantities observed through the aperture if the APERTURE command is not used, dVeffAper and dVeffVol are identical
Definition at line 92 of file radius.h.
Referenced by ConvInitSolution(), diatomics::H2_LinesAdd(), lincom(), lines(), lines_continuum(), lines_general(), lines_grains(), lines_hydro(), lines_molecules(), radius_increment(), SpeciesPseudoContAccum(), zero(), and ZoneStart().
double t_radius::dVeffVol |
dVeff is effec vol relative to inner radius, this version is not affected by the APERTURE command
Definition at line 86 of file radius.h.
Referenced by GravitationalPressure(), t_mean::MeanInc(), radius_increment(), zero(), and ZoneStart().
double t_radius::dVolOutwrd |
dVolOutwrd, dVolReflec, outward and reflected effective vols used to get outward and reflected beams, these include only the vol of the current shell times the covering factor, and a number between 0 and 1 that is the fraction of the beam that goes out or is reflected. this is determined by the rt covering factor
Definition at line 102 of file radius.h.
Referenced by outline_base_bin(), RT_continuum(), RT_diffuse(), and ZoneStart().
double t_radius::dVolReflec |
Definition at line 103 of file radius.h.
Referenced by outline_base_bin(), and ZoneStart().
realnum t_radius::glbden |
variables that deal with the globule command, glbden, the density
Definition at line 133 of file radius.h.
Referenced by ParseGlobule(), radius_next(), and zoneDensity().
realnum t_radius::glbdst |
Definition at line 133 of file radius.h.
Referenced by InitDefaultsPreparse(), IterRestart(), ParseGlobule(), radius_next(), zoneDensity(), and ZoneStart().
realnum t_radius::glbpow |
the globule power
Definition at line 133 of file radius.h.
Referenced by ParseGlobule(), radius_next(), and zoneDensity().
realnum t_radius::glbrad |
the radius for the globule command
Definition at line 133 of file radius.h.
Referenced by InitDefaultsPreparse(), ParseGlobule(), radius_next(), zoneDensity(), and ZoneStart().
bool t_radius::lgCylnOn |
Definition at line 126 of file radius.h.
Referenced by ParseCylinder(), PrtComment(), PrtFinal(), and zero().
bool t_radius::lgDR2Big |
this flag controlled in radius_first and says whether this option caused the first zone to have larger than optimal thickness
Definition at line 173 of file radius.h.
Referenced by PrtComment(), and radius_first().
bool t_radius::lgdR2Small |
flag saying that zone thickness became too small, likely because of an uncontrolled oscillation
Definition at line 117 of file radius.h.
Referenced by iter_end_check(), PrtComment(), zero(), and ZoneStart().
bool t_radius::lgDrMinUsed |
set true is calculations stops because zone thickness gets too small
Definition at line 185 of file radius.h.
Referenced by iter_end_check(), IterRestart(), PrtComment(), radius_next(), and zero().
bool t_radius::lgDrMnOn |
flag to turn off dr checking in dextdr when globule command entered
Definition at line 141 of file radius.h.
Referenced by ParseGlobule(), radius_first(), and zero().
double t_radius::lgFixed |
Definition at line 159 of file radius.h.
Referenced by ParseSet(), radius_next(), and zero().
bool t_radius::lgPredLumin |
lgPredLumin flag set true if intensities entered into st
Definition at line 144 of file radius.h.
Referenced by conorm(), PrtFinal(), PrtHeader(), and ZoneStart().
bool t_radius::lgRadiusKnown |
this says whether radius has been set - if true then can do luminosities, if false then only intensities
Definition at line 121 of file radius.h.
Referenced by conorm(), ParseBackgrd(), ParseBlackbody(), ParseCMB(), ParseCommands(), ParseEnergy(), ParseIntensity(), ParseIonPar(), ParsePhi(), ParseRadius(), ParseTable(), PrtFinal(), and zero().
bool t_radius::lgSdrmaxRel |
Definition at line 166 of file radius.h.
Referenced by ConvInitSolution(), DynaIterEnd(), ParseGlobule(), ParseSet(), radius_first(), radius_next(), and zero().
bool t_radius::lgSdrminRel |
false, then sdrmin/sdrmax are limits to step size in cm, true, then are relative fraction of the current radius
Definition at line 165 of file radius.h.
Referenced by ParseSet(), radius_first(), radius_next(), and zero().
bool t_radius::lgSMinON |
lgSMinON is flag saying that set drmin has been enteed
Definition at line 169 of file radius.h.
Referenced by ParseSet(), radius_first(), and zero().
double t_radius::PI4_Radius_sq |
the area of the outer radius in cm
Definition at line 31 of file radius.h.
Referenced by SaveDo(), zero(), and ZoneStart().
double t_radius::PI4_rinner_sq |
the area of the inner radius in cm
Definition at line 31 of file radius.h.
Referenced by SaveDo(), zero(), and ZoneStart().
realnum t_radius::pirsq |
log of4 pi r_inner^2, 0 if intensities are printed, but is log of 4pi r_o^2 if any luminosity commands are entered
Definition at line 148 of file radius.h.
Referenced by conorm(), PrtFinal(), and PrtHeader().
double t_radius::r1r0sq |
ratio of square of outer edge of current zone to radius of illuminated face of cloud - note continuum is relative to outer edge after ZoneDone is called too
Definition at line 31 of file radius.h.
Referenced by cdSPEC(), cdSPEC2(), iter_end_check(), lines_continuum(), mole_effects(), mole_h_reactions(), pltcon(), PrtComment(), PrtFinal(), radius_increment(), RT_continuum(), sum_radiation(), zero(), zoneDensity(), and ZoneStart().
double t_radius::Radius |
the outer radius of the current zone
Definition at line 31 of file radius.h.
Referenced by AbundancesSet(), AbundChange(), ConvInitSolution(), ConvTempEdenIoniz(), CoolEvaluate(), GravitationalPressure(), highen(), InitSimPostparse(), ion_trim(), ion_trim2(), lgCheckMonitors(), optimize_func(), ParseBackgrd(), ParseBlackbody(), ParseCMB(), ParseCommands(), ParseEnergy(), ParseF_nu(), ParseIntensity(), ParseIonPar(), ParsePhi(), ParseRadius(), ParseTable(), pressureZone(), PresTotCurrent(), PrtComment(), PrtFinal(), radius_first(), radius_increment(), radius_next(), RT_continuum(), SaveDo(), SaveSpecial(), zero(), zoneDensity(), and ZoneStart().
double t_radius::Radius_mid_zone |
the radius, to center of last or current zone
Definition at line 31 of file radius.h.
Referenced by PrtZone(), Save_Line_RT(), SaveDo(), zero(), and ZoneStart().
double t_radius::rdfalt |
default inner radius when none set, log r =25 in scalar
Definition at line 129 of file radius.h.
Referenced by ParseBackgrd(), ParseBlackbody(), ParseCMB(), ParseCommands(), ParseEnergy(), ParseF_nu(), ParseIntensity(), ParseIonPar(), ParsePhi(), ParseTable(), and zero().
double t_radius::rinner |
the inner radius in cm
Definition at line 31 of file radius.h.
Referenced by conorm(), dense_parametric_wind(), GravitationalPressure(), highen(), iter_end_check(), IterEnd(), lgConserveEnergy(), ParseCommands(), pressureZone(), PrtComment(), PrtFinal(), radius_first(), radius_increment(), radius_next(), RT_continuum(), sum_radiation(), zero(), zoneDensity(), and ZoneStart().
double t_radius::sdrmax |
Definition at line 158 of file radius.h.
Referenced by ConvInitSolution(), DynaIterEnd(), ParseGlobule(), ParseSet(), radius_first(), radius_next(), and zero().
double t_radius::sdrmin |
these are 1e-30 and 1e30 by default, and are set with "set dr" cmnds used as one of a pair of limits to how big or small zones get set dr command forces constant dr by setting both to same number
Definition at line 157 of file radius.h.
Referenced by ConvInitSolution(), ParseSet(), radius_first(), radius_next(), and zero().
double t_radius::sdrmin_rel_depth |
Definition at line 161 of file radius.h.
Referenced by ParseSet(), radius_next(), and zero().
realnum t_radius::thickness_stromgren |