cloudy trunk
Loading...
Searching...
No Matches
init.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void InitCoreload (void)
void InitDefaultsPreparse (void)
void InitCoreloadPostparse (void)
void InitSimPostparse (void)
void zero (void)

Function Documentation

◆ InitCoreload()

void InitCoreload ( void )

one time initialization of core load, called from cdDrive, this sets minimum set of values needed for the code to start - called after input lines have been read in and checked for VARY or GRID - so known whether single or multiple sims will be run

Definition at line 42 of file init_coreload.cpp.

References broke, chOptimFileName, cosmology, DEBUG_ENTRY, dense, diatoms_init(), grid, hcmap, Heavy, hextra, input, ionbal, ipCARBON, ipH_LIKE, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipIRON, ipMAGNESIUM, ipNEON, ipNITROGEN, ipOXYGEN, ipSILICON, ipSULPHUR, iso_ctrl, iso_sp, iso_update_num_levels(), lgLinesAdded, lgStatesAdded, LIMELM, LIMPAR, MAX2, max_num_levels, NISO, optimize, rfield, SaveFilesInit(), SMALLFLOAT, and struc.

Referenced by cdDrive().

Here is the call graph for this function:

◆ InitCoreloadPostparse()

void InitCoreloadPostparse ( void )

initialization after parser, called one time per core load create space needed for code to operate

Definition at line 15 of file init_coreload_postparse.cpp.

References ASSERT, DEBUG_ENTRY, dense, ipH_LIKE, iso_ctrl, iso_sp, iso_update_num_levels(), LIMELM, and NISO.

Referenced by cloudy().

Here is the call graph for this function:

◆ InitDefaultsPreparse()

void InitDefaultsPreparse ( void )

initialize values that are changed in the parser. Called just before parser, will be called one time per core load

Set the default collision strength for dBase transitions when there is no radiative data

Definition at line 49 of file init_defaults_preparse.cpp.

References abund, atmdat, co, COLUMN_INIT, continuum, cpu, DEBUG_ENTRY, dense, DummyEmis, dynamics, EmLineZero(), FeII, Illuminate::FORWARD, fudgec, geometry, grid, hcmap, hextra, HIONPOT, t_atmdat::HYBRID, ionbal, ipH_LIKE, ipHYDROGEN, ipOXYGEN, LIMELM, LIMPUN, LIMSPC, LINE_CONT_SHIELD_FEDERMAN, NDPLOT, NFUDGC, NISO, noexec, opac, optimize, phycon, plotCom, pressure, prt, radius, rfield, rt, save, StopCalc, TauZero(), thermal, trace, and wind.

Referenced by cloudy(), and grid_do().

Here is the call graph for this function:

◆ InitSimPostparse()

void InitSimPostparse ( void )

initialize values at start of simulation, called after parser, sets initial or zero values at start of each sim in grid

Definition at line 34 of file init_sim_postparse.cpp.

References AllTransitions, ASSERT, atoms, cdEXIT, colliders, DEBUG_ENTRY, dense, deut, diatoms, elementnames, EXIT_FAILURE, findspecieslocal(), GRAV_CONST, Heavy, ioQQQ, ipH_LIKE, ipHELIUM, ipHYDROGEN, iso_ctrl, iso_sp, iso_update_num_levels(), iterations, LIMELM, molezone::location, mole, mole_create_react(), mole_global, MonitorResults, NISO, POW2, pressure, radius, rfield, rfield_opac_zero(), SOLAR_MASS, struc, thermal, TorF(), trace, and wind.

Referenced by cloudy().

Here is the call graph for this function:

◆ zero()

void zero ( void )

zero actively zero out or initialize variables needed for model calculation this is the old one and should be removed - its vars moved into those above

Todo
2 change this to CS_new
Todo
2 file opacities are disabled for now - reinstate this when arrays settle down

option to set proton elimination rates to zero

>refer CO chemistry Huntress, W. T., 1977, ApJS, 33, 495 By default, this is false - changed with set chemistry command

option to not include neutrals in the non-equilibrium scheme

refer Federman, S. R. & Zsargo, J. 2003, ApJ, 589, 319 By default, this is false - changed with set chemistry command

HeatH2Dexc_used is heating due to collisional deexcitation of vib-excited H2 actually used

these are derivative wrt temp for collisional processes within X

the Solomon process rate H2 dissociates into X continuum - actually used

set_NaN( hmi.H2_Solomon_dissoc_rate_used );

H2 + hnu => 2H from TH85

H2 + hnu => 2H actually used

Definition at line 73 of file zero.cpp.

References abund, AbundancesZero(), atmdat, atoms, ca, called, cdEXIT, co, colden, continuum, conv, CoolHeavy, CoolZero(), dark, DEBUG_ENTRY, dense, DEPTH_OFFSET, DoppVel, dynamics, DynaZero(), EXIT_FAILURE, FeIIZero(), fill(), fixit(), fnzone, geometry, GrainZero(), he, HeatZero(), hextra, hmi, hydro, hyperfine, input, Singleton< t_ADfA >::Inst(), Singleton< t_fe2ovr_la >::Inst(), Singleton< t_yield >::Inst(), ionbal, ioPrnErr, ioQQQ, ipCRD, ipCRDW, ipH2p, ipH_LIKE, ipHe2p1P, ipHE_LIKE, ipHELIUM, ipHYDROGEN, ipIRON, ipPRD, iso_ctrl, iteration, iterations, lgAbort, lgPrnErr, lgTestCodeCalled, lgTestCodeEnabled, LIMELM, LineSave, Magnetic_init(), MALLOC, mean, mole, mole_global, N_OI_LEVELS, NCOLD, t_atmdat::NCX, NISO, NSHELLS, NumDeriv, nzone, opac, oxy, peimbt, PHFIT96, phycon, pressure, radius, t_yield::reset_yield(), rfield, rt, secondaries, set_NaN(), t_ADfA::set_version(), ShowMe(), SMALLFLOAT, state, TempChange(), thermal, timesc, wcnint(), and t_fe2ovr_la::zero_opacity().

Referenced by cdInit(), hypho(), and optimize_func().

Here is the call graph for this function: