#include "cddefines.h"
#include "physconst.h"
#include "dense.h"
#include "continuum.h"
#include "iso.h"
#include "hydrogenic.h"
#include "oxy.h"
#include "trace.h"
#include "heavy.h"
#include "rfield.h"
#include "hmi.h"
#include "path.h"
#include "atmdat.h"
#include "punch.h"
#include "grains.h"
#include "thirdparty.h"
#include "hydro_bauman.h"
#include "opacity.h"
#include "helike_recom.h"
Go to the source code of this file.
Functions | |
static double | Yan_H2_CS (double energy_ryd) |
static void | OpacityCreate1Element (long int nelem) |
static void | opacity_more_memory (void) |
static double | hmiopc (double freq) |
static double | rayleh (double ener) |
static double | Opacity_iso_photo_cs (float energy, long ipISO, long nelem, long n) |
static void | OpacityCreateReilMan (long int low, long int ihi, float cross[], long int ncross, long int *ipop, const char *chLabl) |
static void | OpacityCreatePowerLaw (long int ilo, long int ihi, double cross, double s, long int *ip) |
static double | ofit (double e, float opart[]) |
static void | OpacityValenceRescale (long int nelem, double scale) |
void | OpacityCreateAll (void) |
Variables | |
static const int | NCSH2P = 10 |
static const int | NMAGIC = 7 |
static const char | MAGIC [NMAGIC] = "010118" |
static long int | ndimOpacityStack = 1700000L |
static bool | lgRealloc = false |
static const int | NCRS = 33 |
static double hmiopc | ( | double | freq | ) | [static] |
Definition at line 1394 of file opacity_createall.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, NCRS, spline(), and splint().
Referenced by OpacityCreateAll().
static double ofit | ( | double | e, | |
float | opart[] | |||
) | [static] |
Definition at line 1072 of file opacity_createall.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, and POW2.
Referenced by OpacityCreateAll().
static double Opacity_iso_photo_cs | ( | float | energy, | |
long | ipISO, | |||
long | nelem, | |||
long | n | |||
) | [static] |
Definition at line 1255 of file opacity_createall.cpp.
References ASSERT, DEBUG_ENTRY, DEBUG_EXIT, EVRYD, H_photo_cs(), He_cross_section(), t_ADfA::hpfit(), Singleton< t_ADfA >::Inst(), ipH_LIKE, ipHE_LIKE, iso, MAX2, t_iso::n_HighestResolved_max, t_iso::nCollapsed_max, t_iso::numLevels_max, t_ADfA::phfit(), POW2, TotalInsanity(), and t_iso::xIsoLevNIonRyd.
Referenced by OpacityCreateAll().
static void opacity_more_memory | ( | void | ) | [static] |
Definition at line 1238 of file opacity_createall.cpp.
References DEBUG_ENTRY, DEBUG_EXIT, ioQQQ, lgRealloc, ndimOpacityStack, opac, t_opac::OpacStack, and REALLOC.
Referenced by OpacityCreate1Element(), OpacityCreateAll(), OpacityCreatePowerLaw(), and OpacityCreateReilMan().
static void OpacityCreate1Element | ( | long int | nelem | ) | [static] |
Definition at line 1133 of file opacity_createall.cpp.
References t_rfield::anu, t_rfield::AnuOrg, ASSERT, continuum, DEBUG_ENTRY, DEBUG_EXIT, EVRYD, Heavy, Singleton< t_ADfA >::Inst(), t_opac::ipElement, t_punch::ipPoint, t_continuum::KshellLimit, t_punch::lgPunPoint, LIMELM, MAX2, ndimOpacityStack, t_opac::nOpacTot, t_Heavy::nsShells, t_rfield::nupper, opac, t_opac::opacity_abs, opacity_more_memory(), t_opac::OpacStack, t_ADfA::ph1(), t_ADfA::phfit(), punch, and rfield.
Referenced by OpacityCreateAll().
void OpacityCreateAll | ( | void | ) |
OpacityCreateAll compute initial set of opacities for all species
Definition at line 188 of file opacity_createall.cpp.
References t_rfield::AnuOrg, t_rfield::anusqr, ASSERT, cdEXIT(), chDataPath, DEBUG_ENTRY, DEBUG_EXIT, dense, EVRYD, FILENAME_PATH_LENGTH_2, t_ADfA::get_version(), GrainsInit(), hmi, hmiopc(), t_oxy::i2d, t_opac::ica2ex, t_opac::ica2op, t_opac::ih2pnt, t_opac::ih2pof, t_opac::in1, Singleton< t_ADfA >::Inst(), t_opac::iopcom, t_opac::iophe1, t_opac::iopo2d, t_opac::ioppr, t_opac::ioptri, ioQQQ, t_opac::ipBrems, t_opac::ipCKshell, t_opac::ipElement, ipH1s, t_opac::ipH2_photo_opac_offset, t_opac::ipH2_photo_thresh, ipH_LIKE, ipHE_LIKE, ipHELIUM, t_hmi::iphmin, t_opac::iphmop, t_opac::iphmra, ipHYDROGEN, t_iso::ipIsoLevNIonCon, t_opac::ipmgex, t_opac::ipo1exc, t_opac::ipo3exc, t_opac::ipo3exc3, t_iso::ipOpac, t_opac::ipOpMgEx, ipOXYGEN, ipPOTASSIUM, t_opac::ippr, t_opac::ipRayScat, iso, t_opac::lgCompileOpac, lgDataPathSet, t_dense::lgElmtOn, t_opac::lgOpacExist, lgOpacMalloced, lgRealloc, t_trace::lgTrace, t_opac::lgUseFileOpac, LIMELM, MAGIC, MALLOC, NCSH2P, ndimOpacityStack, NMAGIC, t_opac::nOpacTot, t_iso::numLevels_max, t_rfield::nupper, ofit(), opac, t_opac::opacity_abs, Opacity_iso_photo_cs(), opacity_more_memory(), OpacityCreate1Element(), OpacityCreatePowerLaw(), OpacityCreateReilMan(), OpacityValenceRescale(), t_opac::OpacStack, oxy, path_not_set(), t_ADfA::phfit(), PHFIT96, POW2, POW3, rayleh(), rfield, t_opac::tmn, trace, t_iso::xIsoLevNIonRyd, and Yan_H2_CS().
Referenced by cloudy(), and ParseCompile().
static void OpacityCreatePowerLaw | ( | long int | ilo, | |
long int | ihi, | |||
double | cross, | |||
double | s, | |||
long int * | ip | |||
) | [static] |
Definition at line 888 of file opacity_createall.cpp.
References t_rfield::anu, ASSERT, DEBUG_ENTRY, DEBUG_EXIT, ndimOpacityStack, t_opac::nOpacTot, opac, opacity_more_memory(), t_opac::OpacStack, and rfield.
Referenced by OpacityCreateAll().
static void OpacityCreateReilMan | ( | long int | low, | |
long int | ihi, | |||
float | cross[], | |||
long int | ncross, | |||
long int * | ipop, | |||
const char * | chLabl | |||
) | [static] |
Definition at line 929 of file opacity_createall.cpp.
References t_rfield::anu, ASSERT, cdEXIT(), DEBUG_ENTRY, DEBUG_EXIT, EVRYD, ioQQQ, ndimOpacityStack, t_opac::nOpacTot, opac, opacity_more_memory(), t_opac::OpacStack, and rfield.
Referenced by OpacityCreateAll().
static void OpacityValenceRescale | ( | long int | nelem, | |
double | scale | |||
) | [static] |
Definition at line 146 of file opacity_createall.cpp.
References ASSERT, DEBUG_ENTRY, DEBUG_EXIT, dense, Heavy, t_opac::ipElement, t_dense::lgElmtOn, t_Heavy::nsShells, opac, and t_opac::OpacStack.
Referenced by OpacityCreateAll().
static double rayleh | ( | double | ener | ) | [static] |
Definition at line 1444 of file opacity_createall.cpp.
References t_hydro::DampOnFac, DEBUG_ENTRY, DEBUG_EXIT, FR1RYD, hydro, MAX2, POW2, and powi().
Referenced by OpacityCreateAll().
static double Yan_H2_CS | ( | double | energy_ryd | ) | [static] |
Definition at line 52 of file opacity_createall.cpp.
References cross_section(), DEBUG_ENTRY, DEBUG_EXIT, EVRYD, MAX2, and x2.
Referenced by OpacityCreateAll().
bool lgRealloc = false [static] |
Definition at line 126 of file opacity_createall.cpp.
Referenced by opacity_more_memory(), and OpacityCreateAll().
const int NCRS = 33 [static] |
Definition at line 1392 of file opacity_createall.cpp.
const int NCSH2P = 10 [static] |
long int ndimOpacityStack = 1700000L [static] |
Definition at line 45 of file opacity_createall.cpp.
Referenced by opacity_more_memory(), OpacityCreate1Element(), OpacityCreateAll(), OpacityCreatePowerLaw(), and OpacityCreateReilMan().
const int NMAGIC = 7 [static] |