Cloudy Data Archive|
Cloudy
Spectral Synthesis Code for Astrophysics
|
#include <mean.h>


Public Member Functions | |
| t_mean () | |
| void | zero () |
| void | comment (t_warnings &) |
| const char * | chName () const |
| void | setup_molecules () |
| void | MeanInc () |
| void | MeanIon (char chType, long nelem, long dim, long *n, realnum arlog[], bool lgDensity) const |
| bool | MeanMoleculeTemp (const string &chSpecies, long dim, double &TeMean) |
| Public Member Functions inherited from module | |
| module () | |
| virtual | ~module () |
Public Attributes | |
| multi_arr< double, 4 > | xIonMean |
| multi_arr< double, 4 > | xIonEdenMean |
| multi_arr< double, 4 > | TempIonMean |
| multi_arr< double, 4 > | TempIonEdenMean |
| multi_arr< double, 2 > | TempB_HarMean |
| multi_arr< double, 2 > | TempHarMean |
| multi_arr< double, 2 > | TempH_21cmSpinMean |
| multi_arr< double, 2 > | TempMean |
| multi_arr< double, 2 > | TempEdenMean |
| map< string, multi_arr< double, 2 > > | molecules |
used to store information for mean ionization and electron temperature
| t_mean::t_mean | ( | ) |
|
inlinevirtual |
Implements module.
|
inlinevirtual |
Implements module.
| void t_mean::MeanInc | ( | ) |
MeanInc update the running averages
References DEBUG_ENTRY, dense, hmi, hyperfine, ipHYDROGEN, LIMELM, magnetic, max(), mean, phycon, radius, SDIV(), SMALLFLOAT, and species_gasphase_density().

| void t_mean::MeanIon | ( | char | chType, |
| long | nelem, | ||
| long | dim, | ||
| long * | n, | ||
| realnum | arlog[], | ||
| bool | lgDensity ) const |
MeanIon do mean of ionization fractions of any element
| chType | either 'i' or 't' for ionization or temperature |
| nelem | atomic number on physical, no c, scale |
| dim | type of average: 0=radius, 1=area, 2=volume |
| *n | this will say how many of arlog have non-zero values |
| arlog[] | array of values, log both cases |
| lgDensity | true, include electron density, false do not |
References DEBUG_ENTRY, dense, fprintf(), ioQQQ, max(), mean, SMALLFLOAT, and TotalInsanity().

| bool t_mean::MeanMoleculeTemp | ( | const string & | chSpecies, |
| long | dim, | ||
| double & | TeMean ) |
MeanMoleculeTemp - compute mean temperature of molecular species
| chSpecies | [in] species label |
| dim | [in] type of average: 0=radius, 1=area, 2=volume |
| TeMean | [out] mean temperature of molecule |
References chSpecies, DEBUG_ENTRY, max(), mean, mole, and SMALLFLOAT.

| void t_mean::setup_molecules | ( | ) |
setup_molecules - Allocate memory for molecular species
References DEBUG_ENTRY, getMolecules(), and mean.

|
virtual |
MeanZero zero mean of ionization fractions array
Implements module.
References DEBUG_ENTRY, and mean.
| map<string, multi_arr<double,2> > t_mean::molecules |
| multi_arr<double,2> t_mean::TempB_HarMean |
mean B weighted by n(H0) / T as in 21 cm measures
| multi_arr<double,2> t_mean::TempEdenMean |
used to get mean temp weighted by eden
| multi_arr<double,2> t_mean::TempH_21cmSpinMean |
this is mean of computed 21 cm spin temperature
| multi_arr<double,2> t_mean::TempHarMean |
this is used to get the harmonic mean temperature with respect to atomic hydrogen density, for comparison with 21cm data
| multi_arr<double,4> t_mean::TempIonEdenMean |
following includes electron density
| multi_arr<double,4> t_mean::TempIonMean |
TempIonMean[dim][nelem][stage][n] dim = 0 is radius integration, 1=area integration, 2=vol integration n=0 for Sum(quant*norm) and n=1 for Sum(norm)
| multi_arr<double,2> t_mean::TempMean |
used to get mean temp
| multi_arr<double,4> t_mean::xIonEdenMean |
following includes electron density
| multi_arr<double,4> t_mean::xIonMean |
xIonMean[dim][nelem][ion][n] dim = 0 is radius integration, 1=area integration, 2=vol integration n=0 for Sum(quant*norm) and n=1 for Sum(norm)