#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"
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, float arlog[], bool lgDensity) |
void | MeanIonVolume (char chType, long int nelem, long int *n, float 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 597 of file mean.cpp.
References cdEXIT(), DEBUG_ENTRY, DEBUG_EXIT, t_radius::drad_x_fillfac, t_radius::dVeff, geometry, ioQQQ, t_geometry::lgSphere, NAVER, PrintEfmt(), radius, and ShowMe().
Referenced by H2_Create(), IterStart(), PrtFinal(), and radius_increment().
void MeanInc | ( | void | ) |
mean derive mean ionization fractions over computed EXTERN structure
Definition at line 21 of file mean.cpp.
References t_mean::B_HarMeanTempRadius, DEBUG_ENTRY, DEBUG_EXIT, dense, t_radius::drad_x_fillfac, t_radius::dVeff, t_dense::eden, t_dense::gas_phase, t_hmi::H2_total, t_mean::H2MeanTempRadius, t_mean::H2MeanTempVolume, t_mean::H_21cm_spin_mean_radius, t_mean::HarMeanTempRadius, t_mean::HarMeanTempVolume, hmi, hyperfine, ipHYDROGEN, LIMELM, magnetic, mean, phycon, PI8, t_magnetic::pressure, t_radius::r1r0sq, radius, SDIV(), SMALLFLOAT, t_phycon::te, t_mean::TempEdenMeans, t_mean::TempEdenMeansNorm, t_mean::TempMeanRadius, t_mean::TempMeans, t_mean::TempMeansNorm, t_mean::TempMeanVolume, t_hyperfine::Tspin21cm, t_dense::xIonDense, t_mean::xIonEdenMeans, t_mean::xIonEdenMeansNorm, t_mean::xIonMeans, and t_mean::xIonMeansNorm.
Referenced by radius_increment().
void MeanIonRadius | ( | char | chType, | |
long int | nelem, | |||
long int * | n, | |||
float | 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 319 of file mean.cpp.
References ASSERT, DEBUG_ENTRY, DEBUG_EXIT, dense, ioQQQ, t_dense::lgElmtOn, MAX2, mean, SMALLFLOAT, t_mean::TempEdenMeans, t_mean::TempEdenMeansNorm, t_mean::TempMeans, t_mean::TempMeansNorm, t_mean::xIonEdenMeans, t_mean::xIonEdenMeansNorm, t_mean::xIonMeans, and t_mean::xIonMeansNorm.
Referenced by cdIonFrac(), cdTemp(), and PrtMeanIon().
void MeanIonVolume | ( | char | chType, | |
long int | nelem, | |||
long int * | n, | |||
float | 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 454 of file mean.cpp.
References ASSERT, DEBUG_ENTRY, DEBUG_EXIT, dense, ioQQQ, t_dense::lgElmtOn, MAX2, mean, SMALLFLOAT, t_mean::TempEdenMeans, t_mean::TempEdenMeansNorm, t_mean::TempMeans, t_mean::TempMeansNorm, t_mean::xIonEdenMeans, t_mean::xIonEdenMeansNorm, t_mean::xIonMeans, and t_mean::xIonMeansNorm.
Referenced by cdIonFrac(), cdTemp(), and PrtMeanIon().
void MeanZero | ( | void | ) |
MeanZero zero mean of ionization fractions array
Definition at line 214 of file mean.cpp.
References t_mean::B_HarMeanTempRadius, DEBUG_ENTRY, DEBUG_EXIT, 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.
Referenced by IterStart(), and zero().