KIDS  ver-0.0.1
KIDS : Kernel Integrated Dynamics Simulator
Loading...
Searching...
No Matches
phys Namespace Reference

Namespaces

namespace  inner
 
namespace  math
 

Classes

class  dimensions
 
struct  gens
 
struct  gens< 0, S... >
 
struct  seq
 compile-time array operations realized in c++11 standard More...
 
struct  unit_error
 
class  unitsys
 
class  uval
 

Typedefs

typedef dimensions< real_precision, dimension7_sizedimension7
 
typedef unitsys us
 < generalized hatree is same to hatree when out of statistics (k_Boltzman & N_Avagadro)
 

Enumerations

enum  dimension7_type {
  _L , _T , _M , _I ,
  _Q , _N , _J
}
 

Functions

template<typename T , std::size_t N>
constexpr T array_add_n (const std::array< T, N > a, const std::array< T, N > b, int n)
 
template<typename T , std::size_t N, int... S>
constexpr std::array< T, N > array_add_impl (const std::array< T, N > a, const std::array< T, N > b, seq< S... >)
 
template<typename T , std::size_t N>
constexpr std::array< T, N > array_add (const std::array< T, N > a, const std::array< T, N > b)
 
template<typename T , std::size_t N>
constexpr T array_minus_n (const std::array< T, N > a, const std::array< T, N > b, int n)
 
template<typename T , std::size_t N, int... S>
constexpr std::array< T, N > array_minus_impl (const std::array< T, N > a, const std::array< T, N > b, seq< S... >)
 
template<typename T , std::size_t N>
constexpr std::array< T, N > array_minus (const std::array< T, N > a, const std::array< T, N > b)
 
template<typename T , std::size_t N>
constexpr T array_scale_n (const std::array< T, N > a, T b_val, int n)
 
template<typename T , std::size_t N, int... S>
constexpr std::array< T, N > array_scale_impl (const std::array< T, N > a, const T b, seq< S... >)
 
template<typename T , std::size_t N>
constexpr std::array< T, N > array_scale (const std::array< T, N > a, T b)
 
constexpr real_precision reduce_l_nonzero (const dimension7 dim)
 
constexpr real_precision reduce_l_energy (const dimension7 dim)
 
constexpr uval operator* (const uval &lhs, const uval &rhs)
 
constexpr uval operator* (const real_precision &lhs, const uval &rhs)
 
constexpr uval operator* (const uval &lhs, const real_precision &rhs)
 
constexpr uval operator/ (const uval &lhs, const uval &rhs)
 
constexpr uval operator/ (const real_precision &lhs, const uval &rhs)
 
constexpr uval operator/ (const uval &lhs, const real_precision &rhs)
 
const uval operator+ (const uval &lhs, const uval &rhs)
 
const uval operator- (const uval &lhs, const uval &rhs)
 
uval power (const uval &lhs, const real_precision &index)
 
bool is_same_dimension7 (const uval &lhs, const uval &rhs)
 
std::string to_string (const uval &u)
 
universal physical constant
constexpr uval G_gravitional_constant (dimension7{{3, -2, -1}}, 6.6740831E-11L)
 
constexpr uval c_lightspeed (speed_d, 2.997924580E+8L)
 
constexpr uval ep0_permittivity (permittivity_d, 8.854187817E-12L)
 1/(4*pi*ke)
 
constexpr uval mu0_permeability (magnetic_permeability_d, 1.256637061E-6L)
 4*pi*ke/c^2
 
constexpr uval ke_Comloub (dimensionless_d/permittivity_d, 8.9875517873681764E+9L)
 
constexpr uval R_gas_constant (molar_entropy_d, 8.314459848L)
 k * N
 
constexpr uval Rydberg_constant (wave_number_d, 10973731.56850865L)
 me* e ^ 4 / (8 * ep0 ^ 2 * h ^ 3 * c)
 
constexpr uval Faraday_constant (electric_charge_d/amount_of_substance_d, 96485.3328959L)
 e*N
 
constexpr uval Stefan_constant (dimension7{{0, -3, 1, -4}}, 5.67036713E-8L)
 pi^2 kB^4/(60*hb^3*c^2)
 
constexpr uval muB_magnetic_moment (magnetic_moment_d, 9.27400999457E-24L)
 e*hb / (2*me)
 
constexpr uval muN_magnetic_moment (magnetic_moment_d, 5.05078369931E-27L)
 e*hb / (2*mn)
 
constexpr uval Bohr_length (length_d, 5.291772106712E-11L)
 hb^2/(ke*me*e^2)
 
constexpr uval h_Planck (action_d, 6.62607004081E-34L)
 
constexpr uval hb_Planck (action_d, 1.05457180013E-34L)
 h/(2*pi)
 
constexpr uval me_mass (mass_d, 9.1093835611E-31L)
 
constexpr uval mp_mass (mass_d, 1.67262189821E-27L)
 
constexpr uval mn_mass (mass_d, 1.67492749804e-27L)
 
constexpr uval amu_mass (mass_d, 1.66053886E-27L)
 
constexpr uval e_charge (electric_charge_d, 1.602176620898E-19L)
 
constexpr uval k_Boltzman (entropy_d, 1.3806490351E-23L)
 
constexpr uval N_Avagadro (dimensionless_d/amount_of_substance_d, 6.02214085774E+23L)
 
universal namespace definitions for useful uval systems
 PHYS_DEFINE_UNITSYS_NAMESPACE (si, _base_1m, _base_1s, _base_1kg, _base_1A, _base_1K, _base_1mol, _base_1cd)
 
 PHYS_DEFINE_UNITSYS_NAMESPACE (planck, c_lightspeed, hb_Planck, G_gravitional_constant, k_Boltzman, _base_1A, _base_1mol, _base_1cd)
 
 PHYS_DEFINE_UNITSYS_NAMESPACE (god_given, c_lightspeed, hb_Planck, G_gravitional_constant, _base_1A, _base_1K, _base_1mol, _base_1cd)
 
 PHYS_DEFINE_UNITSYS_NAMESPACE (stoney, c_lightspeed, G_gravitional_constant, ke_Comloub, e_charge, _base_1K, _base_1mol, _base_1cd)
 
 PHYS_DEFINE_UNITSYS_NAMESPACE (natural, c_lightspeed, hb_Planck, me_mass, ep0_permittivity, _base_1K, _base_1mol, _base_1cd)
 
 PHYS_DEFINE_UNITSYS_NAMESPACE (gauss, 0.01L *_base_1m, _base_1s, 0.001L *_base_1kg, ke_Comloub, _base_1K, _base_1mol, _base_1cd)
 
 PHYS_DEFINE_UNITSYS_NAMESPACE (rydberg, hb_Planck, 2 *me_mass, e_charge *e_charge/2, ke_Comloub, _base_1K, _base_1mol, _base_1cd)
 
 PHYS_DEFINE_UNITSYS_NAMESPACE (hartree, hb_Planck, me_mass, e_charge, ke_Comloub, _base_1K, _base_1mol, _base_1cd)
 
 PHYS_DEFINE_UNITSYS_NAMESPACE (ghartree, hb_Planck, me_mass, e_charge, ke_Comloub, k_Boltzman, N_Avagadro, _base_1cd)
 
 PHYS_DEFINE_UNITSYS_NAMESPACE (quantum_chromo_dynamics, c_lightspeed, hb_Planck, mp_mass, e_charge, _base_1K, _base_1mol, _base_1cd)
 
 PHYS_DEFINE_UNITSYS_NAMESPACE (au_test, hb_Planck, me_mass, e_charge, ke_Comloub, k_Boltzman, N_Avagadro, _base_1cd)
 
 PHYS_DEFINE_UNITSYS_NAMESPACE (amu, hb_Planck, me_mass, e_charge, ke_Comloub, _base_1K, _base_1mol, _base_1cd)
 

Variables

const int dimension7_size = 7
 dimension7 is provided as compile-time dimensional tools
 
const std::map< const dimension7, const std::string > description
 
static const std::map< std::string, real_precisionuval_prefix
 
static const std::map< std::string, uvaluval_names
 
static CONSTTYPE real_precision au_2_amu = unitsys::conv(au::unit, amu_mass)
 1mea means we measure a quantity at 1*N level.
 
static CONSTTYPE real_precision au_2_ang = unitsys::conv(au::unit, 1e-10L * _base_1m)
 
static CONSTTYPE real_precision au_2_ev = unitsys::conv(au::unit, e_charge* _base_1V)
 
static CONSTTYPE real_precision au_2_J_1mea = unitsys::conv(au::unit, _base_1J / _base_1mol) * au::N
 
static CONSTTYPE real_precision au_2_kcal_1mea = unitsys::conv(au::unit, 1e+3L * _nostd_1cal / _base_1mol) * au::N
 
static CONSTTYPE real_precision au_2_g_1mea = unitsys::conv(au::unit, 1e-3L * _base_1kg / _base_1mol) * au::N
 
static CONSTTYPE real_precision au_2_wn = unitsys::conv(au::unit, h_Planck* c_lightspeed / (0.01L * _base_1m))
 
static CONSTTYPE real_precision au_2_fs = unitsys::conv(au::unit, 1e-15L * _base_1s)
 
static CONSTTYPE real_precision au_2_ps = unitsys::conv(au::unit, 1e-12L * _base_1s)
 
static CONSTTYPE real_precision au_2_K = unitsys::conv(au::unit, _base_1K)
 
static CONSTTYPE real_precision au_2_angoverps = au_2_ang / au_2_ps
 
base dimension7
constexpr dimension7 dimensionless_d {{}}
 [1]
 
constexpr dimension7 length_d {{1, 0, 0, 0, 0, 0, 0}}
 [L]
 
constexpr dimension7 time_d {{0, 1, 0, 0, 0, 0, 0}}
 [T]
 
constexpr dimension7 mass_d {{0, 0, 1, 0, 0, 0, 0}}
 [M]
 
constexpr dimension7 electric_current_d {{0, 0, 0, 1, 0, 0, 0}}
 [I]
 
constexpr dimension7 thermodynamic_temperature_d {{0, 0, 0, 0, 1, 0, 0}}
 [Q]
 
constexpr dimension7 amount_of_substance_d {{0, 0, 0, 0, 0, 1, 0}}
 [N]
 
constexpr dimension7 luminous_intensity_d {{0, 0, 0, 0, 0, 0, 1}}
 [J]
 
constexpr dimension7 current_d = electric_current_d
 
constexpr dimension7 temperature_d = thermodynamic_temperature_d
 
constexpr dimension7 amount_d = amount_of_substance_d
 
constexpr dimension7 none_d = dimensionless_d
 
derived (L) dimension7
constexpr dimension7 distance_d = length_d
 
constexpr dimension7 wavelength_d = length_d
 
constexpr dimension7 wave_number_d {{-1, 0, 0}}
 [L^-1]
 
constexpr dimension7 area_d {{2, 0, 0}}
 [L^2]
 
constexpr dimension7 volume_d {{3, 0, 0}}
 [L^3]
 
derived (T) dimension7
constexpr dimension7 frequency_d {{0, -1, 0}}
 [T^-1]
 
constexpr dimension7 angular_velocity_d {{0, -1, 0}}
 [T^-1]
 
constexpr dimension7 angular_acceleration_d {{0, -2, 0}}
 [T^-2]
 
constexpr dimension7 activity_of_a_nuclide_d = frequency_d
 
derived (L, T) dimension7
constexpr dimension7 speed_d {{1, -1, 0}}
 [L*T^-1]
 
constexpr dimension7 acceleration_d {{1, -2, 0}}
 [L*T^-2]
 
constexpr dimension7 jerk_d {{1, -3, 0}}
 [L*T^-3]
 
constexpr dimension7 jounce_d {{1, -4, 0}}
 [L*T^-4]
 
constexpr dimension7 crackle_d {{1, -5, 0}}
 [L*T^-5]
 
constexpr dimension7 pop_d {{1, -6, 0}}
 [L*T^-6]
 
constexpr dimension7 absement_d {{1, 1, 0}}
 [L*T]
 
constexpr dimension7 area_flow_rate_d {{2, -1, 0}}
 [L^2*T^-1]
 
constexpr dimension7 volume_flow_rate_d {{3, -1, 0}}
 [L^3*T^-1]
 
constexpr dimension7 kinematic_viscosity_d = area_flow_rate_d
 [L^2*T^-1] = viscosity / density
 
constexpr dimension7 thermal_diffusivity_d
 [L^2*T^-1] = thermal_conductivity / (specific_heat_capacity * density)
 
constexpr dimension7 specific_energy_d {{2, -2, 0}}
 [L^2/T^2] (count) energy per mass
 
constexpr dimension7 dose_equivalent_d = specific_energy_d
 [L^2/T^2] (radiation) energy per mass
 
constexpr dimension7 absorbed_dose_d = specific_energy_d
 [L^2/T^2] (radiation) energy per mass
 
constexpr dimension7 absorbed_dose_rate_d {{2, -3, 0}}
 [L^2/T^3] (radiation) power per mass
 
constexpr dimension7 substance_permeability_d {{-1, 1, 0}}
 [L^-1*T]
 
derived (L, T, M) dimension7
constexpr dimension7 inertia_d {{2, 0, 1}}
 [M*L^2]
 
constexpr dimension7 mass_line_density_d {{-1, 0, 1}}
 [M/L] mass per line
 
constexpr dimension7 mass_area_density_d {{-2, 0, 1}}
 [M/L^2] mass per area
 
constexpr dimension7 mass_density_d {{-3, 0, 1}}
 [M/L^3] mass per volume
 
constexpr dimension7 specific_volume_d {{3, 0, -1}}
 [L^3/M] volume per mass
 
constexpr dimension7 mass_flow_rate_d {{0, -1, 1}}
 [M/T] mass per time
 
constexpr dimension7 mass_flow_acceleration_d {{0, -2, 1}}
 [M/T^2] mass per per time
 
constexpr dimension7 mass_flow_jerk_d {{0, -3, 1}}
 [M/T^3] mass per per per time
 
constexpr dimension7 force_d {{1, -2, 1}}
 [M*L/T^2] mass times acceleration
 
constexpr dimension7 momentum_d {{1, -1, 1}}
 [M*L/T] force integrate time
 
constexpr dimension7 energy_d {{2, -2, 1}}
 [M*L^2/T^2] force integrate length
 
constexpr dimension7 moment_of_force_d = energy_d
 [M*L^2/T^2] force cross length
 
constexpr dimension7 torque_d = moment_of_force_d
 
constexpr dimension7 angular_momentum_d {{2, -1, 1}}
 [M*L^2/T] torque integrate time
 
constexpr dimension7 action_d = angular_momentum_d
 [M*L^2/T] energy integrate time
 
constexpr dimension7 inv_ener_d {{-2, 2, -1}}
 [M^-1*L^-2*T^2], inversed energy, such as 1/(kB * T)
 
constexpr dimension7 power_d {{2, -3, 1}}
 [M*L^2/T^3] energy per time
 
constexpr dimension7 energy_density_d {{-1, -2, 1}}
 [M/L/T^2] energy per volume
 
constexpr dimension7 pressure_d = energy_density_d
 [M/L/T^2] energy per volume = force per area
 
constexpr dimension7 surface_tension_d = mass_flow_acceleration_d
 [M/T^2] energy per area
 
constexpr dimension7 energy_line_density_d {{1, -2, 1}}
 [M/L/T^2] energy per line
 
constexpr dimension7 power_density_d {{-1, -3, 1}}
 [M/L/T^3] power per volume
 
constexpr dimension7 power_area_density_d = mass_flow_jerk_d
 [M/T^3] power per area
 
constexpr dimension7 dynamic_viscosity_d {{-1, -1, 1}}
 [M/L/T] force / (area * gradient(velocity))
 
constexpr dimension7 heat_flow_rate_d = power_d
 [M/L/T^3] (heat) energy per time
 
constexpr dimension7 heat_density_d = mass_flow_acceleration_d
 [M/T^2] (heat flow) energy per area
 
constexpr dimension7 heat_density_flow_rate_d = power_area_density_d
 [M/T^3] (heat flow) energy per area per time
 
constexpr dimension7 heat_flux_density_d = power_area_density_d
 [M/T^3] (heat) energy per time per area
 
constexpr dimension7 radiant_intensity_d = power_d
 [M/L/T^3] (radiation) energy per time
 
constexpr dimension7 radiance_d = power_area_density_d
 [M/T^3] (radiation) power per area
 
constexpr dimension7 irradiance_d = power_area_density_d
 [M/T^3] (radiation) power per area
 
derived (L, T, M, I) dimension7
constexpr dimension7 current_density_d {{-2, 0, 0, 1}}
 [I/L^2] current per area
 
constexpr dimension7 electric_charge_d {{0, 1, 0, 1}}
 [I*T] current integrate time
 
constexpr dimension7 electric_charge_density_d {{-3, 1, 0, 1}}
 [I/L^3*T] charge per volume
 
constexpr dimension7 electric_area_charge_density_d {{-2, 1, 0, 1}}
 [I/L^2*T] charge per area
 
constexpr dimension7 electric_line_charge_density_d {{-1, 1, 0, 1}}
 [I/L*T] charge per line
 
constexpr dimension7 electric_dipole_moment_d {{1, 1, 0, 1}}
 [I*L*T] charge times length
 
constexpr dimension7 electric_flux_density_d = electric_area_charge_density_d
 [I/L^2*T]
 
constexpr dimension7 electric_displacement_field_d = electric_area_charge_density_d
 [I/L^2*T], D
 
constexpr dimension7 electric_polarization_field_d
 [I/L^2*T], P = dipole moment pe volume
 
constexpr dimension7 magnetic_moment_d {{2, 0, 0, 1}}
 [I*L^2] current integrate area
 
constexpr dimension7 magnetic_field_strength_d {{-1, 0, 0, 1}}
 [I/L] magnetic moment per volume
 
constexpr dimension7 magnetization_d = magnetic_field_strength_d
 [I/L] magnetic moment per volume
 
constexpr dimension7 electric_potential_d {{2, -3, 1, -1}}
 [M*L^2/T^3/I] energy per charge
 
constexpr dimension7 electric_field_strenth_d {{1, -3, 1, -1}}
 [M*L/T^3/I] electric potential per length
 
constexpr dimension7 electric_resistance_d {{2, -3, 1, -2}}
 [M*L^2/T^3/I^2] electric potential versus current
 
constexpr dimension7 electric_conductance_d {{-2, 3, -1, 2}}
 [M^-1*L^-2*T^3*I^2] = 1 / electric_resistance
 
constexpr dimension7 electric_resistivity_d {{3, -3, 1, -2}}
 [M*L^3/T^3/I^2] electric_resistance time length
 
constexpr dimension7 electric_conductivity_d {{-3, 3, -1, 2}}
 [M^-1*L^-3*T^3*I^2] 1 / electric_resistivity
 
constexpr dimension7 electric_capacitance_d {{-2, 4, -1, 2}}
 [M^-1*L^-2*T^4*I^2] charge versus electric potential
 
constexpr dimension7 magnetic_flux_d {{2, -2, 1, -1}}
 [M*L^2/T^2/I] energy per current = E/I = B*S
 
constexpr dimension7 magnetic_flux_density_d
 [M*T^-2/I] B = electric_field_strenth_d versus velocity
 
constexpr dimension7 inductance_d {{2, -2, 1, -2}}
 [M*L^2/T^2/I^2] magnetic flux versus current, L
 
constexpr dimension7 electric_chargme_mass_ratio_d {{0, 1, -1, 1}}
 [M^-1*T*I]
 
constexpr dimension7 magnetic_permeability_d {{1, -2, 1, -2}}
 [M*L/T^2/I^2], mu
 
constexpr dimension7 permittivity_d {{-3, 4, -1, 2}}
 [M^-1*L^-2*T^4*I^2], epsilon
 
derived (L, T, M, I, Q) dimension7
constexpr dimension7 inv_temp_d {{0, 0, 0, 0, -1}}
 
constexpr dimension7 heat_capacity_d {{2, -2, 1, 0, -1}}
 [M*L^2/T^2/Q] energy per temperature
 
constexpr dimension7 entropy_d = heat_capacity_d
 [M*L^2/T^2/Q] energy per temperature
 
constexpr dimension7 heat_transfer_coefficient_d
 [M/T^3/Q] heat_flux_density versus temperature
 
constexpr dimension7 specific_heat_capacity_d {{2, -2, 0, 0, -1}}
 [L^2/T^2/Q] capacity per mass
 
constexpr dimension7 thermal_conductivity_d {{1, -3, 1, 0, -1}}
 [M*L/T^3/Q]
 
constexpr dimension7 thermal_insulance_d {{0, 3, -1, 0, 1}}
 [M^-1*T^3*Q] = 1 / heat_transfer_coefficient
 
constexpr dimension7 thermal_resistance_d {{-2, 3, -1, 0, 1}}
 [M^-1*L^-2*T^3*Q]
 
constexpr dimension7 thermal_resistivity_d {{-1, 3, -1, 0, 1}}
 [M^-1*L^-1*T^3*Q]
 
derived (L, T, M, I, Q, N) dimension7
constexpr dimension7 concentration_d {{-3, 0, 0, 0, 0, 1}}
 [N/L^3] amount per volume
 
constexpr dimension7 molar_energy_d {{2, -2, 1, 0, 0, -1}}
 [M*L^2/T^2/N] energy per amount
 
constexpr dimension7 molar_entropy_d {{2, -2, 1, 0, -1, -1}}
 [M*L^2/T^2/Q/N] entropy per amount
 
derived (L, T, M, I, Q, N, J) dimension7
constexpr dimension7 luminous_flux_d = luminous_intensity_d
 [J]
 
constexpr dimension7 illuminance_d {{-2, 0, 0, 0, 0, 0, 1}}
 [J/L^2] luminous_intensity per area
 
constexpr dimension7 luminance_d = illuminance_d
 [J/L^2] luminous_intensity per area
 

SI base

constexpr uval _nostd_1cal = 4.184L * _base_1J
 1 cal (non-standard)
 
constexpr uval _base_1 (dimensionless_d)
 1
 
constexpr uval _base_1m (length_d)
 1 meter
 
constexpr uval _base_1s (time_d)
 1 second
 
constexpr uval _base_1kg (mass_d)
 1 kilogram
 
constexpr uval _base_1A (electric_current_d)
 1 ampere
 
constexpr uval _base_1K (thermodynamic_temperature_d)
 1 kelvins
 
constexpr uval _base_1mol (amount_of_substance_d)
 1 mole
 
constexpr uval _base_1cd (luminous_intensity_d)
 1 candela
 
constexpr uval _base_1Hz (frequency_d)
 1 hertz
 
constexpr uval _base_1N (force_d)
 1 newton
 
constexpr uval _base_1Pa (pressure_d)
 1 pascal
 
constexpr uval _base_1J (energy_d)
 1 joule
 
constexpr uval _base_1W (power_d)
 1 watt
 
constexpr uval _base_1C (electric_charge_d)
 1 comloub
 
constexpr uval _base_1V (electric_potential_d)
 1 volt
 
constexpr uval _base_1F (electric_capacitance_d)
 1 faraday
 
constexpr uval _base_1S (electric_conductance_d)
 1 siemens
 
constexpr uval _base_1Om (electric_resistance_d)
 1 ohm
 
constexpr uval _base_1Wb (magnetic_flux_d)
 1 weber
 
constexpr uval _base_1T (magnetic_flux_density_d)
 1 tesla
 
constexpr uval _base_1H (inductance_d)
 1 henry
 

Typedef Documentation

◆ dimension7

Definition at line 164 of file phys.h.

◆ us

typedef unitsys phys::us

< generalized hatree is same to hatree when out of statistics (k_Boltzman & N_Avagadro)

Definition at line 983 of file phys.h.

Enumeration Type Documentation

◆ dimension7_type

Enumerator
_L 
_T 
_M 
_I 
_Q 
_N 
_J 

Definition at line 165 of file phys.h.

Function Documentation

◆ _base_1()

constexpr uval phys::_base_1 ( dimensionless_d )
constexpr

1

◆ _base_1A()

constexpr uval phys::_base_1A ( electric_current_d )
constexpr

1 ampere

◆ _base_1C()

constexpr uval phys::_base_1C ( electric_charge_d )
constexpr

1 comloub

◆ _base_1cd()

constexpr uval phys::_base_1cd ( luminous_intensity_d )
constexpr

1 candela

◆ _base_1F()

constexpr uval phys::_base_1F ( electric_capacitance_d )
constexpr

1 faraday

◆ _base_1H()

constexpr uval phys::_base_1H ( inductance_d )
constexpr

1 henry

◆ _base_1Hz()

constexpr uval phys::_base_1Hz ( frequency_d )
constexpr

1 hertz

◆ _base_1J()

constexpr uval phys::_base_1J ( energy_d )
constexpr

1 joule

◆ _base_1K()

constexpr uval phys::_base_1K ( thermodynamic_temperature_d )
constexpr

1 kelvins

◆ _base_1kg()

constexpr uval phys::_base_1kg ( mass_d )
constexpr

1 kilogram

◆ _base_1m()

constexpr uval phys::_base_1m ( length_d )
constexpr

1 meter

◆ _base_1mol()

constexpr uval phys::_base_1mol ( amount_of_substance_d )
constexpr

1 mole

◆ _base_1N()

constexpr uval phys::_base_1N ( force_d )
constexpr

1 newton

◆ _base_1Om()

constexpr uval phys::_base_1Om ( electric_resistance_d )
constexpr

1 ohm

◆ _base_1Pa()

constexpr uval phys::_base_1Pa ( pressure_d )
constexpr

1 pascal

◆ _base_1S()

constexpr uval phys::_base_1S ( electric_conductance_d )
constexpr

1 siemens

◆ _base_1s()

constexpr uval phys::_base_1s ( time_d )
constexpr

1 second

◆ _base_1T()

constexpr uval phys::_base_1T ( magnetic_flux_density_d )
constexpr

1 tesla

◆ _base_1V()

constexpr uval phys::_base_1V ( electric_potential_d )
constexpr

1 volt

◆ _base_1W()

constexpr uval phys::_base_1W ( power_d )
constexpr

1 watt

◆ _base_1Wb()

constexpr uval phys::_base_1Wb ( magnetic_flux_d )
constexpr

1 weber

◆ amu_mass()

constexpr uval phys::amu_mass ( mass_d ,
1.66053886E- 27L )
constexpr

◆ array_add()

template<typename T , std::size_t N>
constexpr std::array< T, N > phys::array_add ( const std::array< T, N > a,
const std::array< T, N > b )
constexpr

Definition at line 74 of file phys.h.

References array_add_impl().

Referenced by phys::dimensions< T, N >::operator*().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ array_add_impl()

template<typename T , std::size_t N, int... S>
constexpr std::array< T, N > phys::array_add_impl ( const std::array< T, N > a,
const std::array< T, N > b,
seq< S... >  )
constexpr

Definition at line 70 of file phys.h.

References array_add_n().

Referenced by array_add().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ array_add_n()

template<typename T , std::size_t N>
constexpr T phys::array_add_n ( const std::array< T, N > a,
const std::array< T, N > b,
int n )
constexpr

Definition at line 66 of file phys.h.

Referenced by array_add_impl().

Here is the caller graph for this function:

◆ array_minus()

template<typename T , std::size_t N>
constexpr std::array< T, N > phys::array_minus ( const std::array< T, N > a,
const std::array< T, N > b )
constexpr

Definition at line 87 of file phys.h.

References array_minus_impl().

Referenced by phys::dimensions< T, N >::operator/().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ array_minus_impl()

template<typename T , std::size_t N, int... S>
constexpr std::array< T, N > phys::array_minus_impl ( const std::array< T, N > a,
const std::array< T, N > b,
seq< S... >  )
constexpr

Definition at line 83 of file phys.h.

References array_minus_n().

Referenced by array_minus().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ array_minus_n()

template<typename T , std::size_t N>
constexpr T phys::array_minus_n ( const std::array< T, N > a,
const std::array< T, N > b,
int n )
constexpr

Definition at line 79 of file phys.h.

Referenced by array_minus_impl().

Here is the caller graph for this function:

◆ array_scale()

template<typename T , std::size_t N>
constexpr std::array< T, N > phys::array_scale ( const std::array< T, N > a,
T b )
constexpr

Definition at line 100 of file phys.h.

References array_scale_impl().

Referenced by phys::dimensions< T, N >::power().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ array_scale_impl()

template<typename T , std::size_t N, int... S>
constexpr std::array< T, N > phys::array_scale_impl ( const std::array< T, N > a,
const T b,
seq< S... >  )
constexpr

Definition at line 96 of file phys.h.

References array_scale_n().

Referenced by array_scale().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ array_scale_n()

template<typename T , std::size_t N>
constexpr T phys::array_scale_n ( const std::array< T, N > a,
T b_val,
int n )
constexpr

Definition at line 92 of file phys.h.

Referenced by array_scale_impl().

Here is the caller graph for this function:

◆ Bohr_length()

constexpr uval phys::Bohr_length ( length_d ,
5.291772106712E- 11L )
constexpr

hb^2/(ke*me*e^2)

◆ c_lightspeed()

constexpr uval phys::c_lightspeed ( speed_d ,
2.997924580E+ 8L )
constexpr

◆ e_charge()

constexpr uval phys::e_charge ( electric_charge_d ,
1.602176620898E- 19L )
constexpr

◆ ep0_permittivity()

constexpr uval phys::ep0_permittivity ( permittivity_d ,
8.854187817E- 12L )
constexpr

1/(4*pi*ke)

◆ Faraday_constant()

constexpr uval phys::Faraday_constant ( electric_charge_d/ amount_of_substance_d,
96485. 3328959L )
constexpr

e*N

◆ G_gravitional_constant()

constexpr uval phys::G_gravitional_constant ( dimension7{{3, -2, -1}} ,
6.6740831E- 11L )
constexpr

◆ h_Planck()

constexpr uval phys::h_Planck ( action_d ,
6.62607004081E- 34L )
constexpr

◆ hb_Planck()

constexpr uval phys::hb_Planck ( action_d ,
1.05457180013E- 34L )
constexpr

h/(2*pi)

◆ is_same_dimension7()

bool phys::is_same_dimension7 ( const uval & lhs,
const uval & rhs )
inline

Definition at line 468 of file phys.h.

References phys::uval::dim.

◆ k_Boltzman()

constexpr uval phys::k_Boltzman ( entropy_d ,
1.3806490351E- 23L )
constexpr

◆ ke_Comloub()

constexpr uval phys::ke_Comloub ( dimensionless_d/ permittivity_d,
8.9875517873681764E+ 9L )
constexpr

◆ me_mass()

constexpr uval phys::me_mass ( mass_d ,
9.1093835611E- 31L )
constexpr

◆ mn_mass()

constexpr uval phys::mn_mass ( mass_d ,
1.67492749804e- 27L )
constexpr

◆ mp_mass()

constexpr uval phys::mp_mass ( mass_d ,
1.67262189821E- 27L )
constexpr

◆ mu0_permeability()

constexpr uval phys::mu0_permeability ( magnetic_permeability_d ,
1.256637061E- 6L )
constexpr

4*pi*ke/c^2

◆ muB_magnetic_moment()

constexpr uval phys::muB_magnetic_moment ( magnetic_moment_d ,
9.27400999457E- 24L )
constexpr

e*hb / (2*me)

◆ muN_magnetic_moment()

constexpr uval phys::muN_magnetic_moment ( magnetic_moment_d ,
5.05078369931E- 27L )
constexpr

e*hb / (2*mn)

◆ N_Avagadro()

constexpr uval phys::N_Avagadro ( dimensionless_d/ amount_of_substance_d,
6.02214085774E+ 23L )
constexpr

◆ operator*() [1/3]

constexpr uval phys::operator* ( const real_precision & lhs,
const uval & rhs )
inlineconstexpr

Definition at line 450 of file phys.h.

◆ operator*() [2/3]

constexpr uval phys::operator* ( const uval & lhs,
const real_precision & rhs )
inlineconstexpr

Definition at line 451 of file phys.h.

◆ operator*() [3/3]

constexpr uval phys::operator* ( const uval & lhs,
const uval & rhs )
inlineconstexpr

Definition at line 447 of file phys.h.

References phys::uval::dim, and phys::uval::value.

◆ operator+()

const uval phys::operator+ ( const uval & lhs,
const uval & rhs )
inline

Definition at line 457 of file phys.h.

References phys::uval::dim, and phys::uval::value.

◆ operator-()

const uval phys::operator- ( const uval & lhs,
const uval & rhs )
inline

Definition at line 461 of file phys.h.

References phys::uval::dim, and phys::uval::value.

◆ operator/() [1/3]

constexpr uval phys::operator/ ( const real_precision & lhs,
const uval & rhs )
inlineconstexpr

Definition at line 455 of file phys.h.

◆ operator/() [2/3]

constexpr uval phys::operator/ ( const uval & lhs,
const real_precision & rhs )
inlineconstexpr

Definition at line 456 of file phys.h.

◆ operator/() [3/3]

constexpr uval phys::operator/ ( const uval & lhs,
const uval & rhs )
inlineconstexpr

Definition at line 452 of file phys.h.

References phys::uval::dim, and phys::uval::value.

◆ PHYS_DEFINE_UNITSYS_NAMESPACE() [1/12]

phys::PHYS_DEFINE_UNITSYS_NAMESPACE ( amu ,
hb_Planck ,
me_mass ,
e_charge ,
ke_Comloub ,
_base_1K ,
_base_1mol ,
_base_1cd  )

◆ PHYS_DEFINE_UNITSYS_NAMESPACE() [2/12]

phys::PHYS_DEFINE_UNITSYS_NAMESPACE ( au_test ,
hb_Planck ,
me_mass ,
e_charge ,
ke_Comloub ,
k_Boltzman ,
N_Avagadro ,
_base_1cd  )

◆ PHYS_DEFINE_UNITSYS_NAMESPACE() [3/12]

phys::PHYS_DEFINE_UNITSYS_NAMESPACE ( gauss ,
0.01L * _base_1m,
_base_1s ,
0.001L * _base_1kg,
ke_Comloub ,
_base_1K ,
_base_1mol ,
_base_1cd  )
Parameters
_base_1kg!< 1s

◆ PHYS_DEFINE_UNITSYS_NAMESPACE() [4/12]

phys::PHYS_DEFINE_UNITSYS_NAMESPACE ( ghartree ,
hb_Planck ,
me_mass ,
e_charge ,
ke_Comloub ,
k_Boltzman ,
N_Avagadro ,
_base_1cd  )

◆ PHYS_DEFINE_UNITSYS_NAMESPACE() [5/12]

phys::PHYS_DEFINE_UNITSYS_NAMESPACE ( god_given ,
c_lightspeed ,
hb_Planck ,
G_gravitional_constant ,
_base_1A ,
_base_1K ,
_base_1mol ,
_base_1cd  )

◆ PHYS_DEFINE_UNITSYS_NAMESPACE() [6/12]

phys::PHYS_DEFINE_UNITSYS_NAMESPACE ( hartree ,
hb_Planck ,
me_mass ,
e_charge ,
ke_Comloub ,
_base_1K ,
_base_1mol ,
_base_1cd  )

◆ PHYS_DEFINE_UNITSYS_NAMESPACE() [7/12]

phys::PHYS_DEFINE_UNITSYS_NAMESPACE ( natural ,
c_lightspeed ,
hb_Planck ,
me_mass ,
ep0_permittivity ,
_base_1K ,
_base_1mol ,
_base_1cd  )

◆ PHYS_DEFINE_UNITSYS_NAMESPACE() [8/12]

phys::PHYS_DEFINE_UNITSYS_NAMESPACE ( planck ,
c_lightspeed ,
hb_Planck ,
G_gravitional_constant ,
k_Boltzman ,
_base_1A ,
_base_1mol ,
_base_1cd  )

◆ PHYS_DEFINE_UNITSYS_NAMESPACE() [9/12]

phys::PHYS_DEFINE_UNITSYS_NAMESPACE ( quantum_chromo_dynamics ,
c_lightspeed ,
hb_Planck ,
mp_mass ,
e_charge ,
_base_1K ,
_base_1mol ,
_base_1cd  )

◆ PHYS_DEFINE_UNITSYS_NAMESPACE() [10/12]

phys::PHYS_DEFINE_UNITSYS_NAMESPACE ( rydberg ,
hb_Planck ,
2 * me_mass,
e_charge *e_charge/ 2,
ke_Comloub ,
_base_1K ,
_base_1mol ,
_base_1cd  )
Parameters
me_mass!< Planck constant
2!< mass of electron

◆ PHYS_DEFINE_UNITSYS_NAMESPACE() [11/12]

phys::PHYS_DEFINE_UNITSYS_NAMESPACE ( si ,
_base_1m ,
_base_1s ,
_base_1kg ,
_base_1A ,
_base_1K ,
_base_1mol ,
_base_1cd  )

◆ PHYS_DEFINE_UNITSYS_NAMESPACE() [12/12]

phys::PHYS_DEFINE_UNITSYS_NAMESPACE ( stoney ,
c_lightspeed ,
G_gravitional_constant ,
ke_Comloub ,
e_charge ,
_base_1K ,
_base_1mol ,
_base_1cd  )

◆ power()

uval phys::power ( const uval & lhs,
const real_precision & index )
inline

Definition at line 465 of file phys.h.

References phys::uval::dim, phys::dimensions< T, N >::power(), and phys::uval::value.

Referenced by phys::unitsys::parse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ R_gas_constant()

constexpr uval phys::R_gas_constant ( molar_entropy_d ,
8. 314459848L )
constexpr

k * N

◆ reduce_l_energy()

constexpr real_precision phys::reduce_l_energy ( const dimension7 dim)
inlineconstexpr

Definition at line 179 of file phys.h.

References phys::dimensions< T, N >::_data, _L, _M, _Q, and _T.

Referenced by phys::unitsys::as().

Here is the caller graph for this function:

◆ reduce_l_nonzero()

constexpr real_precision phys::reduce_l_nonzero ( const dimension7 dim)
inlineconstexpr

Definition at line 175 of file phys.h.

References phys::dimensions< T, N >::_data.

◆ Rydberg_constant()

constexpr uval phys::Rydberg_constant ( wave_number_d ,
10973731. 56850865L )
constexpr

me* e ^ 4 / (8 * ep0 ^ 2 * h ^ 3 * c)

◆ Stefan_constant()

constexpr uval phys::Stefan_constant ( dimension7{{0, -3, 1, -4}} ,
5.67036713E- 8L )
constexpr

pi^2 kB^4/(60*hb^3*c^2)

◆ to_string()

std::string phys::to_string ( const uval & u)
inline

Definition at line 470 of file phys.h.

References phys::uval::dim, phys::dimensions< T, N >::to_string(), and phys::uval::value.

Here is the call graph for this function:

Variable Documentation

◆ _nostd_1cal

constexpr uval phys::_nostd_1cal = 4.184L * _base_1J
constexpr

1 cal (non-standard)

Definition at line 501 of file phys.h.

◆ absement_d

constexpr dimension7 phys::absement_d {{1, 1, 0}}
constexpr

[L*T]

Definition at line 225 of file phys.h.

◆ absorbed_dose_d

constexpr dimension7 phys::absorbed_dose_d = specific_energy_d
constexpr

[L^2/T^2] (radiation) energy per mass

Definition at line 233 of file phys.h.

◆ absorbed_dose_rate_d

constexpr dimension7 phys::absorbed_dose_rate_d {{2, -3, 0}}
constexpr

[L^2/T^3] (radiation) power per mass

Definition at line 234 of file phys.h.

◆ acceleration_d

constexpr dimension7 phys::acceleration_d {{1, -2, 0}}
constexpr

[L*T^-2]

Definition at line 220 of file phys.h.

◆ action_d

constexpr dimension7 phys::action_d = angular_momentum_d
constexpr

[M*L^2/T] energy integrate time

Definition at line 255 of file phys.h.

◆ activity_of_a_nuclide_d

constexpr dimension7 phys::activity_of_a_nuclide_d = frequency_d
constexpr

Definition at line 214 of file phys.h.

◆ amount_d

constexpr dimension7 phys::amount_d = amount_of_substance_d
constexpr

Definition at line 196 of file phys.h.

◆ amount_of_substance_d

constexpr dimension7 phys::amount_of_substance_d {{0, 0, 0, 0, 0, 1, 0}}
constexpr

[N]

Definition at line 191 of file phys.h.

◆ angular_acceleration_d

constexpr dimension7 phys::angular_acceleration_d {{0, -2, 0}}
constexpr

[T^-2]

Definition at line 213 of file phys.h.

◆ angular_momentum_d

constexpr dimension7 phys::angular_momentum_d {{2, -1, 1}}
constexpr

[M*L^2/T] torque integrate time

Definition at line 254 of file phys.h.

◆ angular_velocity_d

constexpr dimension7 phys::angular_velocity_d {{0, -1, 0}}
constexpr

[T^-1]

Definition at line 212 of file phys.h.

◆ area_d

constexpr dimension7 phys::area_d {{2, 0, 0}}
constexpr

[L^2]

Definition at line 205 of file phys.h.

◆ area_flow_rate_d

constexpr dimension7 phys::area_flow_rate_d {{2, -1, 0}}
constexpr

[L^2*T^-1]

Definition at line 226 of file phys.h.

◆ au_2_amu

CONSTTYPE real_precision phys::au_2_amu = unitsys::conv(au::unit, amu_mass)
static

1mea means we measure a quantity at 1*N level.

in si unit: N = N_Avagadro = 6.022...E+23 and in generalized hatree unit (au): N = 1 (or set N_Avagadro as 1)

conv() function works well for converting [energy_d/amount_of_substance_d] dimension7

Definition at line 992 of file phys.h.

Referenced by PROJECT_NS::mspes_NA_I(), PROJECT_NS::Model_Interf_MNDO::parse_hessian2(), PROJECT_NS::Model_Interf_MNDO::setInputDataSet_impl(), PROJECT_NS::Model_NAD1D::setInputDataSet_impl(), and PROJECT_NS::Model_NAD1D::setInputParam_impl().

◆ au_2_ang

◆ au_2_angoverps

CONSTTYPE real_precision phys::au_2_angoverps = au_2_ang / au_2_ps
static

Definition at line 1002 of file phys.h.

Referenced by PROJECT_NS::Model_Interf_MNDO::calc_samp().

◆ au_2_ev

◆ au_2_fs

CONSTTYPE real_precision phys::au_2_fs = unitsys::conv(au::unit, 1e-15L * _base_1s)
static

Definition at line 999 of file phys.h.

◆ au_2_g_1mea

CONSTTYPE real_precision phys::au_2_g_1mea = unitsys::conv(au::unit, 1e-3L * _base_1kg / _base_1mol) * au::N
static

Definition at line 997 of file phys.h.

◆ au_2_J_1mea

CONSTTYPE real_precision phys::au_2_J_1mea = unitsys::conv(au::unit, _base_1J / _base_1mol) * au::N
static

Definition at line 995 of file phys.h.

◆ au_2_K

CONSTTYPE real_precision phys::au_2_K = unitsys::conv(au::unit, _base_1K)
static

Definition at line 1001 of file phys.h.

◆ au_2_kcal_1mea

CONSTTYPE real_precision phys::au_2_kcal_1mea = unitsys::conv(au::unit, 1e+3L * _nostd_1cal / _base_1mol) * au::N
static

◆ au_2_ps

CONSTTYPE real_precision phys::au_2_ps = unitsys::conv(au::unit, 1e-12L * _base_1s)
static

Definition at line 1000 of file phys.h.

◆ au_2_wn

◆ concentration_d

constexpr dimension7 phys::concentration_d {{-3, 0, 0, 0, 0, 1}}
constexpr

[N/L^3] amount per volume

Definition at line 337 of file phys.h.

◆ crackle_d

constexpr dimension7 phys::crackle_d {{1, -5, 0}}
constexpr

[L*T^-5]

Definition at line 223 of file phys.h.

◆ current_d

constexpr dimension7 phys::current_d = electric_current_d
constexpr

Definition at line 194 of file phys.h.

◆ current_density_d

constexpr dimension7 phys::current_density_d {{-2, 0, 0, 1}}
constexpr

[I/L^2] current per area

Definition at line 287 of file phys.h.

◆ description

const std::map<const dimension7, const std::string> phys::description

Definition at line 349 of file phys.h.

◆ dimension7_size

const int phys::dimension7_size = 7

dimension7 is provided as compile-time dimensional tools

Definition at line 163 of file phys.h.

Referenced by phys::unitsys::eval().

◆ dimensionless_d

constexpr dimension7 phys::dimensionless_d {{}}
constexpr

[1]

Definition at line 185 of file phys.h.

◆ distance_d

constexpr dimension7 phys::distance_d = length_d
constexpr

Definition at line 202 of file phys.h.

◆ dose_equivalent_d

constexpr dimension7 phys::dose_equivalent_d = specific_energy_d
constexpr

[L^2/T^2] (radiation) energy per mass

Definition at line 232 of file phys.h.

◆ dynamic_viscosity_d

constexpr dimension7 phys::dynamic_viscosity_d {{-1, -1, 1}}
constexpr

[M/L/T] force / (area * gradient(velocity))

Note
dynamic_viscosity (mu) is differ from kinematic_viscosity kinematic_viscosity_d (nu):
 kinematic_viscosity = dynamic_viscosity / density

Definition at line 272 of file phys.h.

◆ electric_area_charge_density_d

constexpr dimension7 phys::electric_area_charge_density_d {{-2, 1, 0, 1}}
constexpr

[I/L^2*T] charge per area

Definition at line 290 of file phys.h.

◆ electric_capacitance_d

constexpr dimension7 phys::electric_capacitance_d {{-2, 4, -1, 2}}
constexpr

[M^-1*L^-2*T^4*I^2] charge versus electric potential

Definition at line 309 of file phys.h.

◆ electric_charge_d

constexpr dimension7 phys::electric_charge_d {{0, 1, 0, 1}}
constexpr

[I*T] current integrate time

Definition at line 288 of file phys.h.

◆ electric_charge_density_d

constexpr dimension7 phys::electric_charge_density_d {{-3, 1, 0, 1}}
constexpr

[I/L^3*T] charge per volume

Definition at line 289 of file phys.h.

◆ electric_chargme_mass_ratio_d

constexpr dimension7 phys::electric_chargme_mass_ratio_d {{0, 1, -1, 1}}
constexpr

[M^-1*T*I]

Definition at line 315 of file phys.h.

◆ electric_conductance_d

constexpr dimension7 phys::electric_conductance_d {{-2, 3, -1, 2}}
constexpr

[M^-1*L^-2*T^3*I^2] = 1 / electric_resistance

Definition at line 306 of file phys.h.

◆ electric_conductivity_d

constexpr dimension7 phys::electric_conductivity_d {{-3, 3, -1, 2}}
constexpr

[M^-1*L^-3*T^3*I^2] 1 / electric_resistivity

Definition at line 308 of file phys.h.

◆ electric_current_d

constexpr dimension7 phys::electric_current_d {{0, 0, 0, 1, 0, 0, 0}}
constexpr

[I]

Definition at line 189 of file phys.h.

◆ electric_dipole_moment_d

constexpr dimension7 phys::electric_dipole_moment_d {{1, 1, 0, 1}}
constexpr

[I*L*T] charge times length

Definition at line 292 of file phys.h.

◆ electric_displacement_field_d

constexpr dimension7 phys::electric_displacement_field_d = electric_area_charge_density_d
constexpr

[I/L^2*T], D

Definition at line 295 of file phys.h.

◆ electric_field_strenth_d

constexpr dimension7 phys::electric_field_strenth_d {{1, -3, 1, -1}}
constexpr

[M*L/T^3/I] electric potential per length

Definition at line 304 of file phys.h.

◆ electric_flux_density_d

constexpr dimension7 phys::electric_flux_density_d = electric_area_charge_density_d
constexpr

[I/L^2*T]

Definition at line 294 of file phys.h.

◆ electric_line_charge_density_d

constexpr dimension7 phys::electric_line_charge_density_d {{-1, 1, 0, 1}}
constexpr

[I/L*T] charge per line

Definition at line 291 of file phys.h.

◆ electric_polarization_field_d

constexpr dimension7 phys::electric_polarization_field_d
constexpr
Initial value:
=
constexpr dimension7 electric_area_charge_density_d
[I/L^2*T] charge per area
Definition phys.h:290

[I/L^2*T], P = dipole moment pe volume

Definition at line 296 of file phys.h.

◆ electric_potential_d

constexpr dimension7 phys::electric_potential_d {{2, -3, 1, -1}}
constexpr

[M*L^2/T^3/I] energy per charge

Definition at line 303 of file phys.h.

◆ electric_resistance_d

constexpr dimension7 phys::electric_resistance_d {{2, -3, 1, -2}}
constexpr

[M*L^2/T^3/I^2] electric potential versus current

Definition at line 305 of file phys.h.

◆ electric_resistivity_d

constexpr dimension7 phys::electric_resistivity_d {{3, -3, 1, -2}}
constexpr

[M*L^3/T^3/I^2] electric_resistance time length

Definition at line 307 of file phys.h.

◆ energy_d

◆ energy_density_d

constexpr dimension7 phys::energy_density_d {{-1, -2, 1}}
constexpr

[M/L/T^2] energy per volume

Definition at line 260 of file phys.h.

◆ energy_line_density_d

constexpr dimension7 phys::energy_line_density_d {{1, -2, 1}}
constexpr

[M/L/T^2] energy per line

Definition at line 263 of file phys.h.

◆ entropy_d

constexpr dimension7 phys::entropy_d = heat_capacity_d
constexpr

[M*L^2/T^2/Q] energy per temperature

Definition at line 325 of file phys.h.

◆ force_d

constexpr dimension7 phys::force_d {{1, -2, 1}}
constexpr

[M*L/T^2] mass times acceleration

Definition at line 249 of file phys.h.

◆ frequency_d

constexpr dimension7 phys::frequency_d {{0, -1, 0}}
constexpr

[T^-1]

Definition at line 211 of file phys.h.

◆ heat_capacity_d

constexpr dimension7 phys::heat_capacity_d {{2, -2, 1, 0, -1}}
constexpr

[M*L^2/T^2/Q] energy per temperature

Definition at line 324 of file phys.h.

◆ heat_density_d

constexpr dimension7 phys::heat_density_d = mass_flow_acceleration_d
constexpr

[M/T^2] (heat flow) energy per area

Definition at line 276 of file phys.h.

◆ heat_density_flow_rate_d

constexpr dimension7 phys::heat_density_flow_rate_d = power_area_density_d
constexpr

[M/T^3] (heat flow) energy per area per time

Definition at line 277 of file phys.h.

◆ heat_flow_rate_d

constexpr dimension7 phys::heat_flow_rate_d = power_d
constexpr

[M/L/T^3] (heat) energy per time

Definition at line 275 of file phys.h.

◆ heat_flux_density_d

constexpr dimension7 phys::heat_flux_density_d = power_area_density_d
constexpr

[M/T^3] (heat) energy per time per area

Definition at line 278 of file phys.h.

◆ heat_transfer_coefficient_d

constexpr dimension7 phys::heat_transfer_coefficient_d
constexpr
Initial value:
{
{0, -3, 1, 0, -1}}

[M/T^3/Q] heat_flux_density versus temperature

Definition at line 326 of file phys.h.

◆ illuminance_d

constexpr dimension7 phys::illuminance_d {{-2, 0, 0, 0, 0, 0, 1}}
constexpr

[J/L^2] luminous_intensity per area

Definition at line 345 of file phys.h.

◆ inductance_d

constexpr dimension7 phys::inductance_d {{2, -2, 1, -2}}
constexpr

[M*L^2/T^2/I^2] magnetic flux versus current, L

Definition at line 313 of file phys.h.

◆ inertia_d

constexpr dimension7 phys::inertia_d {{2, 0, 1}}
constexpr

[M*L^2]

Definition at line 240 of file phys.h.

◆ inv_ener_d

constexpr dimension7 phys::inv_ener_d {{-2, 2, -1}}
constexpr

[M^-1*L^-2*T^2], inversed energy, such as 1/(kB * T)

Definition at line 257 of file phys.h.

◆ inv_temp_d

constexpr dimension7 phys::inv_temp_d {{0, 0, 0, 0, -1}}
constexpr

Definition at line 323 of file phys.h.

◆ irradiance_d

constexpr dimension7 phys::irradiance_d = power_area_density_d
constexpr

[M/T^3] (radiation) power per area

Definition at line 282 of file phys.h.

◆ jerk_d

constexpr dimension7 phys::jerk_d {{1, -3, 0}}
constexpr

[L*T^-3]

Definition at line 221 of file phys.h.

◆ jounce_d

constexpr dimension7 phys::jounce_d {{1, -4, 0}}
constexpr

[L*T^-4]

Definition at line 222 of file phys.h.

◆ kinematic_viscosity_d

constexpr dimension7 phys::kinematic_viscosity_d = area_flow_rate_d
constexpr

[L^2*T^-1] = viscosity / density

Definition at line 228 of file phys.h.

◆ length_d

constexpr dimension7 phys::length_d {{1, 0, 0, 0, 0, 0, 0}}
constexpr

[L]

Definition at line 186 of file phys.h.

◆ luminance_d

constexpr dimension7 phys::luminance_d = illuminance_d
constexpr

[J/L^2] luminous_intensity per area

Definition at line 346 of file phys.h.

◆ luminous_flux_d

constexpr dimension7 phys::luminous_flux_d = luminous_intensity_d
constexpr

[J]

Definition at line 344 of file phys.h.

◆ luminous_intensity_d

constexpr dimension7 phys::luminous_intensity_d {{0, 0, 0, 0, 0, 0, 1}}
constexpr

[J]

Definition at line 192 of file phys.h.

◆ magnetic_field_strength_d

constexpr dimension7 phys::magnetic_field_strength_d {{-1, 0, 0, 1}}
constexpr

[I/L] magnetic moment per volume

Definition at line 300 of file phys.h.

◆ magnetic_flux_d

constexpr dimension7 phys::magnetic_flux_d {{2, -2, 1, -1}}
constexpr

[M*L^2/T^2/I] energy per current = E/I = B*S

Definition at line 310 of file phys.h.

◆ magnetic_flux_density_d

constexpr dimension7 phys::magnetic_flux_density_d
constexpr
Initial value:
{
{0, -2, 1, -1}}

[M*T^-2/I] B = electric_field_strenth_d versus velocity

Definition at line 311 of file phys.h.

◆ magnetic_moment_d

constexpr dimension7 phys::magnetic_moment_d {{2, 0, 0, 1}}
constexpr

[I*L^2] current integrate area

Definition at line 299 of file phys.h.

◆ magnetic_permeability_d

constexpr dimension7 phys::magnetic_permeability_d {{1, -2, 1, -2}}
constexpr

[M*L/T^2/I^2], mu

Definition at line 317 of file phys.h.

◆ magnetization_d

constexpr dimension7 phys::magnetization_d = magnetic_field_strength_d
constexpr

[I/L] magnetic moment per volume

Definition at line 301 of file phys.h.

◆ mass_area_density_d

constexpr dimension7 phys::mass_area_density_d {{-2, 0, 1}}
constexpr

[M/L^2] mass per area

Definition at line 242 of file phys.h.

◆ mass_d

constexpr dimension7 phys::mass_d {{0, 0, 1, 0, 0, 0, 0}}
constexpr

[M]

Definition at line 188 of file phys.h.

◆ mass_density_d

constexpr dimension7 phys::mass_density_d {{-3, 0, 1}}
constexpr

[M/L^3] mass per volume

Definition at line 243 of file phys.h.

◆ mass_flow_acceleration_d

constexpr dimension7 phys::mass_flow_acceleration_d {{0, -2, 1}}
constexpr

[M/T^2] mass per per time

Definition at line 246 of file phys.h.

◆ mass_flow_jerk_d

constexpr dimension7 phys::mass_flow_jerk_d {{0, -3, 1}}
constexpr

[M/T^3] mass per per per time

Definition at line 247 of file phys.h.

◆ mass_flow_rate_d

constexpr dimension7 phys::mass_flow_rate_d {{0, -1, 1}}
constexpr

[M/T] mass per time

Definition at line 245 of file phys.h.

◆ mass_line_density_d

constexpr dimension7 phys::mass_line_density_d {{-1, 0, 1}}
constexpr

[M/L] mass per line

Definition at line 241 of file phys.h.

◆ molar_energy_d

constexpr dimension7 phys::molar_energy_d {{2, -2, 1, 0, 0, -1}}
constexpr

[M*L^2/T^2/N] energy per amount

Definition at line 338 of file phys.h.

◆ molar_entropy_d

constexpr dimension7 phys::molar_entropy_d {{2, -2, 1, 0, -1, -1}}
constexpr

[M*L^2/T^2/Q/N] entropy per amount

Definition at line 339 of file phys.h.

◆ moment_of_force_d

constexpr dimension7 phys::moment_of_force_d = energy_d
constexpr

[M*L^2/T^2] force cross length

Definition at line 252 of file phys.h.

◆ momentum_d

constexpr dimension7 phys::momentum_d {{1, -1, 1}}
constexpr

[M*L/T] force integrate time

Definition at line 250 of file phys.h.

◆ none_d

◆ permittivity_d

constexpr dimension7 phys::permittivity_d {{-3, 4, -1, 2}}
constexpr

[M^-1*L^-2*T^4*I^2], epsilon

Definition at line 318 of file phys.h.

◆ pop_d

constexpr dimension7 phys::pop_d {{1, -6, 0}}
constexpr

[L*T^-6]

Definition at line 224 of file phys.h.

◆ power_area_density_d

constexpr dimension7 phys::power_area_density_d = mass_flow_jerk_d
constexpr

[M/T^3] power per area

Definition at line 265 of file phys.h.

◆ power_d

constexpr dimension7 phys::power_d {{2, -3, 1}}
constexpr

[M*L^2/T^3] energy per time

Definition at line 259 of file phys.h.

◆ power_density_d

constexpr dimension7 phys::power_density_d {{-1, -3, 1}}
constexpr

[M/L/T^3] power per volume

Definition at line 264 of file phys.h.

◆ pressure_d

constexpr dimension7 phys::pressure_d = energy_density_d
constexpr

[M/L/T^2] energy per volume = force per area

Definition at line 261 of file phys.h.

◆ radiance_d

constexpr dimension7 phys::radiance_d = power_area_density_d
constexpr

[M/T^3] (radiation) power per area

Definition at line 281 of file phys.h.

◆ radiant_intensity_d

constexpr dimension7 phys::radiant_intensity_d = power_d
constexpr

[M/L/T^3] (radiation) energy per time

Definition at line 280 of file phys.h.

◆ specific_energy_d

constexpr dimension7 phys::specific_energy_d {{2, -2, 0}}
constexpr

[L^2/T^2] (count) energy per mass

Definition at line 231 of file phys.h.

◆ specific_heat_capacity_d

constexpr dimension7 phys::specific_heat_capacity_d {{2, -2, 0, 0, -1}}
constexpr

[L^2/T^2/Q] capacity per mass

Definition at line 328 of file phys.h.

◆ specific_volume_d

constexpr dimension7 phys::specific_volume_d {{3, 0, -1}}
constexpr

[L^3/M] volume per mass

Definition at line 244 of file phys.h.

◆ speed_d

constexpr dimension7 phys::speed_d {{1, -1, 0}}
constexpr

[L*T^-1]

Definition at line 219 of file phys.h.

◆ substance_permeability_d

constexpr dimension7 phys::substance_permeability_d {{-1, 1, 0}}
constexpr

[L^-1*T]

Definition at line 235 of file phys.h.

◆ surface_tension_d

constexpr dimension7 phys::surface_tension_d = mass_flow_acceleration_d
constexpr

[M/T^2] energy per area

Definition at line 262 of file phys.h.

◆ temperature_d

◆ thermal_conductivity_d

constexpr dimension7 phys::thermal_conductivity_d {{1, -3, 1, 0, -1}}
constexpr

[M*L/T^3/Q]

Definition at line 329 of file phys.h.

◆ thermal_diffusivity_d

constexpr dimension7 phys::thermal_diffusivity_d
constexpr
Initial value:
=
constexpr dimension7 area_flow_rate_d
[L^2*T^-1]
Definition phys.h:226

[L^2*T^-1] = thermal_conductivity / (specific_heat_capacity * density)

Definition at line 229 of file phys.h.

◆ thermal_insulance_d

constexpr dimension7 phys::thermal_insulance_d {{0, 3, -1, 0, 1}}
constexpr

[M^-1*T^3*Q] = 1 / heat_transfer_coefficient

Definition at line 330 of file phys.h.

◆ thermal_resistance_d

constexpr dimension7 phys::thermal_resistance_d {{-2, 3, -1, 0, 1}}
constexpr

[M^-1*L^-2*T^3*Q]

Definition at line 331 of file phys.h.

◆ thermal_resistivity_d

constexpr dimension7 phys::thermal_resistivity_d {{-1, 3, -1, 0, 1}}
constexpr

[M^-1*L^-1*T^3*Q]

Definition at line 332 of file phys.h.

◆ thermodynamic_temperature_d

constexpr dimension7 phys::thermodynamic_temperature_d {{0, 0, 0, 0, 1, 0, 0}}
constexpr

[Q]

Definition at line 190 of file phys.h.

◆ time_d

◆ torque_d

constexpr dimension7 phys::torque_d = moment_of_force_d
constexpr

Definition at line 253 of file phys.h.

◆ uval_names

const std::map<std::string, uval> phys::uval_names
static

Definition at line 534 of file phys.h.

Referenced by phys::unitsys::parse().

◆ uval_prefix

const std::map<std::string, real_precision> phys::uval_prefix
static
Initial value:
= {
{"Y", 1e+24L}, {"Z", 1e+21L}, {"E", 1e+18L}, {"P", 1e+15L}, {"T", 1e+12L}, {"G", 1e+9L},
{"M", 1e+6L}, {"k", 1e+3L}, {"h", 1e+2L}, {"c", 1e-2L}, {"m", 1e-3L}, {"ยต", 1e-6L},
{"n", 1e-9L}, {"p", 1e-12L}, {"f", 1e-15L}, {"a", 1e-18L}, {"z", 1e-21L}, {"y", 1e-24L},
}

Definition at line 529 of file phys.h.

Referenced by phys::unitsys::parse().

◆ volume_d

constexpr dimension7 phys::volume_d {{3, 0, 0}}
constexpr

[L^3]

Definition at line 206 of file phys.h.

◆ volume_flow_rate_d

constexpr dimension7 phys::volume_flow_rate_d {{3, -1, 0}}
constexpr

[L^3*T^-1]

Definition at line 227 of file phys.h.

◆ wave_number_d

constexpr dimension7 phys::wave_number_d {{-1, 0, 0}}
constexpr

[L^-1]

Definition at line 204 of file phys.h.

◆ wavelength_d

constexpr dimension7 phys::wavelength_d = length_d
constexpr

Definition at line 203 of file phys.h.