cloudy
trunk
|
#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 "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 (realnum energy, long ipISO, long nelem, long n) |
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 = 2100000L |
static bool | lgRealloc = false |
static const int | NCRS = 33 |
STATIC double hmiopc | ( | double | freq) |
Definition at line 1017 of file opacity_createall.cpp.
References DEBUG_ENTRY, NCRS, spline(), and splint().
Referenced by OpacityCreateAll().
Definition at line 735 of file opacity_createall.cpp.
References DEBUG_ENTRY, and POW2.
Referenced by OpacityCreateAll().
Definition at line 912 of file opacity_createall.cpp.
References ASSERT, DEBUG_ENTRY, EVRYD, H_photo_cs(), He_cross_section(), Singleton< T >::Inst(), ipH_LIKE, ipHE_LIKE, iso, L_, MAX2, N_, t_iso::n_HighestResolved_max, t_iso::nCollapsed_max, NHYDRO_MAX_LEVEL, t_iso::numLevels_max, TotalInsanity(), and t_iso::xIsoLevNIonRyd.
Referenced by OpacityCreateAll().
STATIC void opacity_more_memory | ( | void | ) |
Definition at line 897 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 794 of file opacity_createall.cpp.
References t_rfield::anu, t_rfield::AnuOrg, ASSERT, continuum, DEBUG_ENTRY, EVRYD, Heavy, Singleton< T >::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, punch, and rfield.
Referenced by OpacityCreateAll().
void OpacityCreateAll | ( | void | ) |
OpacityCreateAll compute initial set of opacities for all species
Definition at line 176 of file opacity_createall.cpp.
References t_rfield::AnuOrg, t_rfield::anusqr, ASSERT, cdEXIT, DEBUG_ENTRY, dense, EVRYD, GrainsInit(), hmi, hmiopc(), t_oxy::i2d, t_opac::ica2ex, t_opac::ica2op, t_opac::ih2pnt, t_opac::ih2pof, t_opac::in1, Singleton< T >::Inst(), t_opac::iopcom, t_opac::iophe1, t_opac::iopo2d, t_opac::ioppr, 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, t_dense::lgElmtOn, lgOpacMalloced, lgRealloc, t_trace::lgTrace, LIMELM, MALLOC, NCSH2P, ndimOpacityStack, 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, PHFIT96, POW2, POW3, rayleh(), rfield, 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 | ||
) |
Definition at line 559 of file opacity_createall.cpp.
References t_rfield::anu, ASSERT, DEBUG_ENTRY, 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, | ||
const realnum | cross[], | ||
long int | ncross, | ||
long int * | ipop, | ||
const char * | chLabl | ||
) |
Definition at line 598 of file opacity_createall.cpp.
References t_rfield::anu, ASSERT, cdEXIT, DEBUG_ENTRY, 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 | ||
) |
Definition at line 137 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 1065 of file opacity_createall.cpp.
References t_hydro::DampOnFac, DEBUG_ENTRY, FR1RYD, hydro, MAX2, POW2, and powi().
Referenced by OpacityCreateAll().
STATIC double Yan_H2_CS | ( | double | energy_ryd) |
Definition at line 45 of file opacity_createall.cpp.
References cross_section(), DEBUG_ENTRY, EVRYD, MAX2, and x2.
Referenced by OpacityCreateAll().
|
static |
Definition at line 117 of file opacity_createall.cpp.
Referenced by opacity_more_memory(), and OpacityCreateAll().
|
static |
Definition at line 1015 of file opacity_createall.cpp.
Referenced by hmiopc().
|
static |
Definition at line 35 of file opacity_createall.cpp.
Referenced by OpacityCreateAll().
|
static |
Definition at line 38 of file opacity_createall.cpp.
Referenced by opacity_more_memory(), OpacityCreate1Element(), OpacityCreateAll(), OpacityCreatePowerLaw(), and OpacityCreateReilMan().