Physical Quantities  v1.0.0
C++ library of physical quantities, physical models, and units of measure for scientific computing. https://github.com/acodcha/phq
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Friends | List of all members
PhQ::Speed< NumericType > Class Template Reference

Scalar velocity component or magnitude of a velocity vector. For a three-dimensional Euclidean velocity vector, see PhQ::Velocity. For a two-dimensional Euclidean velocity vector in the XY plane, see PhQ::PlanarVelocity. More...

#include "Speed.hpp"

Public Member Functions

 Speed ()=default
 Default constructor. Constructs a speed with an uninitialized value. More...
 
 Speed (const NumericType value, const Unit::Speed unit)
 Constructor. Constructs a speed with a given value expressed in a given speed unit. More...
 
constexpr Speed (const Length< NumericType > &length, const Time< NumericType > &time)
 Constructor. Constructs a speed from a given length and time duration using the definition of speed. More...
 
constexpr Speed (const Length< NumericType > &length, const Frequency< NumericType > &frequency)
 Constructor. Constructs a speed from a given length and frequency using the definition of speed. More...
 
constexpr Speed (const ScalarAcceleration< NumericType > &scalar_acceleration, const Time< NumericType > &time)
 Constructor. Constructs a speed from a given scalar acceleration and time duration using the definition of acceleration. More...
 
constexpr Speed (const ScalarAcceleration< NumericType > &scalar_acceleration, const Frequency< NumericType > &frequency)
 Constructor. Constructs a speed from a given scalar acceleration and frequency using the definition of acceleration. More...
 
 Speed (const DynamicPressure< NumericType > &dynamic_pressure, const MassDensity< NumericType > &mass_density)
 Constructor. Constructs a speed from a given dynamic pressure and mass density using the definition of dynamic pressure. More...
 
 Speed (const DynamicKinematicPressure< NumericType > &dynamic_kinematic_pressure)
 Constructor. Constructs a speed from a given dynamic kinematic pressure using the definition of dynamic kinematic pressure. More...
 
constexpr Speed (const ReynoldsNumber< NumericType > &reynolds_number, const DynamicViscosity< NumericType > &dynamic_viscosity, const MassDensity< NumericType > &mass_density, const Length< NumericType > &length)
 Constructor. Constructs a speed from a given Reynolds number, dynamic viscosity, mass density, and length using the definition of the Reynolds number. More...
 
constexpr Speed (const ReynoldsNumber< NumericType > &reynolds_number, const KinematicViscosity< NumericType > &kinematic_viscosity, const Length< NumericType > &length)
 Constructor. Constructs a speed from a given Reynolds number, kinematic viscosity, and length using the definition of the Reynolds number. More...
 
constexpr Speed (const SoundSpeed< NumericType > &sound_speed, const MachNumber< NumericType > &mach_number)
 Constructor. Constructs a speed from a given sound speed and Mach number using the definition of the Mach number. More...
 
 ~Speed () noexcept=default
 Destructor. Destroys this speed. More...
 
constexpr Speed (const Speed< NumericType > &other)=default
 Copy constructor. Constructs a speed by copying another one. More...
 
template<typename OtherNumericType >
constexpr Speed (const Speed< OtherNumericType > &other)
 Copy constructor. Constructs a speed by copying another one. More...
 
constexpr Speed (Speed< NumericType > &&other) noexcept=default
 Move constructor. Constructs a speed by moving another one. More...
 
constexpr Speed< NumericType > & operator= (const Speed< NumericType > &other)=default
 Copy assignment operator. Assigns this speed by copying another one. More...
 
template<typename OtherNumericType >
constexpr Speed< NumericType > & operator= (const Speed< OtherNumericType > &other)
 Copy assignment operator. Assigns this speed by copying another one. More...
 
constexpr Speed< NumericType > & operator= (Speed< NumericType > &&other) noexcept=default
 Move assignment operator. Assigns this speed by moving another one. More...
 
constexpr Speed< NumericType > operator+ (const Speed< NumericType > &speed) const
 
constexpr Speed< NumericType > operator+ (const SoundSpeed< NumericType > &sound_speed) const
 
constexpr Speed< NumericType > operator- (const Speed< NumericType > &speed) const
 
constexpr Speed< NumericType > operator- (const SoundSpeed< NumericType > &sound_speed) const
 
constexpr Speed< NumericType > operator* (const NumericType number) const
 
constexpr Length< NumericType > operator* (const Time< NumericType > &time) const
 
constexpr ScalarAcceleration< NumericType > operator* (const Frequency< NumericType > &frequency) const
 
constexpr PlanarVelocity< NumericType > operator* (const PlanarDirection< NumericType > &direction) const
 
constexpr Velocity< NumericType > operator* (const Direction< NumericType > &direction) const
 
constexpr Power< NumericType > operator* (const TransportEnergyConsumption< NumericType > &transport_energy_consumption) const
 
constexpr Speed< NumericType > operator/ (const NumericType number) const
 
constexpr Length< NumericType > operator/ (const Frequency< NumericType > &frequency) const
 
constexpr Frequency< NumericType > operator/ (const Length< NumericType > &length) const
 
constexpr ScalarAcceleration< NumericType > operator/ (const Time< NumericType > &time) const
 
constexpr Time< NumericType > operator/ (const ScalarAcceleration< NumericType > &scalar_acceleration) const
 
constexpr MachNumber< NumericType > operator/ (const SoundSpeed< NumericType > &sound_speed) const
 
constexpr NumericType operator/ (const Speed< NumericType > &speed) const noexcept
 
constexpr void operator+= (const Speed< NumericType > &speed) noexcept
 
constexpr void operator+= (const SoundSpeed< NumericType > &speed) noexcept
 
constexpr void operator-= (const Speed< NumericType > &speed) noexcept
 
constexpr void operator-= (const SoundSpeed< NumericType > &speed) noexcept
 
constexpr void operator*= (const NumericType number) noexcept
 
constexpr void operator/= (const NumericType number) noexcept
 
constexpr double Value () const noexcept
 Value of this physical quantity expressed in its standard unit of measure. More...
 
double Value (const Unit::Speed unit) const
 Value of this physical quantity expressed in a given unit of measure. More...
 
constexpr double StaticValue () const
 Value of this physical quantity expressed in a given unit of measure. This method can be evaluated statically at compile-time. More...
 
constexpr double & MutableValue () noexcept
 Returns the value of this physical quantity expressed in its standard unit of measure as a mutable value. More...
 
constexpr void SetValue (const double value) noexcept
 Sets the value of this physical quantity expressed in its standard unit of measure to the given value. More...
 
std::string Print () const
 Prints this physical quantity as a string. This physical quantity's value is expressed in its standard unit of measure. More...
 
std::string Print (const Unit::Speed unit) const
 Prints this physical quantity as a string. This physical quantity's value is expressed in the given unit of measure. More...
 
std::string JSON () const
 Serializes this physical quantity as a JSON message. This physical quantity's value is expressed in its standard unit of measure. More...
 
std::string JSON (const Unit::Speed unit) const
 Serializes this physical quantity as a JSON message. This physical quantity's value is expressed in the given unit of measure. More...
 
std::string XML () const
 Serializes this physical quantity as an XML message. This physical quantity's value is expressed in its standard unit of measure. More...
 
std::string XML (const Unit::Speed unit) const
 Serializes this physical quantity as an XML message. This physical quantity's value is expressed in the given unit of measure. More...
 
std::string YAML () const
 Serializes this physical quantity as a YAML message. This physical quantity's value is expressed in its standard unit of measure. More...
 
std::string YAML (const Unit::Speed unit) const
 Serializes this physical quantity as a YAML message. This physical quantity's value is expressed in the given unit of measure. More...
 

Static Public Member Functions

static constexpr Speed< NumericType > Zero ()
 Statically creates a speed of zero. More...
 
template<Unit::Speed Unit>
static constexpr Speed< NumericType > Create (const NumericType value)
 Statically creates a speed with a given value expressed in a given speed unit. More...
 
static constexpr const PhQ::DimensionsDimensions ()
 Physical dimension set of this physical quantity. More...
 
static constexpr Unit::Speed Unit ()
 Standard unit of measure for this physical quantity. This physical quantity's value is stored internally in this unit of measure. More...
 

Protected Attributes

double value
 Value of this physical quantity expressed in its standard unit of measure. More...
 

Private Member Functions

constexpr Speed (const NumericType value)
 Constructor. Constructs a speed with a given value expressed in the standard speed unit. More...
 

Friends

template<typename OtherNumericType >
class SoundSpeed
 
template<typename OtherNumericType >
class PlanarVelocity
 
template<typename OtherNumericType >
class Velocity
 

Detailed Description

template<typename NumericType = double>
class PhQ::Speed< NumericType >

Scalar velocity component or magnitude of a velocity vector. For a three-dimensional Euclidean velocity vector, see PhQ::Velocity. For a two-dimensional Euclidean velocity vector in the XY plane, see PhQ::PlanarVelocity.

Definition at line 100 of file Speed.hpp.

Constructor & Destructor Documentation

◆ Speed() [1/15]

template<typename NumericType = double>
PhQ::Speed< NumericType >::Speed ( )
default

Default constructor. Constructs a speed with an uninitialized value.

◆ Speed() [2/15]

template<typename NumericType = double>
PhQ::Speed< NumericType >::Speed ( const NumericType  value,
const Unit::Speed< NumericType >  unit 
)
inline

Constructor. Constructs a speed with a given value expressed in a given speed unit.

Definition at line 106 of file Speed.hpp.

◆ Speed() [3/15]

template<typename NumericType = double>
constexpr PhQ::Speed< NumericType >::Speed ( const Length< NumericType > &  length,
const Time< NumericType > &  time 
)
inlineconstexpr

Constructor. Constructs a speed from a given length and time duration using the definition of speed.

Definition at line 111 of file Speed.hpp.

◆ Speed() [4/15]

template<typename NumericType = double>
constexpr PhQ::Speed< NumericType >::Speed ( const Length< NumericType > &  length,
const Frequency< NumericType > &  frequency 
)
inlineconstexpr

Constructor. Constructs a speed from a given length and frequency using the definition of speed.

Definition at line 116 of file Speed.hpp.

◆ Speed() [5/15]

template<typename NumericType = double>
constexpr PhQ::Speed< NumericType >::Speed ( const ScalarAcceleration< NumericType > &  scalar_acceleration,
const Time< NumericType > &  time 
)
constexpr

Constructor. Constructs a speed from a given scalar acceleration and time duration using the definition of acceleration.

◆ Speed() [6/15]

template<typename NumericType = double>
constexpr PhQ::Speed< NumericType >::Speed ( const ScalarAcceleration< NumericType > &  scalar_acceleration,
const Frequency< NumericType > &  frequency 
)
constexpr

Constructor. Constructs a speed from a given scalar acceleration and frequency using the definition of acceleration.

◆ Speed() [7/15]

template<typename NumericType = double>
PhQ::Speed< NumericType >::Speed ( const DynamicPressure< NumericType > &  dynamic_pressure,
const MassDensity< NumericType > &  mass_density 
)

Constructor. Constructs a speed from a given dynamic pressure and mass density using the definition of dynamic pressure.

◆ Speed() [8/15]

template<typename NumericType = double>
PhQ::Speed< NumericType >::Speed ( const DynamicKinematicPressure< NumericType > &  dynamic_kinematic_pressure)
explicit

Constructor. Constructs a speed from a given dynamic kinematic pressure using the definition of dynamic kinematic pressure.

◆ Speed() [9/15]

template<typename NumericType = double>
constexpr PhQ::Speed< NumericType >::Speed ( const ReynoldsNumber< NumericType > &  reynolds_number,
const DynamicViscosity< NumericType > &  dynamic_viscosity,
const MassDensity< NumericType > &  mass_density,
const Length< NumericType > &  length 
)
constexpr

Constructor. Constructs a speed from a given Reynolds number, dynamic viscosity, mass density, and length using the definition of the Reynolds number.

◆ Speed() [10/15]

template<typename NumericType = double>
constexpr PhQ::Speed< NumericType >::Speed ( const ReynoldsNumber< NumericType > &  reynolds_number,
const KinematicViscosity< NumericType > &  kinematic_viscosity,
const Length< NumericType > &  length 
)
constexpr

Constructor. Constructs a speed from a given Reynolds number, kinematic viscosity, and length using the definition of the Reynolds number.

◆ Speed() [11/15]

template<typename NumericType = double>
constexpr PhQ::Speed< NumericType >::Speed ( const SoundSpeed< NumericType > &  sound_speed,
const MachNumber< NumericType > &  mach_number 
)
constexpr

Constructor. Constructs a speed from a given sound speed and Mach number using the definition of the Mach number.

◆ ~Speed()

template<typename NumericType = double>
PhQ::Speed< NumericType >::~Speed ( )
defaultnoexcept

Destructor. Destroys this speed.

◆ Speed() [12/15]

template<typename NumericType = double>
constexpr PhQ::Speed< NumericType >::Speed ( const Speed< NumericType > &  other)
constexprdefault

Copy constructor. Constructs a speed by copying another one.

◆ Speed() [13/15]

template<typename NumericType = double>
template<typename OtherNumericType >
constexpr PhQ::Speed< NumericType >::Speed ( const Speed< OtherNumericType > &  other)
inlineexplicitconstexpr

Copy constructor. Constructs a speed by copying another one.

Definition at line 163 of file Speed.hpp.

◆ Speed() [14/15]

template<typename NumericType = double>
constexpr PhQ::Speed< NumericType >::Speed ( Speed< NumericType > &&  other)
constexprdefaultnoexcept

Move constructor. Constructs a speed by moving another one.

◆ Speed() [15/15]

template<typename NumericType = double>
constexpr PhQ::Speed< NumericType >::Speed ( const NumericType  value)
inlineexplicitconstexprprivate

Constructor. Constructs a speed with a given value expressed in the standard speed unit.

Definition at line 270 of file Speed.hpp.

Member Function Documentation

◆ Create()

template<typename NumericType = double>
template<Unit::Speed Unit>
static constexpr Speed<NumericType> PhQ::Speed< NumericType >::Create ( const NumericType  value)
inlinestaticconstexpr

Statically creates a speed with a given value expressed in a given speed unit.

Definition at line 189 of file Speed.hpp.

References PhQ::DimensionalScalar< Unit::Speed, double >::value.

◆ Dimensions()

static constexpr const PhQ::Dimensions& PhQ::DimensionalScalar< Unit::Speed , double >::Dimensions ( )
inlinestaticconstexprinherited

Physical dimension set of this physical quantity.

Definition at line 54 of file DimensionalScalar.hpp.

◆ JSON() [1/2]

std::string PhQ::DimensionalScalar< Unit::Speed , double >::JSON ( ) const
inlineinherited

Serializes this physical quantity as a JSON message. This physical quantity's value is expressed in its standard unit of measure.

Definition at line 107 of file DimensionalScalar.hpp.

◆ JSON() [2/2]

std::string PhQ::DimensionalScalar< Unit::Speed , double >::JSON ( const Unit::Speed  unit) const
inlineinherited

Serializes this physical quantity as a JSON message. This physical quantity's value is expressed in the given unit of measure.

Definition at line 117 of file DimensionalScalar.hpp.

◆ MutableValue()

constexpr double & PhQ::DimensionalScalar< Unit::Speed , double >::MutableValue ( )
inlineconstexprnoexceptinherited

Returns the value of this physical quantity expressed in its standard unit of measure as a mutable value.

Definition at line 83 of file DimensionalScalar.hpp.

◆ operator*() [1/6]

template<typename NumericType = double>
constexpr Velocity<NumericType> PhQ::Speed< NumericType >::operator* ( const Direction< NumericType > &  direction) const
constexpr

◆ operator*() [2/6]

template<typename NumericType = double>
constexpr ScalarAcceleration<NumericType> PhQ::Speed< NumericType >::operator* ( const Frequency< NumericType > &  frequency) const
constexpr

◆ operator*() [3/6]

template<typename NumericType = double>
constexpr Speed<NumericType> PhQ::Speed< NumericType >::operator* ( const NumericType  number) const
inlineconstexpr

Definition at line 205 of file Speed.hpp.

References PhQ::DimensionalScalar< Unit::Speed, double >::value.

◆ operator*() [4/6]

template<typename NumericType = double>
constexpr PlanarVelocity<NumericType> PhQ::Speed< NumericType >::operator* ( const PlanarDirection< NumericType > &  direction) const
constexpr

◆ operator*() [5/6]

template<typename NumericType = double>
constexpr Length<NumericType> PhQ::Speed< NumericType >::operator* ( const Time< NumericType > &  time) const
inlineconstexpr

Definition at line 209 of file Speed.hpp.

◆ operator*() [6/6]

template<typename NumericType = double>
constexpr Power<NumericType> PhQ::Speed< NumericType >::operator* ( const TransportEnergyConsumption< NumericType > &  transport_energy_consumption) const
constexpr

◆ operator*=()

template<typename NumericType = double>
constexpr void PhQ::Speed< NumericType >::operator*= ( const NumericType  number)
inlineconstexprnoexcept

Definition at line 259 of file Speed.hpp.

References PhQ::DimensionalScalar< Unit::Speed, double >::value.

◆ operator+() [1/2]

template<typename NumericType = double>
constexpr Speed<NumericType> PhQ::Speed< NumericType >::operator+ ( const SoundSpeed< NumericType > &  sound_speed) const
constexpr

◆ operator+() [2/2]

template<typename NumericType = double>
constexpr Speed<NumericType> PhQ::Speed< NumericType >::operator+ ( const Speed< NumericType > &  speed) const
inlineconstexpr

◆ operator+=() [1/2]

template<typename NumericType = double>
constexpr void PhQ::Speed< NumericType >::operator+= ( const SoundSpeed< NumericType > &  speed)
constexprnoexcept

◆ operator+=() [2/2]

template<typename NumericType = double>
constexpr void PhQ::Speed< NumericType >::operator+= ( const Speed< NumericType > &  speed)
inlineconstexprnoexcept

Definition at line 247 of file Speed.hpp.

References PhQ::DimensionalScalar< Unit::Speed, double >::value.

◆ operator-() [1/2]

template<typename NumericType = double>
constexpr Speed<NumericType> PhQ::Speed< NumericType >::operator- ( const SoundSpeed< NumericType > &  sound_speed) const
constexpr

◆ operator-() [2/2]

template<typename NumericType = double>
constexpr Speed<NumericType> PhQ::Speed< NumericType >::operator- ( const Speed< NumericType > &  speed) const
inlineconstexpr

◆ operator-=() [1/2]

template<typename NumericType = double>
constexpr void PhQ::Speed< NumericType >::operator-= ( const SoundSpeed< NumericType > &  speed)
constexprnoexcept

◆ operator-=() [2/2]

template<typename NumericType = double>
constexpr void PhQ::Speed< NumericType >::operator-= ( const Speed< NumericType > &  speed)
inlineconstexprnoexcept

Definition at line 253 of file Speed.hpp.

References PhQ::DimensionalScalar< Unit::Speed, double >::value.

◆ operator/() [1/7]

template<typename NumericType = double>
constexpr Length<NumericType> PhQ::Speed< NumericType >::operator/ ( const Frequency< NumericType > &  frequency) const
inlineconstexpr

Definition at line 228 of file Speed.hpp.

◆ operator/() [2/7]

template<typename NumericType = double>
constexpr Frequency<NumericType> PhQ::Speed< NumericType >::operator/ ( const Length< NumericType > &  length) const
inlineconstexpr

Definition at line 232 of file Speed.hpp.

◆ operator/() [3/7]

template<typename NumericType = double>
constexpr Speed<NumericType> PhQ::Speed< NumericType >::operator/ ( const NumericType  number) const
inlineconstexpr

Definition at line 224 of file Speed.hpp.

References PhQ::DimensionalScalar< Unit::Speed, double >::value.

◆ operator/() [4/7]

template<typename NumericType = double>
constexpr Time<NumericType> PhQ::Speed< NumericType >::operator/ ( const ScalarAcceleration< NumericType > &  scalar_acceleration) const
constexpr

◆ operator/() [5/7]

template<typename NumericType = double>
constexpr MachNumber<NumericType> PhQ::Speed< NumericType >::operator/ ( const SoundSpeed< NumericType > &  sound_speed) const
constexpr

◆ operator/() [6/7]

template<typename NumericType = double>
constexpr NumericType PhQ::Speed< NumericType >::operator/ ( const Speed< NumericType > &  speed) const
inlineconstexprnoexcept

Definition at line 243 of file Speed.hpp.

References PhQ::DimensionalScalar< Unit::Speed, double >::value.

◆ operator/() [7/7]

template<typename NumericType = double>
constexpr ScalarAcceleration<NumericType> PhQ::Speed< NumericType >::operator/ ( const Time< NumericType > &  time) const
constexpr

◆ operator/=()

template<typename NumericType = double>
constexpr void PhQ::Speed< NumericType >::operator/= ( const NumericType  number)
inlineconstexprnoexcept

Definition at line 263 of file Speed.hpp.

References PhQ::DimensionalScalar< Unit::Speed, double >::value.

◆ operator=() [1/3]

template<typename NumericType = double>
constexpr Speed<NumericType>& PhQ::Speed< NumericType >::operator= ( const Speed< NumericType > &  other)
constexprdefault

Copy assignment operator. Assigns this speed by copying another one.

◆ operator=() [2/3]

template<typename NumericType = double>
template<typename OtherNumericType >
constexpr Speed<NumericType>& PhQ::Speed< NumericType >::operator= ( const Speed< OtherNumericType > &  other)
inlineconstexpr

Copy assignment operator. Assigns this speed by copying another one.

Definition at line 174 of file Speed.hpp.

References PhQ::DimensionalScalar< UnitType, NumericType >::Value(), and PhQ::DimensionalScalar< Unit::Speed, double >::value.

◆ operator=() [3/3]

template<typename NumericType = double>
constexpr Speed<NumericType>& PhQ::Speed< NumericType >::operator= ( Speed< NumericType > &&  other)
constexprdefaultnoexcept

Move assignment operator. Assigns this speed by moving another one.

◆ Print() [1/2]

std::string PhQ::DimensionalScalar< Unit::Speed , double >::Print ( ) const
inlineinherited

Prints this physical quantity as a string. This physical quantity's value is expressed in its standard unit of measure.

Definition at line 95 of file DimensionalScalar.hpp.

◆ Print() [2/2]

std::string PhQ::DimensionalScalar< Unit::Speed , double >::Print ( const Unit::Speed  unit) const
inlineinherited

Prints this physical quantity as a string. This physical quantity's value is expressed in the given unit of measure.

Definition at line 101 of file DimensionalScalar.hpp.

◆ SetValue()

constexpr void PhQ::DimensionalScalar< Unit::Speed , double >::SetValue ( const double  value)
inlineconstexprnoexceptinherited

Sets the value of this physical quantity expressed in its standard unit of measure to the given value.

Definition at line 89 of file DimensionalScalar.hpp.

◆ StaticValue()

constexpr double PhQ::DimensionalScalar< Unit::Speed , double >::StaticValue ( ) const
inlineconstexprinherited

Value of this physical quantity expressed in a given unit of measure. This method can be evaluated statically at compile-time.

Definition at line 77 of file DimensionalScalar.hpp.

◆ Unit()

static constexpr Unit::Speed PhQ::DimensionalScalar< Unit::Speed , double >::Unit ( )
inlinestaticconstexprinherited

Standard unit of measure for this physical quantity. This physical quantity's value is stored internally in this unit of measure.

Definition at line 60 of file DimensionalScalar.hpp.

◆ Value() [1/2]

constexpr double PhQ::DimensionalScalar< Unit::Speed , double >::Value ( ) const
inlineconstexprnoexceptinherited

Value of this physical quantity expressed in its standard unit of measure.

Definition at line 65 of file DimensionalScalar.hpp.

◆ Value() [2/2]

double PhQ::DimensionalScalar< Unit::Speed , double >::Value ( const Unit::Speed  unit) const
inlineinherited

Value of this physical quantity expressed in a given unit of measure.

Definition at line 70 of file DimensionalScalar.hpp.

◆ XML() [1/2]

std::string PhQ::DimensionalScalar< Unit::Speed , double >::XML ( ) const
inlineinherited

Serializes this physical quantity as an XML message. This physical quantity's value is expressed in its standard unit of measure.

Definition at line 127 of file DimensionalScalar.hpp.

◆ XML() [2/2]

std::string PhQ::DimensionalScalar< Unit::Speed , double >::XML ( const Unit::Speed  unit) const
inlineinherited

Serializes this physical quantity as an XML message. This physical quantity's value is expressed in the given unit of measure.

Definition at line 137 of file DimensionalScalar.hpp.

◆ YAML() [1/2]

std::string PhQ::DimensionalScalar< Unit::Speed , double >::YAML ( ) const
inlineinherited

Serializes this physical quantity as a YAML message. This physical quantity's value is expressed in its standard unit of measure.

Definition at line 147 of file DimensionalScalar.hpp.

◆ YAML() [2/2]

std::string PhQ::DimensionalScalar< Unit::Speed , double >::YAML ( const Unit::Speed  unit) const
inlineinherited

Serializes this physical quantity as a YAML message. This physical quantity's value is expressed in the given unit of measure.

Definition at line 157 of file DimensionalScalar.hpp.

◆ Zero()

template<typename NumericType = double>
static constexpr Speed<NumericType> PhQ::Speed< NumericType >::Zero ( )
inlinestaticconstexpr

Statically creates a speed of zero.

Definition at line 183 of file Speed.hpp.

Friends And Related Function Documentation

◆ PlanarVelocity

template<typename NumericType = double>
template<typename OtherNumericType >
friend class PlanarVelocity
friend

Definition at line 277 of file Speed.hpp.

◆ SoundSpeed

template<typename NumericType = double>
template<typename OtherNumericType >
friend class SoundSpeed
friend

Definition at line 274 of file Speed.hpp.

◆ Velocity

template<typename NumericType = double>
template<typename OtherNumericType >
friend class Velocity
friend

Definition at line 280 of file Speed.hpp.

Member Data Documentation

◆ value

double PhQ::DimensionalScalar< Unit::Speed , double >::value
protectedinherited

Value of this physical quantity expressed in its standard unit of measure.

Definition at line 221 of file DimensionalScalar.hpp.


The documentation for this class was generated from the following files: