Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
energy.cpp File Reference
#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"
Include dependency graph for energy.cpp:

Functions

bool isSameUnit (const char *unit, const char *ref)
 
const char * StandardEnergyUnitNoAbort (const char *chCard)
 
STATIC double sum_radiation (void)
 
STATIC void badprt (double total)
 
void ConserveEnergy ()
 

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)

References DEBUG_ENTRY, fprintf(), ioQQQ, LineSave, MAX2, STATIC, thermal, and totlin().

Referenced by ConserveEnergy().

Here is the call graph for this function:

◆ ConserveEnergy()

void ConserveEnergy ( )

◆ isSameUnit()

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

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

◆ StandardEnergyUnitNoAbort()

const char * StandardEnergyUnitNoAbort ( const char * chCard)

◆ sum_radiation()

STATIC double sum_radiation ( void )

References ASSERT, geometry, POW2, radius, rfield, and STATIC.

Referenced by ConserveEnergy().

Variable Documentation

◆ ENERGY_A

const char* ENERGY_A = "A"
static

◆ ENERGY_CM

const char* ENERGY_CM = "cm"
static

◆ ENERGY_ERG

const char* ENERGY_ERG = "erg"
static

◆ ENERGY_EV

const char* ENERGY_EV = "eV"
static

◆ ENERGY_GHZ

const char* ENERGY_GHZ = "GHz"
static

◆ ENERGY_HZ

const char* ENERGY_HZ = "Hz"
static

◆ ENERGY_K

const char* ENERGY_K = "K"
static

◆ ENERGY_KEV

const char* ENERGY_KEV = "keV"
static

◆ ENERGY_KHZ

const char* ENERGY_KHZ = "kHz"
static

◆ ENERGY_MEV

const char* ENERGY_MEV = "MeV"
static

◆ ENERGY_MHZ

const char* ENERGY_MHZ = "MHz"
static

◆ ENERGY_MICRON

const char* ENERGY_MICRON = "um"
static

◆ ENERGY_MM

const char* ENERGY_MM = "mm"
static

◆ ENERGY_NM

const char* ENERGY_NM = "nm"
static

◆ ENERGY_RYD

const char* ENERGY_RYD = "Ryd"
static

◆ ENERGY_WN

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