cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions | Variables
opacity_createall.cpp File Reference
#include "cddefines.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_adfa.h"
#include "save.h"
#include "grains.h"
#include "hydro_bauman.h"
#include "opacity.h"
#include "helike_recom.h"
#include "h2.h"
#include "ipoint.h"
#include "mole.h"
#include "freebound.h"
#include "prt.h"
Include dependency graph for opacity_createall.cpp:

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 energ[], const realnum cross[], long int ncr, long int *ipop, const char *chLabl)
 
STATIC void OpacityCreatePowerLaw (long int ilo, long int ihi, double cross, double s, long int *ip)
 
STATIC void ofit (double e, realnum opart[])
 
STATIC void OpacityValenceRescale (long int nelem, double scale)
 
void OpacityCreateAll (void)
 

Variables

static long int ndimOpacityStack = 3900000L
 
static bool lgRealloc = false
 
static const int NCRS = 33
 

Function Documentation

STATIC double hmiopc ( double  freq)

Definition at line 999 of file opacity_createall.cpp.

References DEBUG_ENTRY, energy(), NCRS, spline(), and splint().

Referenced by OpacityCreateAll().

Here is the call graph for this function:

STATIC void ofit ( double  e,
realnum  opart[] 
)

Definition at line 718 of file opacity_createall.cpp.

References ASSERT, DEBUG_ENTRY, pow(), and POW2.

Referenced by OpacityCreateAll().

Here is the call graph for this function:

STATIC double Opacity_iso_photo_cs ( double  energy,
long  ipISO,
long  nelem,
long  index 
)
STATIC void opacity_more_memory ( void  )
STATIC void OpacityCreate1Element ( long int  nelem)
void OpacityCreateAll ( void  )

OpacityCreateAll compute initial set of opacities for all species

Definition at line 123 of file opacity_createall.cpp.

References t_mesh::anu(), t_mesh::anusqrt(), ASSERT, cdEXIT, DEBUG_ENTRY, dense, diatoms, EXIT_FAILURE, t_iso_sp::fb, fixit, fprintf(), 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::ih2pnt_ex, t_opac::ih2pof, t_opac::ih2pof_ex, 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, t_prt::lgPrintTime, lgRealloc, t_mole_global::lgStancil, t_trace::lgTrace, LIMELM, MALLOC, MIN2, MolDissocCrossSection(), mole_global, ndimOpacityStack, t_rfield::nflux, t_rfield::nflux_with_check, t_opac::nOpacTot, t_iso_sp::numLevels_max, 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, POW2, POW3, powpq(), prt, rayleh(), rfield, and trace.

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 
)

Definition at line 536 of file opacity_createall.cpp.

References t_mesh::anu(), ASSERT, DEBUG_ENTRY, ndimOpacityStack, t_opac::nOpacTot, opac, opacity_more_memory(), t_opac::OpacStack, pow(), and rfield.

Referenced by OpacityCreateAll().

Here is the call graph for this function:

STATIC void OpacityCreateReilMan ( long int  low,
long int  ihi,
const realnum  energ[],
const realnum  cross[],
long int  ncr,
long int *  ipop,
const char *  chLabl 
)

Definition at line 575 of file opacity_createall.cpp.

References t_mesh::anu(), ASSERT, cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), 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 double rayleh ( double  ener)
Todo:
2 update to astro-ph/0308073, Lee, H-W, ApJ in press

Definition at line 1047 of file opacity_createall.cpp.

References t_hydro::DampOnFac, DEBUG_ENTRY, hydro, MAX2, POW2, and powi().

Referenced by OpacityCreateAll().

Here is the call graph for this function:

Variable Documentation

bool lgRealloc = false
static

Definition at line 64 of file opacity_createall.cpp.

Referenced by opacity_more_memory(), and OpacityCreateAll().

const int NCRS = 33
static

Definition at line 997 of file opacity_createall.cpp.

Referenced by hmiopc().

long int ndimOpacityStack = 3900000L
static