cloudy trunk
Loading...
Searching...
No Matches
Functions | Variables
energy.cpp File Reference
#include "cddefines.h"
#include "energy.h"
#include "continuum.h"
#include "rfield.h"
#include "doppvel.h"
#include "geometry.h"
#include "hextra.h"
#include "ipoint.h"
#include "lines.h"
#include "lines_service.h"
#include "opacity.h"
#include "physconst.h"
#include "prt.h"
#include "radius.h"
#include "secondaries.h"
#include "struc.h"
#include "thermal.h"
#include "warnings.h"
#include "wind.h"
#include "dynamics.h"
Include dependency graph for energy.cpp:

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"
 

Function Documentation

◆ badprt()

STATIC void badprt ( double  total)

Definition at line 446 of file energy.cpp.

References DEBUG_ENTRY, ioQQQ, LineSave, LineSv, MAX2, t_LineSave::nsum, t_thermal::power, prt_wl(), thermal, totlin(), and wavelength.

Referenced by lgConserveEnergy().

Here is the call graph for this function:

◆ isSameUnit()

bool isSameUnit ( const char *  unit,
const char *  ref 
)
inline

Definition at line 42 of file energy.cpp.

Referenced by Energy::get(), and Energy::set().

◆ lgConserveEnergy()

bool lgConserveEnergy ( void  )

◆ StandardEnergyUnit()

const char * StandardEnergyUnit ( const char *  chCard)

Definition at line 47 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, ioQQQ, and nMatch().

Referenced by ChkUnits().

Here is the call graph for this function:

◆ sum_radiation()

STATIC double sum_radiation ( void  )

Variable Documentation

◆ ENERGY_A

const char* ENERGY_A = "A"
static

Definition at line 35 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_CM

const char* ENERGY_CM = "cm"
static

Definition at line 31 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_ERG

const char* ENERGY_ERG = "erg"
static

Definition at line 26 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_EV

const char* ENERGY_EV = "eV"
static

Definition at line 27 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_GHZ

const char* ENERGY_GHZ = "GHz"
static

Definition at line 39 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_HZ

const char* ENERGY_HZ = "Hz"
static

Definition at line 36 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_K

const char* ENERGY_K = "K"
static

Definition at line 40 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_KEV

const char* ENERGY_KEV = "keV"
static

Definition at line 28 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_KHZ

const char* ENERGY_KHZ = "kHz"
static

Definition at line 37 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_MEV

const char* ENERGY_MEV = "MeV"
static

Definition at line 29 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_MHZ

const char* ENERGY_MHZ = "MHz"
static

Definition at line 38 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_MICRON

const char* ENERGY_MICRON = "um"
static

Definition at line 33 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_MM

const char* ENERGY_MM = "mm"
static

Definition at line 32 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_NM

const char* ENERGY_NM = "nm"
static

Definition at line 34 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_RYD

const char* ENERGY_RYD = "Ryd"
static

Definition at line 25 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().

◆ ENERGY_WN

const char* ENERGY_WN = "cm^-1"
static

Definition at line 30 of file energy.cpp.

Referenced by Energy::get(), Energy::set(), and StandardEnergyUnit().