/home66/gary/public_html/cloudy/c08_branch/source/conv_base.cpp File Reference

#include "cddefines.h"
#include "dynamics.h"
#include "trace.h"
#include "elementnames.h"
#include "punch.h"
#include "phycon.h"
#include "secondaries.h"
#include "stopcalc.h"
#include "grainvar.h"
#include "highen.h"
#include "dense.h"
#include "hmi.h"
#include "rfield.h"
#include "pressure.h"
#include "taulines.h"
#include "rt.h"
#include "grains.h"
#include "atmdat.h"
#include "ionbal.h"
#include "opacity.h"
#include "cooling.h"
#include "thermal.h"
#include "mole.h"
#include "iso.h"
#include "conv.h"

Include dependency graph for conv_base.cpp:

Go to the source code of this file.

Defines

#define LOOP_ION_LIMIT   10

Functions

STATIC bool lgIonizConverg (long int nelem, double delta, bool lgPrint)
int ConvBase (long loopi)


Define Documentation

#define LOOP_ION_LIMIT   10


Function Documentation

int ConvBase ( long  loopi  ) 

ConvBase main routine to drive ionization solution for all species, find total opacity called by ConvIoniz/ lgConverg check whether ionization of element nelem has converged

Parameters:
loopi this tells how many times ConvBase has been called by ConvIoniz while trying to converge electron density == 0 on first call - allows logic in ConvBase to check for ots oscillations

Todo:
2 this assert is not passed if error made much smaller. This error should be related to a check on convergence of the molecular networks and their sum rules, with a criteria used here and there

Todo:
0 PvH prefers test against err/10

Definition at line 139 of file conv_base.cpp.

References ASSERT, co, t_co::comole_eden, conv, t_thermal::ctot, DEBUG_ENTRY, dense, eden_sum(), t_dense::EdenTrue, fnzone, fp_equal(), gv, t_thermal::htot, ipH_LIKE, t_dense::lgElmtOn, LIMELM, N_H_MOLEC, NISO, t_conv::nPres2Ioniz, t_conv::nTotalIoniz, nzone, phycon, PresTotCurrent(), StatesElem, t_phycon::te, t_thermal::te_update, thermal, and t_gv::TotalEden.

Referenced by ConvIoniz(), and ion_recombAGN().

Here is the call graph for this function:

STATIC bool lgIonizConverg ( long int  nelem,
double  delta,
bool  lgPrint 
)

Definition at line 34 of file conv_base.cpp.

References ASSERT, t_conv::BadConvIoniz, conv, DEBUG_ENTRY, dense, t_dense::gas_phase, t_dense::lgElmtOn, LIMELM, MAX2, t_conv::nPres2Ioniz, and t_dense::xIonDense.


Generated on Mon Feb 16 12:04:31 2009 for cloudy by  doxygen 1.4.7