Cloudy
Spectral Synthesis Code for Astrophysics
|
#include "cddefines.h"
#include "cddrive.h"
#include "mean.h"
#include "taulines.h"
#include "struc.h"
#include "iso.h"
#include "hyperfine.h"
#include "rt.h"
#include "magnetic.h"
#include "hydrogenic.h"
#include "secondaries.h"
#include "grainvar.h"
#include "lines.h"
#include "dynamics.h"
#include "colden.h"
#include "ionbal.h"
#include "yield.h"
#include "prt.h"
#include "iterations.h"
#include "heavy.h"
#include "conv.h"
#include "geometry.h"
#include "called.h"
#include "helike.h"
#include "opacity.h"
#include "phycon.h"
#include "timesc.h"
#include "radius.h"
#include "monitor_results.h"
#include "thermal.h"
#include "wind.h"
#include "hmi.h"
#include "pressure.h"
#include "elementnames.h"
#include "ipoint.h"
#include "hcmap.h"
#include "input.h"
#include "save.h"
#include "warnings.h"
#include "grid.h"
#include "atmdat.h"
#include "h2.h"
#include "gammas.h"
#include "mole.h"
#include "rfield.h"
#include "doppvel.h"
#include "freebound.h"
#include "dense.h"
#include "atmdat_gaunt.h"
#include "generic_state.h"
Enumerations | |
enum | cont_type { CT_INCI , CT_OUTW_INCI , CT_REFL_INCI , CT_OUTW_DIFF , CT_REFL_DIFF , CT_OUTW_LIN , CT_REFL_LIN , CT_GRN_SIL , CT_GRN_GRA , CT_GRN_TOT } |
Functions | |
double | PrettyTransmission (long j, double transmission) |
double | flxCell (long j, long nEmType, cont_type ct, bool lgForceConserve=false, bool lgPrtIsotropicCont=true, const realnum *trans_coef_total=NULL) |
void | cdSPEC2 (int nOption, realnum ReturnedSpectrum[]) |
STATIC void | FindStrongestLineLabels (void) |
double | PrtLogLin (double value) |
STATIC void | SaveGaunts (FILE *ioPUN) |
STATIC void | SaveResults (FILE *ioPUN) |
STATIC void | SaveLineStuff (FILE *ioPUN, const char *chJob, realnum xLimit) |
STATIC void | AGN_Hemis (FILE *ioPUN) |
STATIC void | SaveLineIntensity (FILE *ioPUN, long int ipPun, realnum Threshold) |
void | SaveDo (const char *chTime) |
void | Save1Line (const TransitionProxy &t, FILE *ioPUN, realnum xLimit, long index, realnum DopplerWidth) |
void | SaveGrid (FILE *pnunit, exit_type status) |
Variables | |
STATIC long int | ipPun |
char * | chDummy |
static bool | lgPopsFirstCall |
static bool | lgSaveOpticalDepths |
enum cont_type |
STATIC void AGN_Hemis | ( | FILE * | ioPUN | ) |
References AnuUnit(), cdEXIT, ConvPresTempEdenIoniz(), DEBUG_ENTRY, dense, EXIT_SUCCESS, fprintf(), ioQQQ, ipHELIUM, ipHYDROGEN, nzone, phycon, rfield, RT_diffuse(), STATIC, and TempChange().
Referenced by SaveDo().
void cdSPEC2 | ( | int | Option, |
realnum | ReturnedSpectrum[] ) |
this routine returns the spectrum needed for Keith Arnaud's XSPEC X-Ray analysis code. It should be called after cdDrive has successfully computed a model. The calling routine must ensure that the vectors have enough space to store the resulting spectrum, given the bounds and energy resolution
Option | the type of spectrum to be returned (in photons/s/bin) 0 the total continuum, all components outward and reflected 1 the incident continuum 2 the attenuated incident continuum 3 the reflected incident continuum 4 diffuse emission, lines + continuum, outward 5 diffuse emission, lines + continuum, reflected 6 diffuse continuous emission, outward 7 diffuse continuous emission, reflected 8 total transmitted, incident + lines and continuum 9 total reflected, incident + lines and continuum 10 exp(-tau) to the illuminated face |
ReturnedSpectrum[] | the returned spectrum, should have rfield.nflux elements |
References ASSERT, cdEXIT, CT_INCI, CT_OUTW_DIFF, CT_OUTW_INCI, CT_OUTW_LIN, CT_REFL_DIFF, CT_REFL_INCI, CT_REFL_LIN, DEBUG_ENTRY, EXIT_FAILURE, flxCell(), fprintf(), ioQQQ, NULL, opac, radius, and rfield.
Referenced by GridRetrieveXSPECData(), and punchFITS_GenericData().
STATIC void FindStrongestLineLabels | ( | void | ) |
|
inline |
References ASSERT, CT_GRN_GRA, CT_GRN_SIL, CT_GRN_TOT, CT_INCI, CT_OUTW_DIFF, CT_OUTW_INCI, CT_OUTW_LIN, CT_REFL_DIFF, CT_REFL_INCI, CT_REFL_LIN, flux_correct_isotropic(), geometry, gv, NULL, PrettyTransmission(), radius, rfield, save, and TotalInsanity().
Referenced by cdSPEC2(), and SaveDo().
|
inline |
double PrtLogLin | ( | double | value | ) |
SAVE command has option LOG to print log quantities as in <= C13
References ipPun, save, and SDIV().
Referenced by save_average(), and SaveDo().
void Save1Line | ( | const TransitionProxy & | t, |
FILE * | io, | ||
realnum | xLimit, | ||
long | index, | ||
realnum | DopplerWidth ) |
save one line, called by SaveLineStuff
t | |
io | |
xLimit | |
index | |
DopplerWidth |
References AnuUnit(), CHARS_SPECIES, chIonLbl(), chLineLbl(), EmissionProxy::dampXvel(), TransitionProxy::Emis(), TransitionProxy::EnergyRyd(), TransitionProxy::EnergyWN(), fprintf(), EmissionProxy::gf(), TransitionProxy::Hi(), lgPopsFirstCall, lgSaveOpticalDepths, TransitionProxy::Lo(), t_wavl::prt_wl(), save, EmissionProxy::TauIn(), EmissionProxy::TauInSpecific(), and TransitionProxy::twav().
Referenced by diatomics::H2_PunchLineStuff(), and SaveLineStuff().
void SaveDo | ( | const char * | chTime | ) |
SaveDo produce save output during calculation
chTime | chTime is null terminated 4 char string, either "MIDL" or "LAST" |
lgLastOnly true, print after iteration is complete, false, evey zone
References abund, AGN_He1_CS(), AGN_Hemis(), AnuUnit(), ASSERT, TransitionProxy::associated(), called, cdColm(), cdExecTime(), cdEXIT, cdLine(), ChargTranPun(), CHIANTI_Upsilon(), TransitionProxy::chLabel(), colden, colliders, column(), conv, CoolSave(), cpu, CT_GRN_GRA, CT_GRN_SIL, CT_GRN_TOT, CT_INCI, CT_OUTW_DIFF, CT_OUTW_INCI, CT_OUTW_LIN, CT_REFL_DIFF, CT_REFL_INCI, CT_REFL_LIN, dBaseSpecies, dBaseTrans, DEBUG_ENTRY, molezone::den, dense, density(), DoppVel, dynamics, DynaPunchTimeDep(), DynaSave(), elementnames, TransitionProxy::Emis(), energy(), EXIT_FAILURE, EXIT_SUCCESS, exp10(), findspecies(), findspecieslocal(), FindStrongestLineLabels(), flxCell(), fp_equal(), fprintf(), qStateProxy::g(), GammaPrt(), geometry, t_ADfA::getEthresh(), grid, gv, h2, hcmap, Heavy, HFLines, TransitionProxy::Hi(), hmi, hyperfine, molecule::index, Singleton< t_ADfA >::Inst(), Singleton< t_yield >::Inst(), ion_recombAGN(), ionbal, ioQQQ, ipALUMINIUM, ipCARBON, ipCOL_elec, ipCOL_HTOT, ipELECTRON, ipFineCont(), ipH1s, ipH2p, ipH2s, ipH_LIKE, ipHe1s1S, ipHe2p1P, ipHe2p3P0, ipHe2p3P1, ipHe2p3P2, ipHe2s3S, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipIRON, ipMAGNESIUM, ipoint(), ipOXYGEN, ipPun, ipRecEsc, ipRecNetEsc, ipRecRad, ipSILICON, ipSODIUM, ipSULPHUR, is_odd(), iso_Max_Emitting_Level(), iso_RRCoef_Te(), iso_sp, iteration, iterations, lgCheckMonitors(), lgMustPrintHeader, LIMELM, LineSave, TransitionProxy::Lo(), magnetic, map_do(), matchGeneric(), MAX2, mean, MIN2, mole, mole_dominant_rates(), mole_global, mole_save(), NCHLAB, t_yield::nelec_eject(), nSpecies, null_mole, NUM_OUTPUT_TYPES, nzone, OccupationNumberLine(), opac, optimize, phycon, plankf(), qStateProxy::Pop(), POW2, pressure, prt, prt_line_inlist(), prt_LineLabels(), PrtLinePres(), PrtLogLin(), PrtMeanIon(), radius, rfield, safe_div(), save, save_average(), save_line(), Save_Line_RT(), save_opacity(), saveFITSfile(), SaveGaunts(), SaveHeat(), SaveLineData(), SaveLineIntensity(), SaveLineStuff(), SaveResults(), SaveSpecial(), SaveSpecies(), SaveSpeciesBands(), SaveSpeciesOptDep(), SaveSpeciesPseudoCont(), SDIV(), secondaries, sexp(), ShowMe(), SMALLFLOAT, struc, EmissionProxy::TauInSpecific(), TempChange(), TexcLine(), thermal, timesc, TorF(), TotalInsanity(), VERSION_TRNCON, and wind.
Referenced by cloudy().
STATIC void SaveGaunts | ( | FILE * | ioPUN | ) |
References DEBUG_ENTRY, exp10(), fprintf(), t_gaunt::gauntff(), Singleton< t_gaunt >::Inst(), LIMELM, and STATIC.
Referenced by SaveDo().
void SaveGrid | ( | FILE * | pnunit, |
exit_type | status ) |
SaveGrid implements the SAVE GRID command
pnunit | : file descriptor to write to |
status | : exit status of the grid point |
References cpu, DEBUG_ENTRY, ES_SUCCESS, ES_WARNINGS, fprintf(), grid, GridPointPrefix(), NULL, open_data(), optimize, save, TorF(), and warnings.
Referenced by cdPrepareExit().
References cdCautions(), cdWarnings(), DEBUG_ENTRY, fixit, fprintf(), input, ipPun, LineSave, nzone, save, and STATIC.
Referenced by SaveDo().
References cdEXIT, dBaseSpecies, dBaseTrans, DEBUG_ENTRY, dense, EXIT_FAILURE, ExtraLymanLinesHeLike, ExtraLymanLinesJ05, ExtraLymanLinesJ15, fprintf(), GetDopplerWidth(), h2, ioQQQ, ipExtraLymanLinesHeLike, ipExtraLymanLinesJ05, ipExtraLymanLinesJ15, ipH_LIKE, ipHE_LIKE, iso_ctrl, iso_sp, lgIsLymanLineResolved(), lgPopsFirstCall, lgSaveOpticalDepths, LIMELM, N_, NISO, nSpecies, nWindLine, save, Save1Line(), STATIC, TauLine2, TotalInsanity(), and UTALines.
Referenced by SaveDo().
STATIC void SaveResults | ( | FILE * | ioPUN | ) |
References ASSERT, cdCautions(), cdWarnings(), DEBUG_ENTRY, fprintf(), input, LIMELM, LineSave, mean, opac, and STATIC.
Referenced by SaveDo().
char* chDummy |
STATIC long int ipPun |
Referenced by check_grid_file(), diatomics::H2_InterEnergy(), diatomics::H2_PunchDo(), t_save::lgSaveHeader(), t_save::lgSaveTitle(), parse_save_average(), parse_save_line(), parse_save_line(), process_output(), PrtLogLin(), save_average(), save_line(), save_opacity(), SaveAllSpeciesLabelsLevels(), SaveDo(), t_save::SaveHeaderDone(), SaveLineIntensity(), SaveSpecies(), SaveSpeciesBands(), SaveSpeciesOptDep(), SaveSpeciesPseudoCont(), and t_save::SaveTitleDone().
|
static |
Referenced by Save1Line(), and SaveLineStuff().
|
static |
Referenced by Save1Line(), and SaveLineStuff().