tfel
Loading...
Searching...
No Matches
Unit.hxx File Reference
#include <array>
#include <numeric>
#include <concepts>
#include <algorithm>
#include <type_traits>
#include "TFEL/Config/TFELConfig.hxx"
#include "TFEL/Metaprogramming/InvalidType.hxx"
#include "TFEL/Math/Forward/General.hxx"

Classes

struct  tfel::math::unit::UnitExponent
struct  tfel::math::unit::UnitExponents
struct  tfel::math::unit::UnitBase< e >
 brief base class inherited by all unit classes More...
struct  tfel::math::unit::Unit< N1, N2, N3, N4, N5, N6, N7, D1, D2, D3, D4, D5, D6, D7 >
struct  tfel::math::unit::StandardUnit< N1, N2, N3, N4, N5, N6, N7 >
struct  tfel::math::unit::NoUnit
 Declares the null unit. More...
struct  tfel::math::unit::Mass
 Declares the Mass unit. More...
struct  tfel::math::unit::Length
 Declares the Length unit. More...
struct  tfel::math::unit::Time
 Declares the Time unit. More...
struct  tfel::math::unit::Ampere
 Declares the Ampere unit. More...
struct  tfel::math::unit::Temperature
 Declares the Temperature unit. More...
struct  tfel::math::unit::Candela
 Declares the Candela unit. More...
struct  tfel::math::unit::Mole
 Declares the Mole unit. More...
struct  tfel::math::unit::InvLength
 Declares the InvLength unit. More...
struct  tfel::math::unit::InvTemperature
 Declares the InvTemperature unit. More...
struct  tfel::math::unit::Frequency
 Declares the Frequency unit. More...
struct  tfel::math::unit::Speed
 Declares the Speed unit. More...
struct  tfel::math::unit::Acceleration
 Declares the Acceleration unit. More...
struct  tfel::math::unit::Momentum
 Declares the Momentum unit. More...
struct  tfel::math::unit::Force
 Declares the Momentum unit. More...
struct  tfel::math::unit::Stress
 Declares the Stress unit. More...
struct  tfel::math::unit::StressRate
 Declares the StressRate unit. More...
struct  tfel::math::unit::Energy
 Declares the Energy unit. More...
struct  tfel::math::unit::Density
 Declares the Density unit. More...
struct  tfel::math::unit::TemperatureGradient
 Declares the TemperatureGradient unit. More...
struct  tfel::math::unit::ThermalConductivity
 Declares the ThermalConductivity unit. More...
struct  tfel::math::unit::HeatFluxDensity
 Declares the HeatFluxDensity unit. More...
struct  tfel::math::unit::UnitRebind< e >
 UnitRebind is a way to simply rebind some unit types from the unit exponents. More...
struct  tfel::math::unit::UnitRebind< exponents< NoUnit > >
struct  tfel::math::unit::UnitRebind< exponents< Length > >
struct  tfel::math::unit::UnitRebind< exponents< Mass > >
struct  tfel::math::unit::UnitRebind< exponents< Time > >
struct  tfel::math::unit::UnitRebind< exponents< Ampere > >
struct  tfel::math::unit::UnitRebind< exponents< Temperature > >
struct  tfel::math::unit::UnitRebind< exponents< Candela > >
struct  tfel::math::unit::UnitRebind< exponents< Mole > >
struct  tfel::math::unit::UnitRebind< exponents< InvLength > >
struct  tfel::math::unit::UnitRebind< exponents< InvTemperature > >
struct  tfel::math::unit::UnitRebind< exponents< Frequency > >
struct  tfel::math::unit::UnitRebind< exponents< Speed > >
struct  tfel::math::unit::UnitRebind< exponents< Acceleration > >
struct  tfel::math::unit::UnitRebind< exponents< Momentum > >
struct  tfel::math::unit::UnitRebind< exponents< Force > >
struct  tfel::math::unit::UnitRebind< exponents< Stress > >
struct  tfel::math::unit::UnitRebind< exponents< StressRate > >
struct  tfel::math::unit::UnitRebind< exponents< Energy > >
struct  tfel::math::unit::UnitRebind< exponents< Density > >
struct  tfel::math::unit::UnitRebind< exponents< TemperatureGradient > >
struct  tfel::math::unit::UnitRebind< exponents< ThermalConductivity > >
struct  tfel::math::unit::UnitRebind< exponents< HeatFluxDensity > >

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.
namespace  tfel::math
 This namespace contains various classes and functions défining mathematical objects and numerical algorithms.

Concepts

concept  tfel::math::unit::UnitConcept
concept  tfel::math::unit::areUnitsEqual

Typedefs

using tfel::math::unit::Kelvin = Temperature
 a simple alias
using tfel::math::unit::Newton = Force
 Declares the Newton unit.
using tfel::math::unit::Pressure = Stress
 Declares the Pressure unit.
using tfel::math::unit::EnergyDensity = Stress
 Declares the EnergyDensity unit.

Functions

constexpr bool tfel::math::unit::isValid (const UnitExponent &e) noexcept
constexpr bool tfel::math::unit::isIrreductible (const UnitExponent &e) noexcept
constexpr bool tfel::math::unit::isValid (const UnitExponents &e) noexcept
template<int N1 = 0, int N2 = 0, int N3 = 0, int N4 = 0, int N5 = 0, int N6 = 0, int N7 = 0, unsigned int D1 = 1, unsigned int D2 = 1, unsigned int D3 = 1, unsigned int D4 = 1, unsigned int D5 = 1, unsigned int D6 = 1, unsigned int D7 = 1>
constexpr UnitExponents tfel::math::unit::makeUnitExponents () noexcept
template<UnitExponents e>
requires (isValid(e))
constexpr UnitExponents tfel::math::unit::get_unit_exponents (const UnitBase< e > &) noexcept
template<UnitConcept UnitType>
constexpr UnitExponents tfel::math::unit::get_unit_exponents () noexcept
constexpr bool tfel::math::unit::areAllDenominatorsOne (const UnitExponents &e) noexcept

Variables

template<UnitConcept UnitType>
constexpr UnitExponents tfel::math::unit::exponents = get_unit_exponents<UnitType>()

Detailed Description

Author
Thomas Helfer
Date
01/08/2026

Typedef Documentation

◆ EnergyDensity

Declares the EnergyDensity unit.

See also
StandardUnit

◆ Newton

using tfel::math::unit::Newton = Force

Declares the Newton unit.

See also
StandardUnit

◆ Pressure

Declares the Pressure unit.

See also
StandardUnit