t_dynamics Struct Reference

#include <dynamics.h>

Collaboration diagram for t_dynamics:
[legend]

Public Member Functions

double Cool ()
double Heat ()
double dCooldT ()

Data Fields

bool lgAdvection
double Cool_r
double Heat_v
double dHeatdT
double CoolMax
double HeatMax
double Rate
double ** Source
double *** StatesElemNEW
double * H2_molec
double * CO_molec
bool lgISO [NISO]
bool lgMETALS
bool lgCoolHeat
bool lg_coronal_time_init
bool lgTimeDependentStatic
double time_elapsed
bool lgRecom
bool lgStatic_completed
double AdvecLengthInit
double FluxCenter
char chPresMode [20]
double ShockDepth
double ShockMach
long int n_initial_relax
double FluxScale
bool lgFluxDScale
double FluxIndex
double dRad
double oldFullDepth
double convergence_error
double convergence_tolerance
double discretization_error
double error_scale1
double error_scale2
bool lgSetPresMode
realnum Upstream_hden
bool lgEquilibrium
bool lgTracePrint
double timestep_init
double timestep
double timestep_stop
double timestep_factor

Detailed Description

all of these are initialized in zero

Definition at line 62 of file dynamics.h.


Member Function Documentation

double t_dynamics::Cool (  ) 
double t_dynamics::dCooldT (  ) 

Definition at line 2733 of file dynamics.cpp.

References Cool_r, phycon, t_pressure::PresGasCurr, pressure, and t_phycon::te.

Referenced by CoolEvaluate(), DynaIonize(), and DynaSave().

double t_dynamics::Heat (  ) 

Field Documentation

the initial value of the advection length, reset with set advection length

Definition at line 114 of file dynamics.h.

Referenced by DynaIterEnd(), DynaZero(), and ParseSet().

flag set by the "set dynamics pressure mode" command

Definition at line 120 of file dynamics.h.

Referenced by DynaPresChngFactor(), and ParseSet().

Definition at line 86 of file dynamics.h.

Referenced by CO_solve(), DynaCreateArrays(), and DynaIonize().

convergence_error and discretization_error give estimates of convergence: :: convergence_error -- change between the last iterations; :: discretization_error -- error in the upstream interpolation. When (and if) discretization_error >> convergence_error, the interpolation length should be decreased.

They should both be based on the same norm of the models, but what norm may be experimented with -- at present, it's H+/Htot just weighted by cell number, which makes the estimates sensitive to the structure of the primary ionization front.

Definition at line 159 of file dynamics.h.

Referenced by ConvIterCheck(), and DynaNewStep().

the allowed rel error, by default 0.1

Definition at line 162 of file dynamics.h.

Referenced by ConvIterCheck(), DynaNewStep(), and DynaZero().

advective cooling minus heating (erg cm^-3 s^-1)

Definition at line 68 of file dynamics.h.

Referenced by Cool(), dCooldT(), DynaIonize(), and DynaZero().

largest fraction of cooling and heating

Definition at line 73 of file dynamics.h.

Referenced by DynaZero(), IterStart(), lines_general(), and PrtComment().

Definition at line 68 of file dynamics.h.

Referenced by CoolEvaluate(), DynaIonize(), and DynaZero().

the error to be expected based on the coarseness of current advection length

Definition at line 165 of file dynamics.h.

Referenced by ConvIterCheck(), DynaIterEnd(), DynaNewStep(), DynaStartZone(), and DynaZero().

the proposed thickness for the next zone when advection is included

Definition at line 144 of file dynamics.h.

Referenced by DynaStartZone(), DynaZero(), and radius_next().

two ways of scaling the error estimate for convergence

Definition at line 168 of file dynamics.h.

Referenced by DynaNewStep().

Definition at line 168 of file dynamics.h.

Referenced by ConvIterCheck(), DynaIterEnd(), DynaNewStep(), DynaStartZone(), and DynaZero().

the center of the particle flux law

Definition at line 117 of file dynamics.h.

Referenced by DynaFlux(), DynaZero(), and ParseDynaWind().

the power law index of the particle flux law

Definition at line 141 of file dynamics.h.

Referenced by DynaFlux(), DynaZero(), and ParseDynaWind().

the scale of the particle flux law

Definition at line 135 of file dynamics.h.

Referenced by DynaFlux(), DynaZero(), and ParseDynaWind().

save H2 and CO densities

Definition at line 85 of file dynamics.h.

Referenced by DynaCreateArrays(), and DynaIonize().

Definition at line 68 of file dynamics.h.

Referenced by DynaIonize(), DynaZero(), and Heat().

Definition at line 73 of file dynamics.h.

Referenced by DynaZero(), IterStart(), lines_general(), and PrtComment().

var set with coronal time init - says to use constant temperature on first relax iterations then let temp run free

Definition at line 99 of file dynamics.h.

Referenced by DynaIterEnd(), InitDefaultsPreparse(), and ParseCoronal().

factor to turn off advective cooling

Definition at line 95 of file dynamics.h.

Referenced by DynaIonize(), DynaZero(), and ParseDont().

Enforce equilibrium populations

Definition at line 178 of file dynamics.h.

Referenced by CO_solve(), DynaZero(), iso_level(), lgHomogeneousSource(), and ParseSet().

whether we also need to scale by the face density

Definition at line 138 of file dynamics.h.

Referenced by DynaFlux(), DynaZero(), and ParseDynaWind().

factor to turn off advection for H-like or He-like iso seq, no advection h-like, he-like

Definition at line 89 of file dynamics.h.

Referenced by DynaZero(), iso_level(), ParseDont(), and PresTotCurrent().

factor to turn off advection for rest of ions, "no advection metals"

Definition at line 92 of file dynamics.h.

Referenced by DynaZero(), ParseDont(), and PresTotCurrent().

true if recombination logic in place

Definition at line 108 of file dynamics.h.

Referenced by DynaIterEnd(), DynaIterStart(), DynaZero(), PrtComment(), radius_next(), and timestep_next().

flag set true if set dynamics flow type was set - this means to use the specified option, and not to derive one

Definition at line 172 of file dynamics.h.

Referenced by DynaPresChngFactor(), DynaZero(), and ParseSet().

true if model ends since time dependent model is finished

Definition at line 111 of file dynamics.h.

Referenced by cloudy(), DynaIterEnd(), and DynaZero().

set how many iterations we will start with, before allowing changes. This allows the solution to relax to an equilibrium set with "set dynamics relax" command

Definition at line 132 of file dynamics.h.

Referenced by CO_solve(), ConvInitSolution(), CoolEvaluate(), DynaIonize(), DynaIterEnd(), DynaZero(), iso_level(), iso_radiative_recomb(), IterEnd(), lgHomogeneousSource(), ParseSet(), PrtFinal(), radius_next(), and store_new_densities().

the depth of the last iteration

Definition at line 147 of file dynamics.h.

Referenced by DynaCreateArrays(), DynaIonize(), and DynaSaveLast().

the shock depth in cm set with "set dynamics shock depth" command

Definition at line 123 of file dynamics.h.

Referenced by DynaPresChngFactor(), and ParseSet().

the isothermal Mach number at which to insert an antishock set with "set dynamics antishock Mach" command

Definition at line 127 of file dynamics.h.

Referenced by DynaPresChngFactor(), and ParseSet().

the advective recombination rate (cm^-3 s^-1)

Definition at line 79 of file dynamics.h.

Referenced by DynaCreateArrays(), DynaIonize(), DynaSave(), DynaStartZone(), iso_level(), lgHomogeneousSource(), PrintRates(), and SaveDo().

the advective isolevel balance terms

Definition at line 82 of file dynamics.h.

Referenced by DynaCreateArrays(), DynaIonize(), and iso_level().

elapsed time in time dependent static model

Definition at line 105 of file dynamics.h.

Referenced by ConvInitSolution(), DynaIterEnd(), DynaIterStart(), DynaPunchTimeDep(), DynaZero(), and SaveDo().

Definition at line 185 of file dynamics.h.

Referenced by DynaIterEnd(), and DynaZero().

Definition at line 185 of file dynamics.h.

Referenced by DynaZero(), ParseDynaTime(), and timestep_next().

Definition at line 185 of file dynamics.h.

Referenced by DynaIterEnd(), and ParseDynaTime().

Upstream H density

Definition at line 175 of file dynamics.h.

Referenced by CoolEvaluate(), DynaStartZone(), and zero().


The documentation for this struct was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Nov 2012 for cloudy by  doxygen 1.6.1