Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dynamics.cpp File Reference
#include "cddefines.h"
#include "cddrive.h"
#include "struc.h"
#include "colden.h"
#include "radius.h"
#include "stopcalc.h"
#include "hextra.h"
#include "iterations.h"
#include "conv.h"
#include "timesc.h"
#include "dense.h"
#include "mole.h"
#include "thermal.h"
#include "pressure.h"
#include "phycon.h"
#include "wind.h"
#include "iso.h"
#include "dynamics.h"
#include "cosmology.h"
#include "parser.h"
#include "rfield.h"
#include "container_classes.h"
#include "save.h"
#include "trace.h"
Include dependency graph for dynamics.cpp:

Macros

#define MERGE   0
 

Functions

STATIC void DynaNewStep (void)
 
STATIC void DynaSaveLast (void)
 
STATIC bool lgNeedTimestep ()
 
STATIC void InitDynaTimestep ()
 
STATIC void save_DT (double dtime, double this_fact, string &reason)
 
STATIC double timestep_next (void)
 
void DynaIonize (void)
 
void DynaStartZone (void)
 
void DynaEndZone (void)
 
void DynaIterEnd (void)
 
realnum DynaFlux (double depth)
 
void DynaCreateArrays ()
 
STATIC void advection_set_default (bool lgWind)
 
void ParseDynaTime (Parser &p)
 
void ParseDynaWind (Parser &p)
 
void DynaPrtZone (void)
 
void DynaPunchTimeDep (FILE *ipPnunit, const char *chJob)
 
void DynaSave (FILE *ipPnunit, char chJob)
 
void DynaIterStart (void)
 

Variables

static const bool lgPrintDynamics = false
 
t_dynamics dynamics
 
static int ipUpstream =-1
 
static int iphUpstream =-1
 
static int ipyUpstream =-1
 
static multi_arr< double, 2 > UpstreamIon
 
static multi_arr< double, 3 > UpstreamStatesElem
 
static vector< double > UpstreamElem
 
static vector< double > Upstream_molecules
 
static vector< double > time_elapsed_time
 
static vector< double > time_flux_ratio
 
static vector< double > time_dt
 
static vector< double > time_dt_scale_factor
 
static bool lgtime_dt_specified
 
static vector< int > lgtime_Recom
 
static const int NTIME = 200
 
static long int nTime_flux =0
 
static double Dyn_dr
 
static double AdvecSpecificEnthalpy
 
static vector< double > Old_depth
 
static vector< realnumOld_histr
 
static vector< realnumOld_xLyman_depth
 
static vector< realnumOld_hiistr
 
static vector< realnumOld_pressure
 
static vector< realnumOld_density
 
static vector< realnumOld_DenMass
 
static vector< realnumEnthalpyDensity
 
static vector< realnumOld_ednstr
 
static vector< realnumOld_EnthalpyDensity
 
static multi_arr< realnum, 2 > Old_molecules
 
static multi_arr< realnum, 3 > Old_xIonDense
 
static multi_arr< realnum, 2 > Old_gas_phase
 
static multi_arr< realnum, 4 > Old_StatesElem
 
static long int nOld_zone
 

Macro Definition Documentation

#define MERGE   0

Function Documentation

void DynaEndZone ( void  )

DynaEndZone called at end of iteration when advection is turned on

References DEBUG_ENTRY, t_radius::depth, t_dynamics::DivergePresInteg, t_radius::drad, DynaFlux(), fprintf(), ioQQQ, t_dynamics::lgTracePrint, radius, wind, and Wind::windv.

Referenced by ZoneEnd().

Here is the call graph for this function:

realnum DynaFlux ( double  depth)
void DynaIterEnd ( void  )
void DynaPunchTimeDep ( FILE *  ipPnunit,
const char *  chJob 
)

DynaPunchTimeDep - save info about time dependent solution

Parameters
ipPnunit
*chJob

References cdIonFrac(), cdTemp(), colden, t_colden::colden, column(), cosmology, DEBUG_ENTRY, dense, t_dense::eden, findspecieslocal(), fprintf(), t_dense::gas_phase, ipCOL_HTOT, ipHYDROGEN, t_cosmology::redshift_current, rfield, scalingDensity(), SDIV(), t_rfield::time_continuum_scale, t_dynamics::time_elapsed, t_dynamics::timestep, and TotalInsanity().

Referenced by SaveDo().

Here is the call graph for this function:

void DynaSave ( FILE *  ipPnunit,
char  chJob 
)
STATIC void save_DT ( double  dtime,
double  this_fact,
string &  reason 
)
STATIC double timestep_next ( void  )

Variable Documentation

double AdvecSpecificEnthalpy
static
double Dyn_dr
static
vector<realnum> EnthalpyDensity
static
int iphUpstream =-1
static

Referenced by DynaIterEnd(), and DynaStartZone().

int ipUpstream =-1
static
int ipyUpstream =-1
static

Referenced by DynaIterEnd(), and DynaStartZone().

const bool lgPrintDynamics = false
static
bool lgtime_dt_specified
static

Referenced by DynaIterEnd(), and ParseDynaTime().

vector<int> lgtime_Recom
static

Referenced by DynaIterEnd(), and ParseDynaTime().

long int nOld_zone
static
const int NTIME = 200
static

Referenced by ParseDynaTime().

long int nTime_flux =0
static
vector<realnum> Old_DenMass
static

Referenced by DynaCreateArrays(), and DynaSaveLast().

vector<realnum> Old_density
static
vector<double> Old_depth
static
vector<realnum> Old_ednstr
static

Referenced by DynaCreateArrays(), and DynaSaveLast().

vector<realnum> Old_EnthalpyDensity
static
multi_arr<realnum,2> Old_gas_phase
static
vector<realnum> Old_hiistr
static

Referenced by DynaCreateArrays(), and DynaSaveLast().

vector<realnum> Old_histr
static

Referenced by DynaCreateArrays(), and DynaSaveLast().

multi_arr<realnum,2> Old_molecules
static
vector<realnum> Old_pressure
static

Referenced by DynaCreateArrays(), and DynaSaveLast().

multi_arr<realnum,4> Old_StatesElem
static
multi_arr<realnum,3> Old_xIonDense
static
vector<realnum> Old_xLyman_depth
static

Referenced by DynaCreateArrays(), and DynaSaveLast().

vector<double> time_dt
static

Referenced by DynaIterEnd(), and ParseDynaTime().

vector<double> time_dt_scale_factor
static

Referenced by DynaIterEnd(), and ParseDynaTime().

vector<double> time_elapsed_time
static
vector<double> time_flux_ratio
static

Referenced by DynaIterStart(), and ParseDynaTime().

vector<double> Upstream_molecules
static
vector<double> UpstreamElem
static
multi_arr<double,2> UpstreamIon
static
multi_arr<double,3> UpstreamStatesElem
static