Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cont_ipoint.cpp File Reference
#include "cddefines.h"
#include "ipoint.h"
#include "prt.h"
#include "rfield.h"
Include dependency graph for cont_ipoint.cpp:

Functions

long ipoint (double energy_ryd)
 
long ipContEnergy (double energy, const char *chLabel)
 
long ipLineEnergy (double energy, const char *chLabel, long ipIonEnergy)
 
long ipFineCont (double energy_ryd)
 

Function Documentation

long ipContEnergy ( double  energy,
const char *  chString 
)

ipContEnergy generates a safe pointer to energy in continuum array with energy given by the first argument (Rydbergs). The second is a label that will be placed at that energy if none have yet been set. The last is the energy of the next higher continuum. the code will make sure that the pointer is not within this continuum - that would create serious energy problems

Returns
array index on the Fortran or Physics scale, [1] would be first one
Parameters
energy- photon energy in Ryd
chString- 4 char + null string giving label for the continuum edge

References t_rfield::chContLabel, DEBUG_ENTRY, fprintf(), ioQQQ, ipoint(), and rfield.

Referenced by ContCreatePointers(), and ipShells().

Here is the call graph for this function:

long ipFineCont ( double  energy)

ipFineCont returns array index within fine energy mesh

Returns
array index on the Fortran or Physics scale, [1] would be first one
Parameters
energyin Ryd

References ASSERT, DEBUG_ENTRY, t_rfield::fine_ener_hi, t_rfield::fine_ener_lo, t_rfield::fine_resol, t_rfield::nfine, and rfield.

Referenced by ContCreatePointers(), diatomics::H2_ContPoint(), save_opacity(), and SaveDo().

long ipLineEnergy ( double  energy,
const char *  chString,
long  ipIonEnergy 
)

ipLineEnergy generates a safe pointer to energy in line array with energy given by the first argument (Rydbergs). The second is a label that will be placed at that energy if none have yet been set. The last is the energy of the next higher continuum. the code will make sure that the pointer is not within this continuum - that would create serious energy problems if, for instance, a Lyman line could ionize H

Returns
array index on the Fortran or Physics scale, [1] would be first one
Parameters
energy- photon energy in Ryd
chString- 4 char + null string giving label for the line
ipIonEnergy- ipIonEnergy - if <0 ignored, if >0 will make sure that return array index is less than this - used to make sure we don't overflow into a higher continuum

References ASSERT, t_rfield::chLineLabel, DEBUG_ENTRY, fprintf(), ioQQQ, ipoint(), lgMustPrintHeader, t_prt::lgPrnLineCell, t_prt::lgPrtContIndices, t_prt::lgPrtContIndices_hi_E, t_prt::lgPrtContIndices_lo_E, t_rfield::line_count, t_prt::nPrnLineCell, prt, and rfield.

Referenced by ContCreatePointers(), diatomics::H2_ContPoint(), ipShells(), and PntForLine().

Here is the call graph for this function:

long ipoint ( double  energy)