Skip to content

Commit

Permalink
Deprecate some unused derived constants
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Mar 21, 2022
1 parent e81aea3 commit 660a0e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/cantera/base/ct_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const double ElectronMass = 9.1093837015e-31;
//! @{

//! Reduced Planck constant \f$ \hbar \f$ [m2-kg/s]
//! @deprecated Unused. To be removed after Cantera 2.6.
const double Planck_bar = Planck / (2 * Pi);

//! Universal Gas Constant \f$ R_u \f$ [J/kmol/K]
Expand All @@ -117,10 +118,11 @@ const double logGasConstant = std::log(GasConstant);
const double GasConst_cal_mol_K = GasConstant / 4184.0;

//! log(k_b/h)
//! @deprecated Unused. To be removed after Cantera 2.6.
const double logBoltz_Planck = std::log(Boltzmann / Planck);

//! Stefan-Boltzmann constant \f$ \sigma \f$ [W/m2/K4]
const double StefanBoltz = Pi * Pi * std::pow(Boltzmann, 4.0) / (60.0 * std::pow(Planck_bar, 3.0) * lightSpeed * lightSpeed); // 5.670374419e-8
const double StefanBoltz = 2.0 * std::pow(Pi, 5) * std::pow(Boltzmann, 4) / (15.0 * std::pow(Planck, 3) * lightSpeed * lightSpeed); // 5.670374419e-8

//! Faraday constant \f$ F \f$ [C/kmol]
const double Faraday = ElectronCharge * Avogadro;
Expand Down

0 comments on commit 660a0e1

Please sign in to comment.