#include "cddefines.h"
#include "physconst.h"
#include "radius.h"
#include "dense.h"
#include "hyperfine.h"
#include "magnetic.h"
#include "hmi.h"
#include "phycon.h"
#include "geometry.h"
#include "mean.h"
Include dependency graph for mean.cpp:
Go to the source code of this file.
Defines | |
#define | NAVER 20 |
Functions | |
void | MeanInc (void) |
void | MeanZero (void) |
void | MeanIonRadius (char chType, long int nelem, long int *n, realnum arlog[], bool lgDensity) |
void | MeanIonVolume (char chType, long int nelem, long int *n, realnum arlog[], bool lgDensity) |
void | aver (const char *chWhat, double quan, double weight, const char *chLabl) |
#define NAVER 20 |
Referenced by aver().
void aver | ( | const char * | chWhat, | |
double | quan, | |||
double | weight, | |||
const char * | chLabl | |||
) |
aver compute average of various quantities over the computed geometry called by startenditer to initialize, radinc to increment, and prtfinal for final results
*chWhat | ||
quan | ||
weight | ||
*chLabl |
Definition at line 585 of file mean.cpp.
References cdEXIT, DEBUG_ENTRY, t_radius::drad_x_fillfac, t_radius::dVeff, geometry, ioQQQ, t_geometry::lgSphere, NAVER, PrintEfmt(), radius, and ShowMe().
Here is the call graph for this function:
void MeanInc | ( | void | ) |
mean derive mean ionization fractions over computed EXTERN structure
Definition at line 21 of file mean.cpp.
References DEBUG_ENTRY, dense, t_radius::drad_x_fillfac, t_radius::dVeff, t_dense::eden, t_dense::gas_phase, t_hmi::H2_total, hmi, hyperfine, ipHYDROGEN, LIMELM, mean, phycon, radius, SMALLFLOAT, t_phycon::te, t_mean::TempEdenMeans, t_mean::TempEdenMeansNorm, t_mean::TempMeans, t_mean::TempMeansNorm, t_hyperfine::Tspin21cm, t_dense::xIonDense, t_mean::xIonEdenMeans, t_mean::xIonEdenMeansNorm, t_mean::xIonMeans, and t_mean::xIonMeansNorm.
void MeanIonRadius | ( | char | chType, | |
long int | nelem, | |||
long int * | n, | |||
realnum | arlog[], | |||
bool | lgDensity | |||
) |
MeanIonRadius derive mean ionization fractions over ravius for some element
chType | either 'i' or 't' for ionization or temperature | |
nelem | atomic number on physical, no c, scale | |
*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 315 of file mean.cpp.
References ASSERT, DEBUG_ENTRY, dense, t_dense::lgElmtOn, MAX2, mean, and t_mean::xIonMeans.
Referenced by cdIonFrac(), and cdTemp().
void MeanIonVolume | ( | char | chType, | |
long int | nelem, | |||
long int * | n, | |||
realnum | arlog[], | |||
bool | lgDensity | |||
) |
MeanIonVolume do volume mean of ionization fractions over volume of any element
chType | either 'i' or 't' for ionization or temperature | |
nelem | atomic number on physical, no c, scale | |
*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 446 of file mean.cpp.
References ASSERT, DEBUG_ENTRY, dense, t_dense::lgElmtOn, MAX2, mean, and t_mean::xIonMeans.
Referenced by cdIonFrac(), cdTemp(), and PrtMeanIon().
void MeanZero | ( | void | ) |
MeanZero zero mean of ionization fractions array
Definition at line 212 of file mean.cpp.
References t_mean::B_HarMeanTempRadius, DEBUG_ENTRY, t_mean::H2MeanTempRadius, t_mean::H2MeanTempVolume, t_mean::H_21cm_spin_mean_radius, t_mean::HarMeanTempRadius, t_mean::HarMeanTempVolume, LIMELM, MALLOC, MAX2, mean, t_mean::TempEdenMeans, t_mean::TempEdenMeansNorm, t_mean::TempMeanRadius, t_mean::TempMeans, t_mean::TempMeansNorm, t_mean::TempMeanVolume, t_mean::xIonEdenMeans, t_mean::xIonEdenMeansNorm, t_mean::xIonMeans, and t_mean::xIonMeansNorm.