Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
rfield.h File Reference
#include "energy.h"
#include "module.h"
#include "vectorize.h"
#include "mesh.h"
#include "container_classes.h"
Include dependency graph for rfield.h:

Go to the source code of this file.

Classes

class  Spectrum
 
struct  t_rfield
 

Namespaces

namespace  Illumination
 
namespace  Accumulate
 

Enumerations

enum  Illumination::IlluminationType { Illumination::FORWARD , Illumination::REVERSE , Illumination::SYMMETRIC }
 
enum  Accumulate::AccumulationType { Accumulate::INSTANTANEOUS = 0 , Accumulate::CUMULATIVE = 1 }
 

Functions

void rfield_opac_zero (long lo, long ihi)
 
double flux_correct_isotropic (const bool lgSaveIsotrp, const int nEmType, const int j)
 
double flux_correct_isotropic (const int nEmType, const int j)
 

Variables

const double WL_V_FILT = 5500.
 
const double WL_B_FILT = 4400.
 
const int LIMSPC = 100
 
bool lgRfieldAllocated
 
t_rfield rfield
 

Function Documentation

◆ flux_correct_isotropic() [1/2]

double flux_correct_isotropic ( const bool lgSaveIsotrp,
const int nEmType,
const int j )

flux_correct_isotropic - Do not include isotropic continua in the reported continua, or band fluxes, if explicitly requested. This version of the function is intended for 'save' commands.

Parameters
lgSaveIsotrpisotropic option for save file
nEmTypetype of output continuum (instantaneous or time-integrated)
ifluxindex in the flux arrays
Returns
total flux, by default including isotropic continua

References continuum, and rfield.

Referenced by flux_correct_isotropic(), flxCell(), and lines_continuum().

◆ flux_correct_isotropic() [2/2]

double flux_correct_isotropic ( const int nEmType,
const int j )

flux_correct_isotropic - Do not include isotropic continua in the reported continua, or band fluxes, if explicitly requested.

Parameters
nEmTypetype of output continuum (instantaneous or time-integrated)
ifluxindex in the flux arrays
Returns
total flux, by default including isotropic continua

References flux_correct_isotropic().

Here is the call graph for this function:

◆ rfield_opac_zero()

void rfield_opac_zero ( long lo,
long ihi )

zero out rfield arrays between certain limits, code in zero.c

References lgRfieldAllocated, opac, rfield, and vzero().

Referenced by ContCreateMesh(), ConvInitSolution(), and InitSimPostparse().

Here is the call graph for this function:

Variable Documentation

◆ lgRfieldAllocated

bool lgRfieldAllocated
extern

set true when allocated, init to false

Referenced by rfield_opac_alloc(), rfield_opac_zero(), and tfidle().

◆ LIMSPC

◆ rfield

t_rfield rfield
extern

Referenced by t_PredCont::add(), AGN_Hemis(), AtlasInterpolate(), atmdat_CHIANTI_readin(), atmdat_LAMDA_readin(), atmdat_STOUT_readin(), atom_level2(), t_gaunt::brems_cool(), t_gaunt::brems_opac(), t_gaunt::brems_rt(), diatomics::CalcPhotoionizationRate(), CalcTwoPhotonEmission(), CalcTwoPhotonRates(), cdDrive(), cdRead(), cdSPEC2(), cmshft(), conorm(), ContBandsCreate(), ContCreateMesh(), ContCreatePointers(), ContNegative(), ContRate(), ContSetIntensity(), ConvBase(), ConvInitSolution(), CoolEvaluate(), CoStarInterpolate(), dense_fabden(), DynaIterEnd(), DynaIterStart(), DynaPunchTimeDep(), eden_sum(), EdenChange(), eeBremsSpectrum(), emergent_line(), extin(), ffun(), ffun1(), FindStrongestLineLabels(), flux_correct_isotropic(), flxCell(), GammaBn(), GammaK(), GammaPrt(), GetDissociationRateCoeff(), diatomics::GetHeatRate(), GrainCharge(), GrainDrift(), GrainElecEmis1(), GrainIonColl(), GrainMakeDiffuse(), GrainMakeDiffuseSingle(), GrainRateDr(), GrainsInit(), GrainTemperature(), GrainUpdateRadius2(), GridInterpolate(), GridRetrieveXSPECData(), H21_cm_pops(), diatomics::H2_LevelPops(), diatomics::H2_PunchDo(), diatomics::H2_X_sink_and_source(), HaardtMadauInterpolate(), HeatSum(), highen(), HyperfineCreate(), IncidentContinuumHere(), InitBinAugerData(), InitDefaultsPreparse(), InitSimPostparse(), InterpolateGridCoStar(), InterpolateModel(), InterpolateModelCoStar(), InterpolateRectGrid(), ion_collis(), ion_photo(), ion_trim(), ion_trim_init(), ipContEnergy(), ipFineCont(), ipLineEnergy(), ipoint(), ipShells(), iso_collide(), iso_create(), iso_ionize_recombine(), iso_level(), iso_photo(), iso_rad_rec_cooling_discrete(), iso_update_rates(), iter_end_check(), IterEnd(), IterRestart(), IterStart(), KhaireSrianandInterpolate(), Kurucz79Interpolate(), lgCheckMonitors(), lgReadAtmosphereTail(), lgValidModel(), lincom(), lindst1(), lines(), lines_continuum(), lines_general(), lines_hydro(), LineStackCreate(), matchGeneric(), mie_calc_ial(), mie_read_opc(), mie_write_opc(), MihalasInterpolate(), mole_h_reactions(), OpacityAdd1Element(), OpacityAdd1Subshell(), OpacityAdd1SubshellInduc(), OpacityAddTotal(), diatomics::OpacityCreate(), OpacityCreate1Element(), OpacityCreateAll(), OpacityCreatePowerLaw(), OpacityCreateReilMan(), OpacityZero(), OpacityZeroOld(), optimize_func(), TransitionProxy::outline(), outline_base(), outline_base_bin(), outsum(), t_gaunt::p_gauntff_vec(), EnergyEntry::p_set_ip(), t_gaunt::p_setup_brems(), ParseAbsMag(), ParseAgn(), ParseBackgrd(), ParseBlackbody(), ParseBremsstrahlung(), ParseCMB(), ParseCMBOuter(), ParseCommands(), ParseCompile(), ParseCosmology(), ParseDatabaseISO(), ParseDiffuse(), ParseDont(), ParseEnergy(), ParseExtinguish(), ParseF_nu(), ParseIllumination(), ParseIntensity(), ParseInterp(), ParseIonPar(), ParseLaser(), ParseLuminosity(), ParsePhi(), ParsePowerlawContinuum(), ParsePrint(), ParseQH(), ParseRangeOption(), ParseRatio(), ParseSave(), ParseSet(), ParseStop(), ParseTable(), PE_init(), pintr(), PlanckIntegral(), plankf(), pnegopc(), PressureRadiationLine(), PresTotCurrent(), PrettyTransmission(), PrintSpectrum(), process_output(), PrtComment(), PrtFinal(), PrtHeader(), PrtTwoPhotonEmissCoef(), PrtZone(), punchFITS_EnergyData(), punchFITS_GenericData(), punchFITS_GenericHeader(), punchFITS_SpectraData(), qheat(), qheat_init(), qintr(), radius_first(), radius_increment(), radius_next(), RauchInterpolateCOWD(), RauchInterpolateHCa(), RauchInterpolateHelium(), RauchInterpolateHNi(), RauchInterpolateHpHe(), RauchInterpolateHydr(), RauchInterpolatePG1159(), ReadTable(), RebinAtmosphere(), RebinSingleCell(), resetBltin(), rfield_opac_alloc(), rfield_opac_zero(), RT_continuum(), RT_DestProb(), RT_diffuse(), RT_fine_clear(), RT_iso_integrate_RRC(), RT_line_all(), RT_line_escape(), RT_line_fine_opacity(), RT_line_one_escape(), RT_line_one_fine(), RT_line_one_tauinc(), RT_line_pumping(), RT_OTS(), RT_OTS_AddCont(), RT_OTS_AddLine(), RT_OTS_ChkSum(), RT_OTS_PrtRate(), RT_OTS_Update(), RT_OTS_Zero(), RT_recom_effic(), RT_tau_inc(), RT_tau_init(), RT_tau_reset(), RTesc_lya(), SanityCheckBegin(), save_opacity(), SaveDo(), saveFITSfile(), SaveSpecial(), set_xIntensity(), t_rfield::setTrimming(), setXtraRatesCa2(), setXtraRatesO1(), sum_radiation(), sumcon(), tauff(), tfidle(), TlustyInterpolate(), TryDoubleStep(), TwoPhotonSetup(), UpdatePot(), UpdatePot1(), WernerInterpolate(), WMBASICInterpolate(), y0b(), y0b01(), t_rfield::zero(), ZoneEnd(), and ZoneStart().

◆ WL_B_FILT

const double WL_B_FILT = 4400.

wavelength of B filter in Angstroms

Referenced by ContCreatePointers().

◆ WL_V_FILT

const double WL_V_FILT = 5500.

wavelength of V filter in Angstroms

Referenced by ContCreatePointers().