cloudy trunk
Loading...
Searching...
No Matches
rt_ots.cpp File Reference
#include "cddefines.h"
#include "taulines.h"
#include "opacity.h"
#include "dense.h"
#include "iso.h"
#include "mole.h"
#include "hmi.h"
#include "h2.h"
#include "rfield.h"
#include "conv.h"
#include "rt.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.

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

Function Documentation

◆ RT_OTS()

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, dBaseSpecies, dBaseTrans, DEBUG_ENTRY, dense, DEST0, diatoms, FeII_OTS(), findspecieslocal(), fnzone, he, Heavy, hmi, ioQQQ, ipH1s, ipH2p, ipH_LIKE, ipHELIUM, ipHYDROGEN, ipRecEsc, ipRecRad, iso_sp, LIMELM, MAX2, NISO, nLevel1, nOTS1, nOTS2, nOTS_Line_type, nSpecies, nWindLine, nzone, opac, rfield, RT_OTS_AddCont(), RT_OTS_AddLine(), SMALLFLOAT, TauLine2, TauLines, and trace.

Referenced by ConvBase().

Here is the call graph for this function:

◆ RT_OTS_AddCont()

STATIC void RT_OTS_AddCont ( realnum ots,
long int ip )

Definition at line 451 of file rt_ots.cpp.

References ASSERT, DEBUG_ENTRY, opac, rfield, and STATIC.

Referenced by RT_OTS().

◆ RT_OTS_AddLine()

void RT_OTS_AddLine ( double ots,
long int ip )

RT_OTS_AddLine add local destruction of lines to ots field

Parameters
ots
ippointer on the f scale

Definition at line 402 of file rt_ots.cpp.

References ASSERT, DEBUG_ENTRY, ioQQQ, iteration, nOTS1, nOTS2, nOTS_Line_type, opac, and rfield.

Referenced by atom_level3(), FeII_OTS(), diatomics::H2_RT_OTS(), and RT_OTS().

◆ RT_OTS_ChkSum()

void RT_OTS_ChkSum ( long int ipPnt)

RT_OTS_ChkSum sanity check confirms summed continua reflect contents of individuals

Definition at line 631 of file rt_ots.cpp.

References DEBUG_ENTRY, ioQQQ, rfield, and TotalInsanity().

Referenced by ConvPresTempEdenIoniz().

Here is the call graph for this function:

◆ RT_OTS_PrtRate()

void RT_OTS_PrtRate ( double weak,
int chFlag )

RT_OTS_PrtRate print ots arrays, called by ionize

Parameters
weakarg is weakest rate to print
chFlagflag, 'c' continuum, 'l' line, 'b' both

Definition at line 712 of file rt_ots.cpp.

References ASSERT, conv, DEBUG_ENTRY, dense, fnzone, ioQQQ, ipHELIUM, ipOXYGEN, opac, rfield, and TorF().

Referenced by ConvBase().

Here is the call graph for this function:

◆ RT_OTS_Update()

void RT_OTS_Update ( double * SumOTS)

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

Parameters
SumOTS
Returns
sum of ots rates

Definition at line 488 of file rt_ots.cpp.

References ASSERT, CalcTwoPhotonEmission(), DEBUG_ENTRY, dense, fixit(), ipH_LIKE, iso_ctrl, iso_sp, LIMELM, MAX2, MIN2, NISO, opac, rfield, SDIV(), SMALLDOUBLE, and t_iso_sp::TwoNu.

Referenced by ConvBase(), and IterRestart().

Here is the call graph for this function:

◆ RT_OTS_Zero()

void RT_OTS_Zero ( void )

zero these things out, called in zero

Definition at line 599 of file rt_ots.cpp.

References DEBUG_ENTRY, and rfield.

Referenced by ContSetIntensity().

Variable Documentation

◆ nOTS1

int nOTS1 =-1
static

Definition at line 29 of file rt_ots.cpp.

Referenced by RT_OTS(), and RT_OTS_AddLine().

◆ nOTS2

int nOTS2 =-1
static

Definition at line 29 of file rt_ots.cpp.

Referenced by RT_OTS(), and RT_OTS_AddLine().

◆ nOTS_Line_type

int nOTS_Line_type = -1
static

Definition at line 28 of file rt_ots.cpp.

Referenced by RT_OTS(), and RT_OTS_AddLine().