antioch-0.4.0
Functions
Antioch::Constants Namespace Reference

Functions

template<typename CoeffType >
CoeffType log10_to_log ()
 1/ln(10) More...
 
template<typename CoeffType >
CoeffType pi ()
 pi More...
 
template<typename CoeffType >
CoeffType R_universal ()
 Universal Gas Constant, R, expressed in J/(mol-K) More...
 
template<typename CoeffType >
CoeffType Avogadro ()
 Avogadro's number, particles per mole. More...
 
template<typename CoeffType >
Units< CoeffType > R_universal_unit ()
 Universal Gas Constant unit. More...
 
template<typename CoeffType >
Units< CoeffType > Avogadro_unit ()
 Avogadro's number unit. More...
 
template<typename CoeffType >
CoeffType Planck_constant ()
 
template<typename CoeffType >
Units< CoeffType > Planck_constant_unit ()
 Planck's constant unit. More...
 
template<typename CoeffType >
CoeffType light_celerity ()
 light celerity, m/s More...
 
template<typename CoeffType >
Units< CoeffType > light_celerity_unit ()
 light celerity unit More...
 
template<typename CoeffType >
CoeffType Boltzmann_constant ()
 Boltzmann constant 1.380 6488 x 10-23 J/K (http://physics.nist.gov/cgi-bin/cuu/Value?k) More...
 
template<typename CoeffType >
Units< CoeffType > Boltzmann_constant_unit ()
 Boltzmann constant unit. More...
 
template<typename CoeffType >
CoeffType vacuum_permeability ()
 vacuum permeability 4 * pi * 10-7 m.kg.s2.A2 More...
 
template<typename CoeffType >
Units< CoeffType > vacuum_permeability_unit ()
 vacuum permeability More...
 
template<typename CoeffType >
CoeffType vacuum_permittivity ()
 vacuum permittivity 1/(vacuum_permeability * light_celerity^2) A2.s4/kg/m3 More...
 
template<typename CoeffType >
Units< CoeffType > vacuum_permittivity_unit ()
 vacuum permeability unit More...
 

Function Documentation

template<typename CoeffType >
CoeffType Antioch::Constants::Avogadro ( )
inline

Avogadro's number, particles per mole.

Definition at line 52 of file physical_constants.h.

53  {
54  return 6.02214129e23L;
55  }
template<typename CoeffType >
Units<CoeffType> Antioch::Constants::Avogadro_unit ( )
inline

Avogadro's number unit.

Definition at line 72 of file physical_constants.h.

73  {
74  return Units<CoeffType>("mol-1");
75  }
template<typename CoeffType >
CoeffType Antioch::Constants::Boltzmann_constant ( )
inline

Boltzmann constant 1.380 6488 x 10-23 J/K (http://physics.nist.gov/cgi-bin/cuu/Value?k)

Definition at line 124 of file physical_constants.h.

125  {
126  return 1.3806488e-23;
127  }
template<typename CoeffType >
Units<CoeffType> Antioch::Constants::Boltzmann_constant_unit ( )
inline

Boltzmann constant unit.

Definition at line 134 of file physical_constants.h.

135  {
136  return Units<CoeffType>("J/K");
137  }
template<typename CoeffType >
CoeffType Antioch::Constants::light_celerity ( )
inline

light celerity, m/s

Definition at line 102 of file physical_constants.h.

103  {
104  return 2.99792458e8;
105  }
template<typename CoeffType >
Units<CoeffType> Antioch::Constants::light_celerity_unit ( )
inline

light celerity unit

Definition at line 112 of file physical_constants.h.

113  {
114  return Units<CoeffType>("m/s");
115  }
template<typename CoeffType >
CoeffType Antioch::Constants::log10_to_log ( )
inline

1/ln(10)

Definition at line 41 of file math_constants.h.

42  {
43  return 1.0L/std::log(10.0L);
44  }
template<typename CoeffType >
CoeffType Antioch::Constants::pi ( )
inline

pi

Definition at line 51 of file math_constants.h.

Referenced by Antioch::Reaction< CoeffType, VectorCoeffType >::compute_rate_of_progress_and_derivatives().

52  {
53  static const CoeffType my_pi = std::atan(CoeffType(1))*4;
54  return my_pi;
55  }
template<typename CoeffType >
CoeffType Antioch::Constants::Planck_constant ( )
inline

Definition at line 82 of file physical_constants.h.

83  {
84  return 6.62606957e-34;
85  }
template<typename CoeffType >
Units<CoeffType> Antioch::Constants::Planck_constant_unit ( )
inline

Planck's constant unit.

Definition at line 92 of file physical_constants.h.

93  {
94  return Units<CoeffType>("m2.kg/s");
95  }
template<typename CoeffType >
CoeffType Antioch::Constants::R_universal ( )
inline

Universal Gas Constant, R, expressed in J/(mol-K)

Definition at line 42 of file physical_constants.h.

43  {
44  return 8.3144621L;
45  }
template<typename CoeffType >
Units<CoeffType> Antioch::Constants::R_universal_unit ( )
inline

Universal Gas Constant unit.

Definition at line 62 of file physical_constants.h.

63  {
64  return Units<CoeffType>("J/mol/K");
65  }
template<typename CoeffType >
CoeffType Antioch::Constants::vacuum_permeability ( )
inline

vacuum permeability 4 * pi * 10-7 m.kg.s2.A2

Definition at line 145 of file physical_constants.h.

146  {
147  return 4.L * pi<CoeffType>() * 1e-7;
148  }
template<typename CoeffType >
Units<CoeffType> Antioch::Constants::vacuum_permeability_unit ( )
inline

vacuum permeability

Definition at line 155 of file physical_constants.h.

156  {
157  return Units<CoeffType>("m.kg.s2.A2");
158  }
template<typename CoeffType >
CoeffType Antioch::Constants::vacuum_permittivity ( )
inline

vacuum permittivity 1/(vacuum_permeability * light_celerity^2) A2.s4/kg/m3

Definition at line 166 of file physical_constants.h.

167  {
168  return 1.L/ (vacuum_permeability<CoeffType>() * light_celerity<CoeffType>()
169  * light_celerity<CoeffType>());
170  }
template<typename CoeffType >
Units<CoeffType> Antioch::Constants::vacuum_permittivity_unit ( )
inline

vacuum permeability unit

Definition at line 177 of file physical_constants.h.

178  {
179  return Units<CoeffType>("A2.s4/kg/m3");
180  }

Generated on Thu Jul 7 2016 11:09:50 for antioch-0.4.0 by  doxygen 1.8.8