#include "thirdparty.h"
Go to the source code of this file.
Data Structures | |
struct | t_continuum |
Functions | |
void | ContCreatePointers () |
void | ContSetIntensity () |
void | IncidentContinuumHere () |
void | ContCreateMesh () |
void | ContNegative () |
double | ffun (double anu, double *frac_beam_time, double *frac_beam_const, double *frac_isotropic) |
double | ffun (double anu) |
double | ffun1 (double xnu) |
void | outsum (double *outtot, double *outin, double *outout) |
double | DrvContPump (const TransitionProxy &t, realnum DopplerWidth) |
double | cont_gaunt_calc (double, double, double) |
Variables | |
t_continuum | continuum |
double cont_gaunt_calc | ( | double | , | |
double | , | |||
double | ||||
) |
cont_gaunt_calc do table look up of gaunt factor
temp | ||
z | ||
photon |
Definition at line 26 of file cont_gaunt.cpp.
References ASSERT, GauntIntegrand(), qg32(), and TE1RYD.
Referenced by dgaunt(), FillGFF(), SanityCheckBegin(), and SaveGaunts().
void ContCreateMesh | ( | ) |
set up continuum energy mesh if first call, otherwise reset to original mesh
Definition at line 38 of file cont_createmesh.cpp.
References t_rfield::anu, t_rfield::anu2, t_rfield::AnuOrg, t_rfield::anusqr, cdEXIT, ChckFill(), t_rfield::ConEmitLocal, t_rfield::ConSourceFcnLocal, continuum, t_rfield::csigc, t_rfield::csigh, DEBUG_ENTRY, t_rfield::egamry, t_rfield::emm, EXIT_FAILURE, fill(), t_rfield::fine_anu, t_rfield::fine_ener_hi, t_rfield::fine_ener_lo, geometry, ioQQQ, t_rfield::ipnt_coarse_2_fine, t_iterations::iter_malloc, iterations, t_trace::lgTrace, MALLOC, MAX2, NCELL, t_geometry::nend, t_geometry::nend_max, t_rfield::nfine_malloc, t_rfield::nflux, t_continuum::nrange, t_continuum::nStoredBands, t_rfield::nupper, read_continuum_mesh(), t_rfield::resetCoarseTransCoef(), rfield, rfield_opac_malloc(), rfield_opac_zero(), t_continuum::StoredEnergy, t_continuum::StoredResolution, trace, and t_rfield::widflx.
Referenced by cloudy(), GridGatherInCloudy(), and ParseCompile().
void ContCreatePointers | ( | ) |
ContCreatePointers create pointers for lines and continua, one time per coreload
Definition at line 56 of file cont_createpointers.cpp.
References abscf(), AllTransitions, t_rfield::anu, t_rfield::anu2, t_rfield::AnuOrg, t_rfield::anusqr, two_photon::As2nu, ASSERT, atmdat_2phot_shapefunction(), atoms, EmissionProxy::Aul(), cdEXIT, t_rfield::chContLabel, checkTransitionListOfLists(), t_elementnames::chElementSym, chIonLbl(), t_elementnames::chIonStage, t_rfield::chLineLabel, chLineLbl(), ContBandsCreate(), continuum, dBaseStates, dBaseTrans, DEBUG_ENTRY, dense, diatoms, eina(), ELECTRON_MASS, elementnames, TransitionList::Emis(), TransitionProxy::Emis(), EN1RYD, t_rfield::EnerGammaRay, t_continuum::EnergyKshell, EVRYD, EXIT_FAILURE, ExtraLymanLines, t_iso_sp::fb, fe, FeIIPoint(), fiddle(), t_continuum::filbnd, t_rfield::fine_anu, fixit(), g, GetGF(), he, CollisionProxy::heat(), Heavy, HFLines, hmi, t_oxy::i2d, t_oxy::i2p, t_opac::ica2ex, t_opac::ih2pnt, t_hmi::iheh1, t_hmi::iheh2, t_opac::in1, t_fe2ovr_la::init_pointers(), Singleton< t_yield >::Inst(), Singleton< t_ADfA >::Inst(), Singleton< t_fe2ovr_la >::Inst(), t_yield::ion_emit(), ionbal, ioQQQ, t_rfield::ip1000A, t_he::ip374, t_he::ip660, t_rfield::ipB_filter, t_opac::ipCKshell, t_ionbal::ipCompRecoil, TransitionProxy::ipCont(), ipContEnergy(), t_opac::ipElement, t_rfield::ipEnerGammaRay, ipExtraLymanLines, t_fe::ipfe10, EmissionProxy::ipFine(), ipFineCont(), t_rfield::ipG0_DB96_hi, t_rfield::ipG0_DB96_lo, t_rfield::ipG0_spec_hi, t_rfield::ipG0_spec_lo, t_rfield::ipG0_TH85_hi, t_rfield::ipG0_TH85_lo, ipH1s, ipH2p, ipH2s, ipH_LIKE, ipHe1s1S, ipHe2s3S, ipHE_LIKE, t_Heavy::ipHeavy, ipHELIUM, t_hmi::iphmin, ipHYDROGEN, ipLineEnergy(), t_opac::ipmgex, t_opac::ipo1exc, t_opac::ipo3exc, t_opac::ipo3exc3, t_atoms::ipoiex, ipoint(), ipOXYGEN, t_opac::ippr, ipSatelliteLines, t_secondaries::ipSecIon, ipShells(), two_photon::ipTwoPhoE, t_rfield::ipV_filter, t_rt::ipxry, iso_create(), iso_ctrl, iso_sp, t_continuum::KshellLimit, t_trace::lgConBug, t_isoCTRL::lgDielRecom, t_dense::lgElmtOn, t_rt::lgFstOn, lgLinesAdded, t_trace::lgPointBug, lgStatesAdded, t_trace::lgTrace, t_trace::lgTrLine, LIMELM, MAX2, t_yield::nelem(), nHFLines, NISO, nLevel1, t_yield::nlines(), t_isoCTRL::nLyman_malloc, nSpecies, t_Heavy::nsShells, t_iso_sp::numLevels_max, t_rfield::nupper, nUTA, nWindLine, opac, oxy, t_fe::pfe10, t_fe::pfe11a, t_fe::pfe11b, t_fe::pfe14, t_ADfA::ph1(), PI, PI4, pow(), rfield, rt, RYDLAM, SatelliteLines, secondaries, t_yield::set_ipoint(), t_isoCTRL::SmallA, SMALLFLOAT, SPEEDLIGHT, TauDummy, TauLine2, TauLines, trace, t_iso_sp::trans(), t_iso_sp::TwoNu, TwoPhotonSetup(), UTALines, t_Heavy::Valence_IP_Ryd, t_rfield::widflx, WL_B_FILT, and WL_V_FILT.
Referenced by cloudy(), and ParseCompile().
void ContNegative | ( | ) |
ContNegative sanity check for negative continuum intensities
Definition at line 10 of file cont_negative.cpp.
References t_rfield::anu, t_rfield::chContLabel, t_rfield::chLineLabel, t_rfield::ConInterOut, DEBUG_ENTRY, dense, t_dense::eden, t_rfield::flux, ioQQQ, t_rfield::nflux, nzone, t_rfield::otscon, t_rfield::otslin, t_rfield::outlin, phycon, rfield, t_rfield::SummedCon, and t_phycon::te.
Referenced by iso_level(), and PrintRates().
void ContSetIntensity | ( | ) |
ContSetIntensity derive intensity of incident continuum
Definition at line 100 of file cont_setintensity.cpp.
References t_rfield::anu, t_rfield::anu2, t_rfield::anu3, t_rfield::anulog, t_rfield::AnuOrg, ASSERT, aweigh, BIGFLOAT, called, cdEXIT, t_rfield::chContLabel, t_rfield::chLineLabel, t_rfield::chSpType, t_continuum::cn1216, t_continuum::cn4861, t_ADfA::coll_ion_wrapper(), t_rfield::ConEmitOut, t_rfield::ConEmitReflec, conorm(), t_rfield::ConRefIncid, t_thermal::ConstTemp, t_rfield::ContBoltz, continuum, t_rfield::convoc, t_ionbal::CosRayIonRate, t_hextra::cryden, t_rfield::csigc, t_rfield::csigh, t_secondaries::csupra, DEBUG_ENTRY, dense, t_dense::density_low_limit, t_dense::eden, EdenChange(), t_dense::EdenExtra, t_dense::EdenHCorr, t_dense::EdenHCorr_f, t_dense::EdenSet, t_dense::EdenTrue, t_hextra::effneu, t_rfield::egamry, ELECTRON_MASS, ELEM_CHARGE_ESU, t_rfield::emm, EN1RYD, EXIT_FAILURE, EXIT_SUCCESS, extin(), t_iso_sp::fb, t_continuum::fbeta, ffun(), t_rfield::fine_anu, t_rfield::flux, t_rfield::flux_beam_const, t_rfield::flux_beam_const_save, t_rfield::flux_beam_time, t_rfield::flux_isotropic, t_rfield::flux_isotropic_save, t_rfield::flux_time_beam_save, t_rfield::flux_total_incident, t_rfield::FluxFaint, t_continuum::fluxv, FR1RYD, t_hextra::frcneu, fweigh, t_prt::fx1ryd, t_prt::GammaLumin, t_dense::gas_phase, Heavy, hextra, HNU3C2, HPLANCK, hydro, t_oxy::i2d, t_oxy::i2p, t_rfield::Illumination, Singleton< t_ADfA >::Inst(), ionbal, t_dense::IonHigh, t_dense::IonLow, ioQQQ, ipCARBON, t_opac::ipCKshell, t_ionbal::ipCompRecoil, t_prt::ipeak, t_rfield::ipEnerGammaRay, t_rfield::ipG0_DB96_hi, t_rfield::ipG0_DB96_lo, ipH1s, ipH2p, ipH_LIKE, ipHE_LIKE, t_Heavy::ipHeavy, ipHELIUM, ipHYDROGEN, ipLITHIUM, t_opac::ipo3exc, ipoint(), ipOXYGEN, t_rfield::ipPlasma, t_rfield::ipPlasmax, t_rfield::ipSpec, iso_continuum_lower(), iso_ctrl, iso_sp, t_rfield::lgBeamed, t_trace::lgComBug, t_ionbal::lgCompRecoil, t_continuum::lgCon0, t_trace::lgConBug, t_isoCTRL::lgContinuumLoweringEnabled, t_dense::lgElmtOn, t_rfield::lgHabing, t_hydro::lgHInducImp, t_rfield::lgHionRad, t_rfield::lgMeshSetUp, t_hextra::lgNeutrnHeatOn, t_noexec::lgNoExec, t_rfield::lgOcc1Hi, t_rfield::lgPlasNu, t_trace::lgPtrace, t_dense::lgSetIoniz, t_called::lgTalk, t_thermal::lgTemperatureConstant, t_rfield::lgTimeVary, t_trace::lgTrace, LIMELM, max(), MAX2, MIN2, t_rfield::nfine, t_rfield::nfine_malloc, t_rfield::nflux, NISO, noexec, t_rfield::nShape, t_iso_sp::numLevels_max, t_rfield::nupper, t_rfield::occ1nu, t_rfield::occmax, t_rfield::occmnu, t_rfield::OccNumbIncidCont, opac, t_rfield::OpticalDepthScaleFactor, oxy, t_prt::pbal, phycon, PI, PI4, t_rfield::plsfrq, t_rfield::plsfrqmax, pow(), POW2, pow2(), POW3, t_prt::powion, t_prt::pradio, prt, ptrcer(), t_prt::q, t_rfield::qbal, t_prt::qgam, t_rfield::qhe, t_rfield::qheii, t_rfield::qhtot, t_rfield::qrad, t_rfield::qtot, t_prt::qx, rfield, RT_OTS_Zero(), secondaries, t_secondaries::SetCsupra, t_dense::SetIoniz, ShowMe(), t_rfield::slope, SMALLFLOAT, SPEEDLIGHT, t_iso_sp::st, sumcon(), t_continuum::sv1216, t_continuum::sv4861, t_rfield::tbr4nu, t_rfield::tbrmax, t_rfield::tbrmnu, t_phycon::te, TE1RYD, t_phycon::telogn, TempChange(), t_phycon::TEnerDen, thermal, t_timesc::TimeErode, timesc, TorF(), TotalInsanity(), t_continuum::TotalLumin, t_continuum::totlsv, t_hextra::totneu, trace, t_rfield::uh, t_rfield::uheii, t_rfield::widflx, t_dense::xIonDense, and t_prt::xpow.
Referenced by cloudy().
double DrvContPump | ( | const TransitionProxy & | t, | |
realnum | DopplerWidth | |||
) |
DrvContPump local continuum pumping rate radiative transfer for all lines
*t | ||
DopplerWidth |
Definition at line 40 of file cont_pump.cpp.
References a0, BREAK, EmissionProxy::damp(), my_Integrand_con_pump_op::damp, DEBUG_ENTRY, t_radius::dRNeff, TransitionProxy::Emis(), fitted(), EmissionProxy::iRedisFun(), t_rfield::lgInducProcess, EmissionProxy::opacity(), EmissionProxy::PopOpc(), my_Integrand_con_pump_op::PumpTau, radius, rfield, Integrator< Integrand, Method >::sum(), and EmissionProxy::TauIn().
Referenced by ParseDrive().
double ffun | ( | double | anu | ) |
ffun version without fractions
Definition at line 17 of file cont_ffun.cpp.
References DEBUG_ENTRY, and ffun().
Referenced by ContSetIntensity(), ffun(), and IncidentContinuumHere().
double ffun | ( | double | anu, | |
double * | frac_beam_time, | |||
double * | frac_beam_const, | |||
double * | frac_isotropic | |||
) |
ffun evaluate total flux for sum of all continuum sources
anu | photon energy (Rydberg) where continuum is evaluated | |
frac_beam_time | fraction of beamed continuum that is varies with time | |
frac_beam_const | fraction of beamed continuum that is constant | |
frac_isotropic | fraction of continuum that is isotropic |
Definition at line 37 of file cont_ffun.cpp.
References ASSERT, BIGFLOAT, DEBUG_ENTRY, ffun1(), ioQQQ, t_rfield::ipSpec, t_rfield::lgBeamed, t_rfield::lgTimeVary, t_rfield::nShape, rfield, SMALLFLOAT, and t_rfield::spfac.
double ffun1 | ( | double | xnu | ) |
ffun1 derive flux at a specific energy, for one continuum
anu | photon energy (Rydberg) where continuum is evaluated |
Definition at line 112 of file cont_ffun.cpp.
References t_rfield::anu, ASSERT, BIG, cdEXIT, t_rfield::chSpType, t_rfield::cutoff, DEBUG_ENTRY, t_rfield::egamry, t_rfield::emm, EXIT_FAILURE, fp_equal(), fp_equal_tol(), ioQQQ, ipoint(), t_rfield::ipSpec, MAX2, MIN2, NCELL, t_rfield::nShape, t_rfield::nupper, PlanckFunction(), pow(), POW3, rfield, sexp(), t_rfield::slope, TE1RYD, t_rfield::tFluxLog, t_rfield::tNu, and t_rfield::tslop.
Referenced by conorm(), ffun(), pintr(), and qintr().
void IncidentContinuumHere | ( | ) |
IncidentContinuumHere derive intensity of incident continuum
Definition at line 68 of file cont_setintensity.cpp.
References t_rfield::anu, DEBUG_ENTRY, t_rfield::ExtinguishFactor, ffun(), t_rfield::flux, ioQQQ, max(), t_rfield::nflux, rfield, SMALLFLOAT, and t_rfield::widflx.
void outsum | ( | double * | outtot, | |
double * | outin, | |||
double * | outout | |||
) |
Definition at line 393 of file cont_ffun.cpp.
References t_rfield::anu, t_rfield::ConInterOut, DEBUG_ENTRY, EN1RYD, t_rfield::flux, t_rfield::nflux, t_rfield::outlin, t_rfield::outlin_noplot, and rfield.
Referenced by lgConserveEnergy().
Definition at line 5 of file continuum.cpp.
Referenced by ChckFill(), cloudy(), conorm(), ContBandsCreate(), ContCreateMesh(), ContCreatePointers(), ContSetIntensity(), fill(), FindVCoStar(), GridGatherInCloudy(), InitDefaultsPreparse(), InitGrid(), ipoint(), ipShells(), IterRestart(), lgCompileAtmosphere(), lgCompileAtmosphereCoStar(), lgConserveEnergy(), lgValidBinFile(), LimitSh(), lines_continuum(), lines_general(), mie_read_opc(), mie_write_opc(), OpacityCreate1Element(), ParseSet(), PrtComment(), PrtHeader(), ptrcer(), read_continuum_mesh(), ReadTable(), SanityCheckBegin(), save_opacity(), SaveDo(), and zero().