rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Toggle main menu visibility
Loading...
Searching...
No Matches
GammaLawThermo.h
Go to the documentation of this file.
1
8
9
#ifndef RIZER_GAMMA_LAW_THERMO_H
10
#define RIZER_GAMMA_LAW_THERMO_H
11
12
#include "
thermo/ThermoAccessor.h
"
13
14
#include <vector>
15
16
namespace
rizer
17
{
18
27
class
GammaLawThermo
:
public
ThermoAccessor
28
{
29
public
:
39
GammaLawThermo
(
double
gamma, std::vector<double> molecular_weights,
40
int
electron_index);
41
42
void
pressures
(
double
r,
double
t,
double
rho,
double
Tg,
double
Te,
43
const
double
*Y,
double
&p_heavy,
44
double
&p_electron)
const override
;
45
double
soundSpeed
(
double
r,
double
t,
double
rho,
double
Tg,
double
Te,
46
const
double
*Y)
const override
;
47
double
heavyEnergy
(
double
Tg,
const
double
*Y)
const override
;
48
double
electronCv
()
const override
;
49
double
densityFromPressure
(
double
pressure,
double
Tg,
double
Te,
50
const
double
*Y)
const override
;
51
double
heavyTemperature
(
double
rho,
const
double
*Y,
52
double
heavy_internal_energy_target,
53
double
Tg_seed)
const override
;
54
55
private
:
58
double
heavyMolesPerMass(
const
double
*Y)
const
;
60
double
electronMolesPerMass(
const
double
*Y)
const
;
61
62
double
m_gamma;
63
std::vector<double> m_W;
64
int
m_electron_index;
65
};
66
67
}
// namespace rizer
68
69
#endif
// RIZER_GAMMA_LAW_THERMO_H
ThermoAccessor.h
The equation-of-state seam of the hydrodynamic sub-step: the abstract accessor hydroStep() closes its...
rizer::GammaLawThermo::soundSpeed
double soundSpeed(double r, double t, double rho, double Tg, double Te, const double *Y) const override
Sound speed, PHYSICS.md appendix A.4: the frozen two-pool speed , each pool following its own adiaba...
Definition
GammaLawThermo.cpp:69
rizer::GammaLawThermo::densityFromPressure
double densityFromPressure(double pressure, double Tg, double Te, const double *Y) const override
Density reproducing a target total pressure at a given temperature pair and composition – the inverse...
Definition
GammaLawThermo.cpp:107
rizer::GammaLawThermo::heavyTemperature
double heavyTemperature(double rho, const double *Y, double heavy_internal_energy_target, double Tg_seed) const override
Invert for at fixed density and composition (NUMERICS.md section 8).
Definition
GammaLawThermo.cpp:137
rizer::GammaLawThermo::GammaLawThermo
GammaLawThermo(double gamma, std::vector< double > molecular_weights, int electron_index)
Definition
GammaLawThermo.cpp:18
rizer::GammaLawThermo::electronCv
double electronCv() const override
Electron specific heat at constant volume, per kg of ELECTRONS, .
Definition
GammaLawThermo.cpp:95
rizer::GammaLawThermo::pressures
void pressures(double r, double t, double rho, double Tg, double Te, const double *Y, double &p_heavy, double &p_electron) const override
Per-pool partial pressures, PHYSICS.md equation (G6).
Definition
GammaLawThermo.cpp:59
rizer::GammaLawThermo::heavyEnergy
double heavyEnergy(double Tg, const double *Y) const override
Heavy-pool internal energy per kg of MIXTURE, – the basis that makes the conserved variable of equa...
Definition
GammaLawThermo.cpp:88
rizer::ThermoAccessor
Equation-of-state and caloric accessor injected into hydroStep().
Definition
ThermoAccessor.h:46
rizer
Definition
ElectronReactions.cpp:11
rizer
cantera_ext
thermo
GammaLawThermo.h
Generated by
1.18.0