#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 "atmdat.h"
#include "save.h"
#include "grains.h"
#include "thirdparty.h"
#include "hydro_bauman.h"
#include "opacity.h"
#include "helike_recom.h"
#include "taulines.h"
#include "h2.h"
#include "h2_priv.h"
#include "ipoint.h"
#include "mole.h"
Go to the source code of this file.
Functions | |
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 (double energy, long ipISO, long nelem, long index) |
STATIC void | OpacityCreateReilMan (long int low, long int ihi, const realnum 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, realnum opart[]) |
STATIC void | OpacityValenceRescale (long int nelem, double scale) |
void | OpacityCreateAll (void) |
Variables | |
static const int | NCSH2P = 10 |
static long int | ndimOpacityStack = 2600000L |
static bool | lgRealloc = false |
static const int | NCRS = 33 |
STATIC double hmiopc | ( | double | freq | ) |
Definition at line 990 of file opacity_createall.cpp.
References DEBUG_ENTRY, lgFirst, NCRS, spline(), and splint().
Referenced by OpacityCreateAll().
STATIC double ofit | ( | double | e, | |
realnum | opart[] | |||
) |
Definition at line 708 of file opacity_createall.cpp.
References ASSERT, DEBUG_ENTRY, pow(), and POW2.
Referenced by OpacityCreateAll().
STATIC double Opacity_iso_photo_cs | ( | double | energy, | |
long | ipISO, | |||
long | nelem, | |||
long | index | |||
) |
Definition at line 887 of file opacity_createall.cpp.
References ASSERT, DEBUG_ENTRY, EVRYD, H_photo_cs(), He_cross_section(), t_ADfA::hpfit(), Singleton< t_ADfA >::Inst(), ipH_LIKE, ipHE_LIKE, iso_sp, L_, MAX2, N_, t_iso_sp::n_HighestResolved_max, t_iso_sp::nCollapsed_max, NHYDRO_MAX_LEVEL, t_iso_sp::numLevels_max, t_ADfA::phfit(), S, S_, and TotalInsanity().
Referenced by OpacityCreateAll().
STATIC void opacity_more_memory | ( | void | ) |
Definition at line 872 of file opacity_createall.cpp.
References DEBUG_ENTRY, ioQQQ, lgRealloc, ndimOpacityStack, opac, t_opac::OpacStack, and REALLOC.
Referenced by OpacityCreate1Element(), OpacityCreateAll(), OpacityCreatePowerLaw(), and OpacityCreateReilMan().
STATIC void OpacityCreate1Element | ( | long int | nelem | ) |
Definition at line 769 of file opacity_createall.cpp.
References t_rfield::anu, t_rfield::AnuOrg, ASSERT, continuum, DEBUG_ENTRY, EVRYD, Heavy, Singleton< t_ADfA >::Inst(), t_opac::ipElement, t_save::ipPoint, t_continuum::KshellLimit, t_save::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(), rfield, and save.
Referenced by OpacityCreateAll().
void OpacityCreateAll | ( | void | ) |
OpacityCreateAll compute initial set of opacities for all species
Definition at line 126 of file opacity_createall.cpp.
References t_rfield::anu, t_rfield::AnuOrg, t_rfield::anusqr, ASSERT, cdEXIT, DEBUG_ENTRY, dense, diatoms, EVRYD, EXIT_FAILURE, t_iso_sp::fb, fixit(), t_ADfA::get_version(), GrainsInit(), t_iso_sp::HighestLevelOpacStack, 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, ioQQQ, t_opac::ipBrems, t_opac::ipCKshell, t_opac::ipElement, ipH1s, ipH_LIKE, ipHE_LIKE, ipHELIUM, t_hmi::iphmin, t_opac::iphmop, t_opac::iphmra, ipHYDROGEN, t_opac::ipmgex, t_opac::ipo1exc, t_opac::ipo3exc, t_opac::ipo3exc3, ipoint(), t_opac::ipOpMgEx, ipOXYGEN, ipPOTASSIUM, t_opac::ippr, t_opac::ipRayScat, iso_sp, t_opac::lgCompileOpac, t_dense::lgElmtOn, lgOpacMalloced, lgRealloc, t_mole_global::lgStancil, t_trace::lgTrace, LIMELM, MALLOC, MIN2, MolDissocCrossSection(), mole_global, NCSH2P, ndimOpacityStack, t_rfield::nflux, t_opac::nOpacTot, t_iso_sp::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, t_ADfA::phfit(), PHFIT96, pow(), POW2, POW3, rayleh(), rfield, and trace.
Referenced by cloudy(), and ParseCompile().
STATIC void OpacityCreatePowerLaw | ( | long int | ilo, | |
long int | ihi, | |||
double | cross, | |||
double | s, | |||
long int * | ip | |||
) |
Definition at line 532 of file opacity_createall.cpp.
References t_rfield::anu, ASSERT, DEBUG_ENTRY, ndimOpacityStack, t_opac::nOpacTot, opac, opacity_more_memory(), t_opac::OpacStack, pow(), and rfield.
Referenced by OpacityCreateAll().
STATIC void OpacityCreateReilMan | ( | long int | low, | |
long int | ihi, | |||
const realnum | cross[], | |||
long int | ncross, | |||
long int * | ipop, | |||
const char * | chLabl | |||
) |
Definition at line 571 of file opacity_createall.cpp.
References t_rfield::anu, ASSERT, cdEXIT, DEBUG_ENTRY, EVRYD, EXIT_FAILURE, 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 | |||
) |
Definition at line 87 of file opacity_createall.cpp.
References ASSERT, DEBUG_ENTRY, dense, Heavy, t_opac::ipElement, t_dense::lgElmtOn, t_Heavy::nsShells, opac, and t_opac::OpacStack.
Referenced by OpacityCreateAll().
STATIC double rayleh | ( | double | ener | ) |
Definition at line 1038 of file opacity_createall.cpp.
References t_hydro::DampOnFac, DEBUG_ENTRY, FR1RYD, hydro, MAX2, POW2, and powi().
Referenced by OpacityCreateAll().
bool lgRealloc = false [static] |
Definition at line 67 of file opacity_createall.cpp.
Referenced by opacity_more_memory(), and OpacityCreateAll().
const int NCRS = 33 [static] |
Definition at line 988 of file opacity_createall.cpp.
Referenced by hmiopc().
const int NCSH2P = 10 [static] |
Definition at line 39 of file opacity_createall.cpp.
Referenced by OpacityCreateAll().
long int ndimOpacityStack = 2600000L [static] |
Definition at line 42 of file opacity_createall.cpp.
Referenced by opacity_more_memory(), OpacityCreate1Element(), OpacityCreateAll(), OpacityCreatePowerLaw(), and OpacityCreateReilMan().