t_conv Struct Reference

#include <conv.h>

Collaboration diagram for t_conv:

Collaboration graph
[legend]

Data Fields

char * chConvEden
char * chConvIoniz
char * chNotConverged
bool lgConvIoniz
bool lgConvPops
double BadConvIoniz [2]
long int nPres2Ioniz
long int limPres2Ioniz
long int nTotalIoniz
long int nTotalIoniz_start
bool lgSearch
float AverEdenError
float BigHeatCoolError
float AverHeatCoolError
float BigPressError
float AverPressError
bool lgIonStageTrimed
bool lgCmHOsc
bool lgTOscl
bool lgEdenOscl
bool lgOscilOTS
bool lgConvTemp
bool lgConvPres
bool lgConvEden
bool lgLevel2_OTS_Imp
bool lgLevel2_Cool_Imp
long int nTotalFailures
long int nTeFail
float failmx
long int nPreFail
long int nNeFail
float BigEdenError
long int nIonFail
long int nPopFail
long int nConvIonizFails
long int nGrainFail
long int LimFail
bool lgMap
long int ifailz [12]
char chSolverEden [20]
char chSolverTemp [20]
bool lgBadStop
bool lgAutoIt
float autocv
double EdenErrorAllowed
float PressureErrorAllowed
float HeatCoolRelErrorAllowed
double * hist_pres_density
double * hist_pres_current
double * hist_pres_correct
long int hist_pres_npres
long int hist_pres_nzone
long int hist_pres_limit
double * hist_temp_temp
double * hist_temp_heat
double * hist_temp_cool
long int hist_temp_ntemp
long int hist_temp_nzone
long int hist_temp_limit

Detailed Description

the variables that deal with the convergence of the model

Definition at line 79 of file conv.h.


Field Documentation

a convergence criteria

Definition at line 218 of file conv.h.

Referenced by ConvIterCheck(), ParseCommands(), and zero().

remember the average electron density error

Definition at line 122 of file conv.h.

Referenced by ConvInitSolution(), PrtFinal(), radius_increment(), and zero().

Definition at line 126 of file conv.h.

Referenced by ConvInitSolution(), PrtFinal(), radius_increment(), and zero().

Definition at line 130 of file conv.h.

Referenced by ConvInitSolution(), PrtFinal(), radius_increment(), and zero().

when the lgConvIoniz flag is set false, the old and new numbers, the reason for the lack of convergence, should be set to following

Definition at line 100 of file conv.h.

Referenced by CO_drive(), CO_solve(), ConvBase(), ConvIoniz(), GrainChargeTemp(), and lgIonizConverg().

remember the biggest electron density error as test of convergence quality

Definition at line 179 of file conv.h.

Referenced by ConvInitSolution(), PrtFinal(), radius_increment(), and zero().

remember the biggest and average heating-cooling error

Definition at line 125 of file conv.h.

Referenced by ConvInitSolution(), PrtFinal(), radius_increment(), and zero().

remember the biggest and average pressure error

Definition at line 129 of file conv.h.

Referenced by ConvInitSolution(), PrtFinal(), radius_increment(), and zero().

this says why the electron density did not converge,

Definition at line 82 of file conv.h.

Referenced by ConvEdenIoniz().

this says why the ionization did not converge, reasons can be a large change in the level of ionization, or in the heating

Definition at line 86 of file conv.h.

Referenced by CO_drive(), CO_solve(), ConvBase(), ConvEdenIoniz(), ConvFail(), ConvInitSolution(), ConvIoniz(), GrainChargeTemp(), H2_LevelPops(), and ion_solver().

this gives the reason the model was declared not converged when 'iter to convergence' command is given

Definition at line 90 of file conv.h.

Referenced by ConvEdenIoniz(), ConvIterCheck(), and PrtComment().

which electron density solver to use? set with set eden solver command, simple and new

Definition at line 204 of file conv.h.

Referenced by ConvEdenIoniz(), ParseSet(), and zero().

which temperature density solver to use? set with set eden solver command, default and brent

Definition at line 208 of file conv.h.

Referenced by ConvTempEdenIoniz(), ParseSet(), and zero().

this is relative error in the electron density we want set in zero to 0.01 reset with set eden error command

Definition at line 223 of file conv.h.

Referenced by advection_set_detault(), ConvBase(), ConvEdenIoniz(), GrainDrive(), GrainsInit(), H2_LevelPops(), hmole(), Hydrogenic(), lgConvEden(), ParseSet(), radius_increment(), radius_next(), and zero().

failmx is largest relative error in heating cooling match

Definition at line 170 of file conv.h.

Referenced by ConvFail(), and IterStart().

allowed error in heating - cooling balance, set with TOLERANCE command default set in zerologic

Definition at line 232 of file conv.h.

Referenced by advection_set_detault(), ConvBase(), ConvFail(), ConvTempEdenIoniz(), GrainsInit(), H2_LevelPops(), lgConvTemp(), ParseCommands(), ParseSet(), radius_next(), TeBrent(), and zero().

Definition at line 236 of file conv.h.

Referenced by PressureChange(), and PunchDo().

Definition at line 236 of file conv.h.

Referenced by PressureChange(), and PunchDo().

these are used to retain the density pressure history in current zone, can be output with punch pressure history

Definition at line 236 of file conv.h.

Referenced by PressureChange(), and PunchDo().

Definition at line 237 of file conv.h.

Referenced by PressureChange().

Definition at line 237 of file conv.h.

Referenced by PressureChange(), and PunchDo().

Definition at line 237 of file conv.h.

Referenced by PressureChange().

Definition at line 241 of file conv.h.

Referenced by ConvEdenIoniz(), and PunchDo().

Definition at line 241 of file conv.h.

Referenced by ConvEdenIoniz(), and PunchDo().

Definition at line 242 of file conv.h.

Referenced by ConvEdenIoniz().

Definition at line 242 of file conv.h.

Referenced by ConvEdenIoniz(), and PunchDo().

Definition at line 242 of file conv.h.

Referenced by ConvEdenIoniz().

these are used to retain the temp/heat/cooling history in current zone, can be output with punch temperature history

Definition at line 241 of file conv.h.

Referenced by ConvEdenIoniz(), and PunchDo().

long int t_conv::ifailz[12]

zones where converge problems occurred

Definition at line 200 of file conv.h.

Referenced by ConvFail().

says "interate to convergence" command given

Definition at line 215 of file conv.h.

Referenced by ConvIterCheck(), ParseCommands(), PrtComment(), and zero().

flag saying that calculation stopped for bad reason mostly set in lgEndfun

Definition at line 212 of file conv.h.

Referenced by iter_end_check(), PrtComment(), and PrtFinal().

this says whether cooling-heating deriv is changing sign

Definition at line 136 of file conv.h.

Referenced by ConvFail(), and ConvTempEdenIoniz().

true when the electron density has converged

Definition at line 155 of file conv.h.

Referenced by ConvEdenIoniz(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolPunch(), HeatPunch(), lgConvEden(), and zero().

this flag is used in ConvPresTempEdenIoniz to check that ionization has converged

Definition at line 93 of file conv.h.

Referenced by CO_drive(), CO_solve(), ConvBase(), ConvFail(), ConvInitSolution(), ConvIoniz(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolPunch(), GrainChargeTemp(), HeatPunch(), ion_solver(), and RT_OTS_PrtRate().

this flag is used in ConvPresTempEdenIoniz to check that populations have converged

Definition at line 96 of file conv.h.

Referenced by CO_drive(), CO_solve(), ConvFail(), ConvPresTempEdenIoniz(), H2_LevelPops(), and hmole().

true if pressure is converged, false if not

Definition at line 152 of file conv.h.

Referenced by ConvPresTempEdenIoniz(), CoolPunch(), HeatPunch(), lgConvPres(), PressureChange(), PunchDo(), radius_next(), and zero().

true if temperature is converged, false if not

Definition at line 149 of file conv.h.

Referenced by ConvFail(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolPunch(), HeatPunch(), lgConvTemp(), PunchDo(), radius_next(), and zero().

this says whether electron density is changing sign

Definition at line 142 of file conv.h.

Referenced by ConvEdenIoniz(), and ConvFail().

flag set in ConvBase, saying whether ionization stage is trimmed down

Definition at line 133 of file conv.h.

Referenced by ConvBase(), CoolDima(), ion_trim(), and RT_line_all().

true if level 2 lines were contributors to the cooling, set in dimacool

Definition at line 161 of file conv.h.

Referenced by CoolDima(), and zero().

true if level 2 lines were contributors to the ots rates, set in dimacool

Definition at line 158 of file conv.h.

Referenced by CoolDima(), and zero().

lgMap is option to map failures

Definition at line 197 of file conv.h.

Referenced by ConvFail(), ParseCommands(), and zero().

this is true if ots rates are oscillating, and this is why ionization is not converged

Definition at line 146 of file conv.h.

Referenced by ConvBase(), ConvInitSolution(), ConvIoniz(), ConvTempEdenIoniz(), and RT_tau_init().

this says whether temp is changing sign

Definition at line 139 of file conv.h.

Referenced by ConvFail(), and ConvTempEdenIoniz().

long int t_conv::LimFail

LimFail is limit to number of te failures, set with "failures" cmnd

Definition at line 194 of file conv.h.

Referenced by ConvFail(), grid_do(), ParseCommands(), and zero().

a limit to the above, in case where one zone takes forever to not converge, usually very large, set with SET PRESIONIZ command

Definition at line 106 of file conv.h.

Referenced by ConvBase(), ParseSet(), and zero().

number of ConvIoniz ionization failures

Definition at line 188 of file conv.h.

Referenced by ConvEdenIoniz(), and ConvIoniz().

number of grain ionization balance failures

Definition at line 191 of file conv.h.

Referenced by ConvFail(), and IterStart().

long int t_conv::nIonFail

nIonFail is number of ionization failures

Definition at line 182 of file conv.h.

Referenced by cdNwcns(), ConvFail(), and IterStart().

long int t_conv::nNeFail

nNeFail is number of electron density failures

Definition at line 176 of file conv.h.

Referenced by cdNwcns(), ConvFail(), and IterStart().

long int t_conv::nPopFail

nIonFail is number of level population failures

Definition at line 185 of file conv.h.

Referenced by ConvFail(), and IterStart().

long int t_conv::nPreFail

nPreFail is number of pressure failures

Definition at line 173 of file conv.h.

Referenced by cdNwcns(), ConvFail(), and IterStart().

this will count the number of ionizations in one call from ConPvPresTempIoniz

Definition at line 103 of file conv.h.

Referenced by ConvBase(), ConvEdenIoniz(), ConvInitSolution(), ConvIoniz(), ConvPresTempEdenIoniz(), CoolEvaluate(), hmole_reactions(), ion_photo(), ion_trim(), lgIonizConverg(), OpacityAddTotal(), PrtZone(), PunchDo(), RT_line_all(), RT_OTS_Update(), and zero().

long int t_conv::nTeFail

nTeFail number of temperature failures

Definition at line 167 of file conv.h.

Referenced by cdNwcns(), ConvFail(), IterStart(), and ShowMe().

total number of all falures, used to trigger abort

Definition at line 164 of file conv.h.

Referenced by ConvFail(), and IterStart().

this will count the number of ionizations in all calls after zero can be used to determine very first pass through initial creation

Definition at line 110 of file conv.h.

Referenced by ChargTranEval(), ConvBase(), ConvEdenIoniz(), ConvInitSolution(), hmole(), HydroCollid(), ion_solver(), IonNitro(), lgCheckAsserts(), map_do(), PressureChange(), PrtFinal(), RT_DestProb(), RT_line_one(), RT_OTS_Update(), vib_evap(), and zero().

the same counter but set to zero after the initial solution is converged, so this is a measure of the number of calls within true zones

Definition at line 115 of file conv.h.

Referenced by ConvInitSolution(), lgCheckAsserts(), and PrtFinal().

this is relative error in the pressure, initialized to 0.02 in reset with set pressure error command

Definition at line 228 of file conv.h.

Referenced by advection_set_detault(), lgConvPres(), ParseSet(), and zero().


The documentation for this struct was generated from the following file:

Generated for cloudy by doxygen 1.5.9