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

Go to the source code of this file.

Data Structures

struct  t_dynamics

Functions

void DynaIterStart (void)
void DynaIterEnd (void)
void DynaStartZone (void)
void DynaEndZone (void)
void DynaIonize (void)
void DynaZero (void)
void DynaCreateArrays (void)
void ParseDynaWind (Parser &p)
void ParseDynaTime (Parser &p)
void DynaPrtZone (void)
void DynaSave (FILE *ipPnunit, char chJob)
void DynaPunchTimeDep (FILE *ipPnunit, const char *chJob)
realnum DynaFlux (double depth)

Variables

t_dynamics dynamics

Function Documentation

◆ DynaCreateArrays()

void DynaCreateArrays ( void )

DynaCreateArrays allocate some space needed to save the dynamics structure variables, called from atmdat_readin

Definition at line 1400 of file dynamics.cpp.

References DEBUG_ENTRY, dense, dynamics, EnthalpyDensity, fixit(), ipH_LIKE, ipHYDROGEN, iso_sp, LIMELM, MALLOC, mole_global, NISO, Old_DenMass, Old_density, Old_depth, Old_ednstr, Old_EnthalpyDensity, Old_gas_phase, Old_hiistr, Old_histr, Old_molecules, Old_pressure, Old_StatesElem, Old_xIonDense, Old_xLyman_depth, struc, Upstream_molecules, UpstreamElem, UpstreamIon, and UpstreamStatesElem.

Referenced by atmdat_readin().

Here is the call graph for this function:

◆ DynaEndZone()

void DynaEndZone ( void )

DynaEndZone called at end of iteration when advection is turned on

Definition at line 853 of file dynamics.cpp.

References DEBUG_ENTRY, DynaFlux(), dynamics, ioQQQ, radius, and wind.

Referenced by ZoneEnd().

Here is the call graph for this function:

◆ DynaFlux()

realnum DynaFlux ( double depth)

Definition at line 1292 of file dynamics.cpp.

References DEBUG_ENTRY, dense, and dynamics.

Referenced by DynaEndZone(), PresTotCurrent(), and stepDensity().

◆ DynaIonize()

void DynaIonize ( void )

DynaIonize, called from ionize to evaluate advective terms for current conditions

Definition at line 186 of file dynamics.cpp.

References AdvecSpecificEnthalpy, ASSERT, DEBUG_ENTRY, dense, Dyn_dr, dynamics, EnthalpyDensity, ioQQQ, ipCARBON, ipH_LIKE, ipHYDROGEN, ipUpstream, iso_sp, iteration, LIMELM, mole_global, NISO, nzone, Old_depth, Old_xIonDense, phycon, POW2, pressure, radius, scalingDensity(), struc, thermal, Upstream_molecules, UpstreamElem, UpstreamIon, UpstreamStatesElem, and wind.

Referenced by ConvBase().

Here is the call graph for this function:

◆ DynaIterEnd()

void DynaIterEnd ( void )

routine called at end of iteration when advection is turned on

Definition at line 874 of file dynamics.cpp.

References ASSERT, cosmology, DEBUG_ENTRY, Dyn_dr, dynamics, DynaNewStep(), DynaSaveLast(), GetHubbleFactor(), ioQQQ, iphUpstream, ipUpstream, ipyUpstream, iteration, iterations, lgtime_dt_specified, lgtime_Recom, nTime_flux, phycon, pressure, radius, rfield, scalingDensity(), StopCalc, thermal, time_dt, time_dt_scale_factor, time_elapsed_time, timestep_next(), and wind.

Referenced by IterRestart().

Here is the call graph for this function:

◆ DynaIterStart()

void DynaIterStart ( void )

routine called at start of iteration when advection is turned on

Definition at line 2207 of file dynamics.cpp.

References cdEXIT, DEBUG_ENTRY, dynamics, EXIT_FAILURE, hextra, ioQQQ, iteration, linint(), nTime_flux, rfield, time_elapsed_time, and time_flux_ratio.

Referenced by IterStart().

Here is the call graph for this function:

◆ DynaPrtZone()

void DynaPrtZone ( void )

DynaPrtZone - called to print zone results

Definition at line 2009 of file dynamics.cpp.

References AdvecSpecificEnthalpy, ASSERT, DEBUG_ENTRY, dense, dynamics, EnthalpyDensity, ioQQQ, nzone, phycon, POW2, pressure, scalingDensity(), struc, thermal, timesc, and wind.

Referenced by PrtZone().

Here is the call graph for this function:

◆ DynaPunchTimeDep()

void DynaPunchTimeDep ( FILE * ipPnunit,
const char * chJob )

DynaPunchTimeDep - save info about time dependent solution

Parameters
ipPnunit
*chJob

Definition at line 2039 of file dynamics.cpp.

References cdIonFrac(), cdTemp(), colden, cosmology, DEBUG_ENTRY, dense, dynamics, findspecieslocal(), ipCOL_HTOT, ipHYDROGEN, rfield, scalingDensity(), SDIV(), and TotalInsanity().

Referenced by SaveDo().

Here is the call graph for this function:

◆ DynaSave()

void DynaSave ( FILE * ipPnunit,
char chJob )

DynaSave save info related to advection

Parameters
ipPnunit
chJob

Definition at line 2148 of file dynamics.cpp.

References AdvecSpecificEnthalpy, DEBUG_ENTRY, dynamics, ipHYDROGEN, phycon, radius, scalingDensity(), thermal, and TotalInsanity().

Referenced by SaveDo().

Here is the call graph for this function:

◆ DynaStartZone()

void DynaStartZone ( void )

◆ DynaZero()

void DynaZero ( void )

DynaZero zero some dynamics variables, called from zero.c

Definition at line 1321 of file dynamics.cpp.

References AdvecSpecificEnthalpy, BIGFLOAT, DEBUG_ENTRY, dynamics, ipH_LIKE, NISO, and nOld_zone.

Referenced by zero().

◆ ParseDynaTime()

void ParseDynaTime ( Parser & p)

◆ ParseDynaWind()

void ParseDynaWind ( Parser & p)
Todo
2 Need to include divergence terms in pressure balance if flux index is != 0
Todo
2 Need to include divergence terms in pressure balance if flux index is != 0

Definition at line 1798 of file dynamics.cpp.

References advection_set_default(), BIGDOUBLE, cdEXIT, DEBUG_ENTRY, dense, dynamics, EXIT_FAILURE, Parser::getNumberCheck(), Parser::getNumberDefault(), Parser::getNumberPlain(), ioQQQ, Parser::nMatch(), pressure, and wind.

Referenced by ParseCommands().

Here is the call graph for this function:

Variable Documentation

◆ dynamics