/home66/gary/public_html/cloudy/c08_branch/source/rt_ots.cpp File Reference

#include "cddefines.h"
#include "taulines.h"
#include "opacity.h"
#include "dense.h"
#include "iso.h"
#include "hmi.h"
#include "h2.h"
#include "rfield.h"
#include "conv.h"
#include "rt.h"
#include "mole_co_atom.h"
#include "atomfeii.h"
#include "heavy.h"
#include "he.h"
#include "trace.h"

Include dependency graph for rt_ots.cpp:

Go to the source code of this file.

Defines

#define BOWEN   0.5f
#define LIM_INSAME_PRT   30

Functions

STATIC void RT_OTS_AddCont (realnum ots, long int ip)
void RT_OTS (void)
void RT_OTS_AddLine (double ots, long int ip)
void RT_OTS_Update (double *SumOTS, double BigFrac)
void RT_OTS_Zero (void)
void RT_OTS_ChkSum (long int ipPnt)
void RT_OTS_PrtRate (double weak, int chFlag)

Variables

static int nOTS_Line_type = -1
static int nOTS1 = -1
static int nOTS2 = -1


Define Documentation

#define BOWEN   0.5f

Referenced by RT_OTS().

#define LIM_INSAME_PRT   30

Referenced by RT_OTS_ChkSum().


Function Documentation

void RT_OTS ( void   ) 

RT_OTS compute diffuse fields due to helium atom, metals, hydro done in HydroOTS

Todo:
2 should also check whether IonLo is in bounds - in func_set_ion test He0 is set to zero, so this does not do anything. as NISO grows this will become larger waste of time

Definition at line 39 of file rt_ots.cpp.

References ASSERT, BOWEN, DEBUG_ENTRY, dense, DEST0, t_dense::eden, t_dense::EdenTrue, fnzone, he, hmi, t_hmi::HMinus_photo_rate, t_hmi::Hmolec, t_dense::IonHigh, ioQQQ, t_he::ip660, ipH1s, ipH2p, ipH_LIKE, ipHELIUM, ipHYDROGEN, t_iso::ipIsoLevNIonCon, ipMHm, ipRecEsc, ipRecRad, iso, t_dense::lgElmtOn, t_rfield::lgHeIIOTS, t_rfield::lgLyaOTS, LIMELM, MAX2, NISO, nOTS1, nOTS2, nOTS_Line_type, t_iso::numLevels_local, nzone, opac, t_opac::opacity_abs, t_rfield::otscon, t_rfield::otsconNew, t_rfield::otslin, t_rfield::otslinNew, t_iso::RadRecomb, rfield, RT_OTS_AddCont(), RT_OTS_AddLine(), SMALLFLOAT, StatesElem, Transitions, and t_dense::xIonDense.

Here is the call graph for this function:

STATIC void RT_OTS_AddCont ( realnum  ots,
long int  ip 
)

Definition at line 463 of file rt_ots.cpp.

References ASSERT, DEBUG_ENTRY, t_rfield::nflux, t_rfield::nupper, opac, t_opac::opacity_abs, t_rfield::otsconNew, and rfield.

Referenced by RT_OTS().

void RT_OTS_AddLine ( double  ots,
long int  ip 
)

RT_OTS_AddLine add local destruction of lines to ots field

Parameters:
ots 
ip pointer on the f scale

Definition at line 412 of file rt_ots.cpp.

References ASSERT, DEBUG_ENTRY, ioQQQ, iteration, t_rfield::nflux, nOTS1, nOTS2, nOTS_Line_type, opac, t_opac::opacity_abs, t_rfield::otslinNew, and rfield.

Referenced by atom_level3(), CO_OTS(), FeII_OTS(), H2_RT_OTS(), and RT_OTS().

void RT_OTS_ChkSum ( long int  ipPnt  ) 

RT_OTS_ChkSum sanity check confirms summed continua reflect contents of individuals

Definition at line 954 of file rt_ots.cpp.

References t_rfield::anu, t_rfield::chContLabel, t_rfield::chLineLabel, t_rfield::ConInterOut, t_rfield::ConOTS_local_OTS_rate, DEBUG_ENTRY, t_rfield::flux, ioQQQ, t_rfield::ipEnergyBremsThin, t_rfield::lgOutOnly, LIM_INSAME_PRT, t_rfield::nflux, t_rfield::otscon, t_rfield::otslin, t_rfield::outlin, t_rfield::outlin_noplot, rfield, t_rfield::SummedCon, t_rfield::SummedDif, and TotalInsanity().

Referenced by ConvPresTempEdenIoniz().

Here is the call graph for this function:

void RT_OTS_PrtRate ( double  weak,
int  chFlag 
)

RT_OTS_PrtRate print ots arrays, called by ionize

Parameters:
weak arg is weakest rate to print
chFlag flag, 'c' continuum, 'l' line, 'b' both

Definition at line 1035 of file rt_ots.cpp.

References t_rfield::anu, ASSERT, t_rfield::chContLabel, conv, DEBUG_ENTRY, fnzone, ioQQQ, t_conv::lgConvIoniz, t_rfield::nupper, opac, t_opac::opacity_abs, t_rfield::otscon, rfield, and TorF().

Here is the call graph for this function:

void RT_OTS_Update ( double *  SumOTS,
double  BigFrac 
)

RTOTSUpdata sum flux, otscon, otslin, ConInterOut, outlin, to form SummeDif, SummedCon SummedOcc, int * is pointer to energy in continuum where this change happened,

Parameters:
BigFrac is largest relative change in ots allowed, 0 for no cap
SumOTS 
Returns:
sum of ots rates

Definition at line 534 of file rt_ots.cpp.

References t_rfield::ConInterOut, t_rfield::ConOTS_local_OTS_rate, t_rfield::ConOTS_local_photons, t_rfield::convoc, DEBUG_ENTRY, t_rfield::flux, t_rfield::lgKillOTSLine, t_rfield::lgOutOnly, MALLOC, MAX2, t_rfield::nflux, t_rfield::nupper, nzone, opac, t_opac::opacity_abs, t_rfield::otscon, t_rfield::otsconNew, t_rfield::otslin, t_rfield::otslinNew, t_rfield::outlin, t_rfield::outlin_noplot, rfield, SMALLDOUBLE, t_rfield::SummedCon, t_rfield::SummedDif, and t_rfield::SummedOcc.

void RT_OTS_Zero ( void   ) 

zero these things out, called in zero

Definition at line 918 of file rt_ots.cpp.

References t_rfield::ConInterOut, t_rfield::ConOTS_local_OTS_rate, t_rfield::ConOTS_local_photons, t_rfield::convoc, DEBUG_ENTRY, t_rfield::flux, t_rfield::nflux, t_rfield::otscon, t_rfield::otsconNew, t_rfield::otslin, t_rfield::otslinNew, t_rfield::outlin, t_rfield::outlin_noplot, rfield, t_rfield::SummedCon, t_rfield::SummedDif, t_rfield::SummedOcc, t_rfield::trans_coef_total, and t_rfield::trans_coef_zone.


Variable Documentation

int nOTS1 = -1 [static]

Definition at line 29 of file rt_ots.cpp.

Referenced by RT_OTS(), and RT_OTS_AddLine().

int nOTS2 = -1 [static]

Definition at line 29 of file rt_ots.cpp.

Referenced by RT_OTS(), and RT_OTS_AddLine().

int nOTS_Line_type = -1 [static]

Definition at line 28 of file rt_ots.cpp.

Referenced by RT_OTS(), and RT_OTS_AddLine().


Generated on Mon Feb 16 12:12:45 2009 for cloudy by  doxygen 1.4.7