28#ifndef THERMALUNITCONVERTER_H
29#define THERMALUNITCONVERTER_H
53template <
typename T,
typename DESCRIPTOR,
typename ThermalLattice>
66 T physThermalConductivity,
67 T physSpecificHeatCapacity,
68 T physThermalExpansionCoefficient,
69 T charPhysLowTemperature,
70 T charPhysHighTemperature,
71 T charPhysPressure = 0 )
73 physDeltaX, physDeltaT, charPhysLength, charPhysVelocity,
74 physViscosity, physDensity, charPhysPressure),
88 clout(std::cout,
"ThermalUnitConv")
228 void print()
const override;
class for marking output with some text
Conversion between physical and lattice units, as well as discretization specialized for thermal appl...
constexpr T getPhysThermalDiffusivity(T latticeThermalDiffusivity) const
conversion from lattice to physical thermal diffusivity
constexpr T getPhysHeatFlux(T latticeHeatFlux) const
conversion from lattice to physical heat flux
constexpr T getConversionFactorSpecificHeatCapacity() const
access (read-only) to private member variable
constexpr T getPhysTemperature(T latticeTemperature) const
conversion from lattice to physical temperature
constexpr T getThermalConductivity() const
return thermal conductivity in physical units
const T _conversionSpecificHeatCapacity
constexpr T getPrandtlNumber() const
constexpr T getPhysThermalExpansionCoefficient() const
return thermal expansion coefficient in physical units
constexpr T getPhysThermalDiffusivity() const
return thermal diffusivity in physical units
const T _latticeThermalRelaxationTime
const T _conversionTemperature
const T _physSpecificHeatCapacity
constexpr ThermalUnitConverter(T physDeltaX, T physDeltaT, T charPhysLength, T charPhysVelocity, T physViscosity, T physDensity, T physThermalConductivity, T physSpecificHeatCapacity, T physThermalExpansionCoefficient, T charPhysLowTemperature, T charPhysHighTemperature, T charPhysPressure=0)
Documentation of constructor: TODO: Extend constructur documentation.
constexpr T getConversionFactorTemperature() const
access (read-only) to private member variable
constexpr T getPhysSpecificHeatCapacity() const
return specific heat capacity in physical units
constexpr T getPhysSpecificHeatCapacity(T latticeSpecificHeatCapacity) const
conversion from lattice to physical specific heat capacity
const T _physThermalExpansionCoefficient
const T _charPhysHighTemperature
constexpr T getLatticeThermalRelaxationTime() const
return thermal relaxation time in lattice units
constexpr T getCharPhysTemperatureDifference() const
return characteristic temperature difference in physical units
constexpr T getRayleighNumber() const
constexpr T getLatticeThermalConductivity(T physThermalConductivity) const
conversion from physical to lattice thermal conductivity
constexpr T getLatticeTemperature(T physTemperature) const
conversion from physical to lattice temperature
constexpr T getConversionFactorThermalConductivity() const
access (read-only) to private member variable
const T _charPhysTemperatureDifference
constexpr T getCharPhysHighTemperature() const
return characteristic high temperature in physical units
constexpr T getCharPhysLowTemperature() const
return characteristic low temperature in physical units
constexpr T getLatticeHeatFlux(T physHeatFlux) const
conversion from physical to lattice heat flux
constexpr T getConversionFactorThermalDiffusivity() const
access (read-only) to private member variable
const T _charPhysLowTemperature
constexpr T getConversionFactorHeatFlux() const
access (read-only) to private member variable
constexpr T getLatticeSpecificHeatCapacity(T physSpecificHeatCapacity) const
conversion from physical to lattice specific heat capacity
const T _physThermalConductivity
const T _conversionThermalConductivity
const T _physThermalDiffusivity
void print() const override
nice terminal output for conversion factors, characteristical and physical data
constexpr T getLatticeThermalDiffusivity(T physThermalDiffusivity) const
conversion from physical to lattice thermal diffusivity
constexpr T getPhysThermalConductivity(T latticeThermalConductivity) const
conversion from lattice to physical thermal conductivity
const T _conversionThermalDiffusivity
constexpr T getLatticeThermalRelaxationFrequency() const
return thermal relaxation frequency in lattice units
const T _conversionHeatFlux
Conversion between physical and lattice units, as well as discretization.
const T _conversionViscosity
const T _conversionVelocity
cpu::simd::Pack< T > pow(cpu::simd::Pack< T > base, cpu::simd::Pack< T > exp)
Top level namespace for all of OpenLB.
Unit conversion handling – header file.
Set of functions commonly used in LB computations – header file.
Input/Output in XML format – header file.