/home66/gary/public_html/cloudy/c10_branch/source/conv_init_solution.cpp File Reference

#include "cddefines.h"
#include "physconst.h"
#include "trace.h"
#include "struc.h"
#include "rfield.h"
#include "mole.h"
#include "dense.h"
#include "stopcalc.h"
#include "heavy.h"
#include "wind.h"
#include "geometry.h"
#include "thermal.h"
#include "radius.h"
#include "phycon.h"
#include "pressure.h"
#include "conv.h"
#include "hmi.h"
#include "dynamics.h"
Include dependency graph for conv_init_solution.cpp:

Go to the source code of this file.

Defines

#define PCHNG   0.98

Functions

STATIC bool lgCoolHeatCheckConverge (double *CoolNet, bool lgReset)
STATIC bool lgCoolNetConverge (double *CoolNet, double *dCoolNetDT, bool lgReset)
STATIC void ChemImportance (void)
double FindTempChangeFactor (void)
int ConvInitSolution (void)

Variables

static double dCoolNetDTOld = 0
static double OxyInGrains
static double FracMoleMax

Define Documentation

#define PCHNG   0.98

Referenced by ConvInitSolution().


Function Documentation

STATIC void ChemImportance ( void   ) 
int ConvInitSolution ( void   ) 

ConvInitSolution drive search for initial solution at illuminated face, called by cloudy, returns 1 if outside conditions appropriate for cloudy

Definition at line 236 of file conv_init_solution.cpp.

References t_rfield::anu, ASSERT, t_conv::AverEdenError, t_conv::AverHeatCoolError, t_conv::AverPressError, t_conv::BigEdenError, t_conv::BigHeatCoolError, t_conv::BigPressError, t_dense::chDenseLaw, t_thermal::ConstTemp, conv, ConvBase(), ConvPresTempEdenIoniz(), ConvTempEdenIoniz(), CoolSave(), t_struc::coolstr, t_thermal::ctot, dCoolNetDTOld, DEBUG_ENTRY, t_struc::DenMass, t_struc::DenParticles, dense, t_struc::drad, t_radius::drad, t_radius::drad_mid_zone, t_struc::drad_x_fillfac, t_radius::drad_x_fillfac, t_radius::dVeffAper, dynamics, t_dense::eden, t_struc::ednstr, EE, t_geometry::FillFac, FindTempChangeFactor(), fp_equal(), FracMoleMax, t_dense::gas_phase, geometry, t_struc::hden, t_conv::HeatCoolRelErrorAllowed, t_struc::heatstr, Heavy, t_struc::hiistr, t_conv::hist_pres_nzone, t_conv::hist_temp_nzone, t_struc::histr, hmi, t_thermal::htot, ioQQQ, t_Heavy::ipHeavy, ipHYDROGEN, ipOXYGEN, iteration, lgAbort, Wind::lgBallistic(), lgCoolNetConverge(), t_dense::lgDenseInitConstant, t_dense::lgEdenBad, t_conv::lgFirstSweepThisZone, t_conv::lgLastSweepThisZone, t_hmi::lgNoH2Mole, t_conv::lgOscilOTS, t_pressure::lgPressureInitialSpecified, t_dense::lgPressureVaryTime, t_radius::lgSdrmaxRel, t_conv::lgSearch, Wind::lgStatic(), t_thermal::lgTeHigh, t_thermal::lgTemperatureConstant, t_dynamics::lgTimeDependentStatic, t_trace::lgTrace, LIMELM, max(), MAX2, MIN2, t_dynamics::n_initial_relax, t_rfield::nflux, t_conv::nPres2Ioniz, t_conv::nTotalIoniz, t_conv::nTotalIoniz_start, t_trace::nTrConvg, t_dense::nzEdenBad, t_struc::o3str, OxyInGrains, PCHNG, t_dense::pden, phycon, pow(), pressure, t_pressure::PressureInitialSpecified, t_dense::PressureVaryTimeIndex, t_dense::PressureVaryTimeTimescale, PresTotCurrent(), t_pressure::PresTotlCurr, t_pressure::PresTotlInit, t_radius::Radius, radius, radius_first(), rfield, rfield_opac_zero(), SDIV(), t_radius::sdrmax, t_radius::sdrmin, set_NaN(), ShowMe(), SMALLDOUBLE, SMALLFLOAT, StopCalc, struc, t_phycon::te, t_StopCalc::TeFloor, t_phycon::TEMP_LIMIT_HIGH, t_phycon::TEMP_LIMIT_LOW, TempChange(), t_phycon::TEnerDen, t_struc::testr, thermal, t_dynamics::time_elapsed, TotalInsanity(), trace, t_struc::volstr, wind, t_dense::xIonDense, and t_dense::xMassDensity.

Referenced by cloudy().

Here is the call graph for this function:

double FindTempChangeFactor ( void   ) 

Definition at line 181 of file conv_init_solution.cpp.

References ChemImportance(), DEBUG_ENTRY, FracMoleMax, OxyInGrains, phycon, and t_phycon::te.

Referenced by ConvInitSolution().

Here is the call graph for this function:

STATIC bool lgCoolHeatCheckConverge ( double *  CoolNet,
bool  lgReset 
)

Definition at line 35 of file conv_init_solution.cpp.

References conv, t_thermal::ctot, DEBUG_ENTRY, t_conv::HeatCoolRelErrorAllowed, t_thermal::htot, MAX2, SDIV(), and thermal.

Referenced by lgCoolNetConverge().

Here is the call graph for this function:

STATIC bool lgCoolNetConverge ( double *  CoolNet,
double *  dCoolNetDT,
bool  lgReset 
)

Variable Documentation

double dCoolNetDTOld = 0 [static]

Definition at line 26 of file conv_init_solution.cpp.

Referenced by ConvInitSolution(), and lgCoolNetConverge().

double FracMoleMax [static]

Definition at line 28 of file conv_init_solution.cpp.

Referenced by ChemImportance(), ConvInitSolution(), and FindTempChangeFactor().

double OxyInGrains [static]

Definition at line 28 of file conv_init_solution.cpp.

Referenced by ChemImportance(), ConvInitSolution(), and FindTempChangeFactor().

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Nov 2012 for cloudy by  doxygen 1.6.1