| cloudy
    trunk
    | 
#include <mean.h>


| Public Member Functions | |
| t_mean () | |
| void | zero () | 
| void | comment (t_warnings &) | 
| const char * | chName () const | 
| void | MeanInc () | 
| void | MeanIon (char chType, long nelem, long dim, long *n, realnum arlog[], bool lgDensity) const | 
|  Public Member Functions inherited from module | |
| module () | |
| virtual | ~module () | 
| Data Fields | |
| 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 | 
used to store information for mean ionization and electron temperature
| t_mean::t_mean | ( | ) | 
Definition at line 18 of file mean.cpp.
References multi_arr< T, d, ALLOC, lgBC >::alloc(), multi_arr< T, d, ALLOC, lgBC >::clone(), DEBUG_ENTRY, LIMELM, max(), multi_arr< T, d, ALLOC, lgBC >::reserve(), TempB_HarMean, TempEdenMean, TempH_21cmSpinMean, TempHarMean, TempIonEdenMean, TempIonMean, TempMean, xIonEdenMean, and xIonMean.

| 
 | inlinevirtual | 
| 
 | inlinevirtual | 
| void t_mean::MeanInc | ( | ) | 
MeanInc update the running averages
Definition at line 71 of file mean.cpp.
References t_radius::darea_x_fillfac, DEBUG_ENTRY, dense, t_radius::drad_x_fillfac, t_radius::dVeffVol, t_dense::eden, t_dense::gas_phase, t_hmi::H2_total, hmi, hyperfine, ipHYDROGEN, LIMELM, magnetic, max(), phycon, t_magnetic::pressure, radius, SDIV(), SMALLFLOAT, t_phycon::te, TempB_HarMean, TempEdenMean, TempH_21cmSpinMean, TempHarMean, TempIonEdenMean, TempIonMean, TempMean, t_hyperfine::Tspin21cm, t_dense::xIonDense, xIonEdenMean, and xIonMean.
Referenced by radius_increment().

| 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 | 
Definition at line 151 of file mean.cpp.
References DEBUG_ENTRY, dense, fprintf(), ioQQQ, t_dense::lgElmtOn, max(), SMALLFLOAT, TempIonEdenMean, TempIonMean, TotalInsanity(), xIonEdenMean, and xIonMean.
Referenced by cdIonFrac(), cdTemp(), and PrtMeanIon().

| 
 | virtual | 
MeanZero zero mean of ionization fractions array
Implements module.
Definition at line 50 of file mean.cpp.
References DEBUG_ENTRY, TempB_HarMean, TempEdenMean, TempH_21cmSpinMean, TempHarMean, TempIonEdenMean, TempIonMean, TempMean, xIonEdenMean, xIonMean, and multi_arr< T, d, ALLOC, lgBC >::zero().
Referenced by IterStart().

| multi_arr<double,2> t_mean::TempB_HarMean | 
| multi_arr<double,2> t_mean::TempEdenMean | 
| multi_arr<double,2> t_mean::TempH_21cmSpinMean | 
| multi_arr<double,2> t_mean::TempHarMean | 
| multi_arr<double,4> t_mean::TempIonEdenMean | 
| multi_arr<double,4> t_mean::TempIonMean | 
| multi_arr<double,2> t_mean::TempMean | 
| multi_arr<double,4> t_mean::xIonEdenMean | 
| 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)
Definition at line 17 of file mean.h.
Referenced by cdColm(), MeanInc(), MeanIon(), PrtFinal(), SaveDo(), SaveResults(), t_mean(), and zero().
 1.8.5
 1.8.5