cloudy
trunk
|
#include "cddefines.h"
#include "continuum.h"
#include "rfield.h"
#include "doppvel.h"
#include "geometry.h"
#include "hextra.h"
#include "ipoint.h"
#include "lines.h"
#include "opacity.h"
#include "radius.h"
#include "secondaries.h"
#include "struc.h"
#include "thermal.h"
#include "warnings.h"
#include "wind.h"
#include "dynamics.h"
#include "lines_service.h"
Go to the source code of this file.
Functions | |
bool | isSameUnit (const char *unit, const char *ref) |
const char * | StandardEnergyUnit (const char *chCard) |
STATIC double | sum_radiation (void) |
STATIC void | badprt (double total) |
bool | lgConserveEnergy () |
Variables | |
static const char * | ENERGY_RYD = "Ryd" |
static const char * | ENERGY_ERG = "erg" |
static const char * | ENERGY_EV = "eV" |
static const char * | ENERGY_KEV = "keV" |
static const char * | ENERGY_MEV = "MeV" |
static const char * | ENERGY_WN = "cm^-1" |
static const char * | ENERGY_CM = "cm" |
static const char * | ENERGY_MM = "mm" |
static const char * | ENERGY_MICRON = "um" |
static const char * | ENERGY_NM = "nm" |
static const char * | ENERGY_A = "A" |
static const char * | ENERGY_HZ = "Hz" |
static const char * | ENERGY_KHZ = "kHz" |
static const char * | ENERGY_MHZ = "MHz" |
static const char * | ENERGY_GHZ = "GHz" |
static const char * | ENERGY_K = "K" |
STATIC void badprt | ( | double | total | ) |
Definition at line 443 of file energy.cpp.
References DEBUG_ENTRY, fprintf(), ioQQQ, t_LineSave::lines, LineSave, MAX2, t_LineSave::nsum, t_thermal::power, thermal, and totlin().
Referenced by lgConserveEnergy().
|
inline |
Definition at line 39 of file energy.cpp.
Referenced by Energy::get(), and Energy::set().
bool lgConserveEnergy | ( | void | ) |
Definition at line 311 of file energy.cpp.
References badprt(), bangin(), t_thermal::ConstTemp, continuum, t_geometry::covgeo, t_hextra::cryden, DEBUG_ENTRY, t_struc::DenMass, t_DoppVel::DispScale, DoppVel, dynamics, fprintf(), t_struc::GasPressure, geometry, hextra, t_geometry::iEmissPower, INPUT_LINE_LENGTH, ioQQQ, iteration, lgAbort, Wind::lgBallistic(), t_opac::lgCaseB, t_continuum::lgCheckEnergyEveryZone, t_secondaries::lgCSetOn, t_geometry::lgSphere, Wind::lgStatic(), t_thermal::lgTemperatureConstant, t_dynamics::lgTimeDependentStatic, nzone, opac, outsum(), POW2, t_thermal::power, radius, t_radius::rinner, secondaries, struc, sum_radiation(), thermal, t_continuum::TotalLumin, totlin(), t_hextra::TurbHeat, warnin(), wind, and Wind::windv0.
Referenced by cloudy(), and PrtComment().
const char* StandardEnergyUnit | ( | const char * | chCard | ) |
Definition at line 44 of file energy.cpp.
References cdEXIT, DEBUG_ENTRY, ENERGY_A, ENERGY_CM, ENERGY_ERG, ENERGY_EV, ENERGY_GHZ, ENERGY_HZ, ENERGY_K, ENERGY_KEV, ENERGY_KHZ, ENERGY_MEV, ENERGY_MHZ, ENERGY_MICRON, ENERGY_MM, ENERGY_NM, ENERGY_RYD, ENERGY_WN, EXIT_FAILURE, fprintf(), ioQQQ, and nMatch().
Referenced by ChkUnits(), ParseTable(), and Parser::StandardEnergyUnit().
STATIC double sum_radiation | ( | void | ) |
Definition at line 414 of file energy.cpp.
References t_mesh::anu(), ASSERT, t_rfield::ConEmitOut, t_rfield::ConEmitReflec, t_rfield::ConRefIncid, t_geometry::covgeo, t_rfield::flux, geometry, t_rfield::getCoarseTransCoef(), t_rfield::nflux, t_rfield::outlin, t_rfield::outlin_noplot, POW2, t_radius::r1r0sq, radius, t_rfield::reflin, rfield, and t_radius::rinner.
Referenced by lgConserveEnergy().
|
static |
Definition at line 32 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 28 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 23 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 24 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 36 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 33 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 37 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 25 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 34 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 26 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 35 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 30 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 29 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 31 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 22 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().
|
static |
Definition at line 27 of file energy.cpp.
Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().