opacity_createall.cpp File Reference

#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"

Include dependency graph for opacity_createall.cpp:

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


Function Documentation

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().

Here is the call graph for this function:

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]

static void opacity_more_memory ( void   )  [static]

static void OpacityCreate1Element ( long int  nelem  )  [static]

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

static void OpacityValenceRescale ( long int  nelem,
double  scale 
) [static]

static double rayleh ( double  ener  )  [static]

Todo:
2 update to astro-ph/0308073, Lee, H-W, ApJ in press

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:


Variable Documentation

bool lgRealloc = false [static]

Definition at line 126 of file opacity_createall.cpp.

Referenced by opacity_more_memory(), and OpacityCreateAll().

const char MAGIC[NMAGIC] = "010118" [static]

Definition at line 42 of file opacity_createall.cpp.

Referenced by OpacityCreateAll().

const int NCRS = 33 [static]

Definition at line 1392 of file opacity_createall.cpp.

const int NCSH2P = 10 [static]

Definition at line 36 of file opacity_createall.cpp.

Referenced by OpacityCreateAll().

long int ndimOpacityStack = 1700000L [static]

const int NMAGIC = 7 [static]

Definition at line 39 of file opacity_createall.cpp.

Referenced by OpacityCreateAll().


Generated for cloudy by doxygen 1.5.9