OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice > Class Template Reference

Conversion between physical and lattice units, as well as discretization specialized for thermal applications with boussinesq approximation. More...

#include <thermalUnitConverter.h>

+ Inheritance diagram for olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >:
+ Collaboration diagram for olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >:

Public Member Functions

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 getLatticeThermalRelaxationTime () const
 return thermal relaxation time in lattice units
 
constexpr T getLatticeThermalRelaxationFrequency () const
 return thermal relaxation frequency in lattice units
 
constexpr T getCharPhysLowTemperature () const
 return characteristic low temperature in physical units
 
constexpr T getCharPhysHighTemperature () const
 return characteristic high temperature in physical units
 
constexpr T getCharPhysTemperatureDifference () const
 return characteristic temperature difference in physical units
 
constexpr T getPhysThermalExpansionCoefficient () const
 return thermal expansion coefficient in physical units
 
constexpr T getPhysThermalDiffusivity () const
 return thermal diffusivity in physical units
 
constexpr T getPhysSpecificHeatCapacity () const
 return specific heat capacity in physical units
 
constexpr T getThermalConductivity () const
 return thermal conductivity in physical units
 
constexpr T getPhysTemperature (T latticeTemperature) const
 conversion from lattice to physical temperature
 
constexpr T getLatticeTemperature (T physTemperature) const
 conversion from physical to lattice temperature
 
constexpr T getConversionFactorTemperature () const
 access (read-only) to private member variable
 
constexpr T getPhysThermalDiffusivity (T latticeThermalDiffusivity) const
 conversion from lattice to physical thermal diffusivity
 
constexpr T getLatticeThermalDiffusivity (T physThermalDiffusivity) const
 conversion from physical to lattice thermal diffusivity
 
constexpr T getConversionFactorThermalDiffusivity () const
 access (read-only) to private member variable
 
constexpr T getPhysSpecificHeatCapacity (T latticeSpecificHeatCapacity) const
 conversion from lattice to physical specific heat capacity
 
constexpr T getLatticeSpecificHeatCapacity (T physSpecificHeatCapacity) const
 conversion from physical to lattice specific heat capacity
 
constexpr T getConversionFactorSpecificHeatCapacity () const
 access (read-only) to private member variable
 
constexpr T getPhysThermalConductivity (T latticeThermalConductivity) const
 conversion from lattice to physical thermal conductivity
 
constexpr T getLatticeThermalConductivity (T physThermalConductivity) const
 conversion from physical to lattice thermal conductivity
 
constexpr T getConversionFactorThermalConductivity () const
 access (read-only) to private member variable
 
constexpr T getPhysHeatFlux (T latticeHeatFlux) const
 conversion from lattice to physical heat flux
 
constexpr T getLatticeHeatFlux (T physHeatFlux) const
 conversion from physical to lattice heat flux
 
constexpr T getConversionFactorHeatFlux () const
 access (read-only) to private member variable
 
constexpr T getPrandtlNumber () const
 
constexpr T getRayleighNumber () const
 
void print () const override
 nice terminal output for conversion factors, characteristical and physical data
 
- Public Member Functions inherited from olb::UnitConverter< T, DESCRIPTOR >
constexpr UnitConverter (T physDeltaX, T physDeltaT, T charPhysLength, T charPhysVelocity, T physViscosity, T physDensity, T charPhysPressure=0)
 Documentation of constructor:
 
virtual ~UnitConverter ()=default
 
constexpr int getResolution () const
 return resolution
 
constexpr T getLatticeRelaxationTime () const
 return relaxation time in lattice units
 
constexpr T getLatticeRelaxationFrequency () const
 return relaxation frequency in lattice units
 
template<typename DESCRIPTOR_ >
constexpr T getLatticeRelaxationFrequencyFromDiffusivity (const T physDiffusivity) const
 return relaxation frequency in lattice units computed from given physical diffusivity in m^2 / s
 
constexpr T getCharPhysLength () const
 return characteristic length in physical units
 
constexpr T getCharPhysVelocity () const
 return characteristic velocity in physical units
 
constexpr T getCharLatticeVelocity () const
 return characteristic velocity in lattice units
 
constexpr T getPhysViscosity () const
 return viscosity in physical units
 
constexpr T getPhysDensity () const
 return density in physical units
 
constexpr T getCharPhysPressure () const
 return characteristic pressure in physical units
 
constexpr T getReynoldsNumber () const
 return Reynolds number
 
constexpr T getMachNumber () const
 return Mach number
 
constexpr T getKnudsenNumber () const
 return Knudsen number
 
constexpr T getPhysLength (int latticeLength) const
 conversion from lattice to physical length
 
constexpr int getLatticeLength (T physLength) const
 conversion from physical to lattice length, returns number of voxels for given physical length
 
constexpr T getConversionFactorLength () const
 access (read-only) to private member variable
 
constexpr T getPhysDeltaX () const
 returns grid spacing (voxel length) in m
 
constexpr T getPhysTime (size_t latticeTime) const
 conversion from lattice to physical time
 
constexpr size_t getLatticeTime (T physTime) const
 conversion from physical to lattice time
 
constexpr T getConversionFactorTime () const
 access (read-only) to private member variable
 
constexpr T getPhysDeltaT () const
 returns time spacing (timestep length) in s
 
constexpr T getPhysVelocity (T latticeVelocity) const
 conversion from lattice to physical velocity
 
constexpr T getLatticeVelocity (T physVelocity) const
 conversion from physical to lattice velocity
 
constexpr T getConversionFactorVelocity () const
 access (read-only) to private member variable
 
constexpr T getPhysDensity (T latticeDensity) const
 conversion from lattice to physical density
 
constexpr T getLatticeDensity (T physDensity) const
 conversion from physical to lattice density
 
constexpr T getLatticeDensityFromPhysPressure (T physPressure) const
 
constexpr T getConversionFactorDensity () const
 access (read-only) to private member variable
 
constexpr T getPhysMass (T latticeMass) const
 conversion from lattice to physical mass
 
constexpr T getLatticeMass (T physMass) const
 conversion from physical to lattice mass
 
constexpr T getConversionFactorMass () const
 access (read-only) to private member variable
 
constexpr T getPhysViscosity (T latticeViscosity) const
 conversion from lattice to physical viscosity
 
constexpr T getLatticeViscosity () const
 conversion from physical to lattice viscosity
 
constexpr T getConversionFactorViscosity () const
 access (read-only) to private member variable
 
constexpr T getPhysForce (T latticeForce) const
 conversion from lattice to physical force
 
constexpr T getLatticeForce (T physForce) const
 conversion from physical to lattice force
 
constexpr T getConversionFactorForce () const
 access (read-only) to private member variable
 
constexpr T getPhysTorque (T latticeTorque) const
 conversion from lattice to physical torque
 
constexpr T getLatticeTorque (T physTorque) const
 conversion from physical to lattice torque
 
constexpr T getConversionFactorTorque () const
 access (read-only) to private member variable
 
constexpr T getPhysPressure (T latticePressure) const
 conversion from lattice to physical pressure
 
constexpr T getLatticePressure (T physPressure) const
 conversion from physical to lattice pressure
 
constexpr T getConversionFactorPressure () const
 access (read-only) to private member variable
 
void print (std::ostream &fout) const
 
void write (std::string const &fileName="unitConverter") const
 
- Public Member Functions inherited from olb::UnitConverterBase
virtual ~UnitConverterBase ()=default
 

Protected Attributes

const T _conversionTemperature
 
const T _conversionThermalDiffusivity
 
const T _conversionSpecificHeatCapacity
 
const T _conversionThermalConductivity
 
const T _conversionHeatFlux
 
const T _charPhysLowTemperature
 
const T _charPhysHighTemperature
 
const T _charPhysTemperatureDifference
 
const T _physThermalExpansionCoefficient
 
const T _physThermalDiffusivity
 
const T _physSpecificHeatCapacity
 
const T _physThermalConductivity
 
const T _latticeThermalRelaxationTime
 
- Protected Attributes inherited from olb::UnitConverter< T, DESCRIPTOR >
const T _conversionLength
 
const T _conversionTime
 
const T _conversionVelocity
 
const T _conversionDensity
 
const T _conversionMass
 
const T _conversionViscosity
 
const T _conversionForce
 
const T _conversionTorque
 
const T _conversionPressure
 
const T _charPhysLength
 
const T _charPhysVelocity
 
const T _physViscosity
 
const T _physDensity
 
const T _charPhysPressure
 
const size_t _resolution
 
const T _latticeRelaxationTime
 
const T _charLatticeVelocity
 

Detailed Description

template<typename T, typename DESCRIPTOR, typename ThermalLattice>
class olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >

Conversion between physical and lattice units, as well as discretization specialized for thermal applications with boussinesq approximation.

Be aware of the nomenclature: We distingish between physical (dimensioned) and lattice (dimensionless) values. A specific conversion factor maps the two different scopes, e.g. physLength = conversionLength * latticeLength

For pressure and temperature we first shift the physical values by a characteristic value to asure a lattice pressure and between 0 and 1, e.g. physPressure - charPhysPressure = conversionPressure * latticePressure. For the temperature we set lattice values between 0.5 and 1.5 by __latticeTemperature = (physTemperature - charPhysLowTemperature) / conversionTemperature + 0.5 with conversionTemperature = charPhysHighTemperature - charPhysLowTemperature = charPhysTemperatureDifference

TODO: Extend documentation for ThermalUnitConverter

Definition at line 54 of file thermalUnitConverter.h.

Constructor & Destructor Documentation

◆ ThermalUnitConverter()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::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 )
inlineconstexpr

Documentation of constructor: TODO: Extend constructur documentation.

Definition at line 59 of file thermalUnitConverter.h.

72 : UnitConverter<T, DESCRIPTOR>(
73 physDeltaX, physDeltaT, charPhysLength, charPhysVelocity,
74 physViscosity, physDensity, charPhysPressure),
75 _conversionTemperature(charPhysHighTemperature - charPhysLowTemperature),
80 _charPhysLowTemperature(charPhysLowTemperature),
81 _charPhysHighTemperature(charPhysHighTemperature),
82 _charPhysTemperatureDifference(charPhysHighTemperature - charPhysLowTemperature),
83 _physThermalExpansionCoefficient(physThermalExpansionCoefficient),
84 _physThermalDiffusivity(physThermalConductivity / (physDensity * physSpecificHeatCapacity)),
85 _physSpecificHeatCapacity(physSpecificHeatCapacity),
86 _physThermalConductivity(physThermalConductivity),
87 _latticeThermalRelaxationTime( (_physThermalDiffusivity / _conversionThermalDiffusivity * descriptors::invCs2<T,ThermalLattice>()) + 0.5 ),
88 clout(std::cout,"ThermalUnitConv")
89 {
90 };
cpu::simd::Pack< T > pow(cpu::simd::Pack< T > base, cpu::simd::Pack< T > exp)
Definition pack.h:112

Member Function Documentation

◆ getCharPhysHighTemperature()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getCharPhysHighTemperature ( ) const
inlineconstexpr

return characteristic high temperature in physical units

Definition at line 109 of file thermalUnitConverter.h.

110 {
112 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_charPhysHighTemperature.

◆ getCharPhysLowTemperature()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getCharPhysLowTemperature ( ) const
inlineconstexpr

return characteristic low temperature in physical units

Definition at line 104 of file thermalUnitConverter.h.

105 {
107 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_charPhysLowTemperature.

◆ getCharPhysTemperatureDifference()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getCharPhysTemperatureDifference ( ) const
inlineconstexpr

return characteristic temperature difference in physical units

Definition at line 114 of file thermalUnitConverter.h.

115 {
117 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_charPhysTemperatureDifference.

◆ getConversionFactorHeatFlux()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getConversionFactorHeatFlux ( ) const
inlineconstexpr

access (read-only) to private member variable

Definition at line 215 of file thermalUnitConverter.h.

216 {
217 return _conversionHeatFlux;
218 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionHeatFlux.

◆ getConversionFactorSpecificHeatCapacity()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getConversionFactorSpecificHeatCapacity ( ) const
inlineconstexpr

access (read-only) to private member variable

Definition at line 183 of file thermalUnitConverter.h.

184 {
186 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionSpecificHeatCapacity.

◆ getConversionFactorTemperature()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getConversionFactorTemperature ( ) const
inlineconstexpr

access (read-only) to private member variable

Definition at line 150 of file thermalUnitConverter.h.

151 {
153 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionTemperature.

◆ getConversionFactorThermalConductivity()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getConversionFactorThermalConductivity ( ) const
inlineconstexpr

access (read-only) to private member variable

Definition at line 199 of file thermalUnitConverter.h.

200 {
202 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionThermalConductivity.

◆ getConversionFactorThermalDiffusivity()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getConversionFactorThermalDiffusivity ( ) const
inlineconstexpr

access (read-only) to private member variable

Definition at line 166 of file thermalUnitConverter.h.

167 {
169 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionThermalDiffusivity.

◆ getLatticeHeatFlux()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getLatticeHeatFlux ( T physHeatFlux) const
inlineconstexpr

conversion from physical to lattice heat flux

Definition at line 210 of file thermalUnitConverter.h.

211 {
212 return physHeatFlux / _conversionHeatFlux;
213 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionHeatFlux.

◆ getLatticeSpecificHeatCapacity()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getLatticeSpecificHeatCapacity ( T physSpecificHeatCapacity) const
inlineconstexpr

conversion from physical to lattice specific heat capacity

Definition at line 178 of file thermalUnitConverter.h.

179 {
180 return physSpecificHeatCapacity / _conversionSpecificHeatCapacity;
181 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionSpecificHeatCapacity.

◆ getLatticeTemperature()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getLatticeTemperature ( T physTemperature) const
inlineconstexpr

◆ getLatticeThermalConductivity()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getLatticeThermalConductivity ( T physThermalConductivity) const
inlineconstexpr

conversion from physical to lattice thermal conductivity

Definition at line 194 of file thermalUnitConverter.h.

195 {
196 return physThermalConductivity / _conversionThermalConductivity;
197 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionThermalConductivity.

◆ getLatticeThermalDiffusivity()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getLatticeThermalDiffusivity ( T physThermalDiffusivity) const
inlineconstexpr

conversion from physical to lattice thermal diffusivity

Definition at line 161 of file thermalUnitConverter.h.

162 {
163 return physThermalDiffusivity / _conversionThermalDiffusivity;
164 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionThermalDiffusivity.

◆ getLatticeThermalRelaxationFrequency()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getLatticeThermalRelaxationFrequency ( ) const
inlineconstexpr

return thermal relaxation frequency in lattice units

Definition at line 98 of file thermalUnitConverter.h.

99 {
101 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_latticeThermalRelaxationTime.

◆ getLatticeThermalRelaxationTime()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getLatticeThermalRelaxationTime ( ) const
inlineconstexpr

return thermal relaxation time in lattice units

Definition at line 93 of file thermalUnitConverter.h.

94 {
96 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_latticeThermalRelaxationTime.

◆ getPhysHeatFlux()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getPhysHeatFlux ( T latticeHeatFlux) const
inlineconstexpr

conversion from lattice to physical heat flux

Definition at line 205 of file thermalUnitConverter.h.

206 {
207 return _conversionHeatFlux * latticeHeatFlux;
208 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionHeatFlux.

◆ getPhysSpecificHeatCapacity() [1/2]

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getPhysSpecificHeatCapacity ( ) const
inlineconstexpr

return specific heat capacity in physical units

Definition at line 129 of file thermalUnitConverter.h.

130 {
132 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_physSpecificHeatCapacity.

◆ getPhysSpecificHeatCapacity() [2/2]

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getPhysSpecificHeatCapacity ( T latticeSpecificHeatCapacity) const
inlineconstexpr

conversion from lattice to physical specific heat capacity

Definition at line 173 of file thermalUnitConverter.h.

174 {
175 return _conversionSpecificHeatCapacity * latticeSpecificHeatCapacity;
176 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionSpecificHeatCapacity.

◆ getPhysTemperature()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getPhysTemperature ( T latticeTemperature) const
inlineconstexpr

◆ getPhysThermalConductivity()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getPhysThermalConductivity ( T latticeThermalConductivity) const
inlineconstexpr

conversion from lattice to physical thermal conductivity

Definition at line 189 of file thermalUnitConverter.h.

190 {
191 return _conversionThermalConductivity * latticeThermalConductivity;
192 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionThermalConductivity.

◆ getPhysThermalDiffusivity() [1/2]

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getPhysThermalDiffusivity ( ) const
inlineconstexpr

return thermal diffusivity in physical units

Definition at line 124 of file thermalUnitConverter.h.

125 {
127 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_physThermalDiffusivity.

◆ getPhysThermalDiffusivity() [2/2]

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getPhysThermalDiffusivity ( T latticeThermalDiffusivity) const
inlineconstexpr

conversion from lattice to physical thermal diffusivity

Definition at line 156 of file thermalUnitConverter.h.

157 {
158 return _conversionThermalDiffusivity * latticeThermalDiffusivity;
159 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionThermalDiffusivity.

◆ getPhysThermalExpansionCoefficient()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getPhysThermalExpansionCoefficient ( ) const
inlineconstexpr

return thermal expansion coefficient in physical units

Definition at line 119 of file thermalUnitConverter.h.

120 {
122 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_physThermalExpansionCoefficient.

◆ getPrandtlNumber()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getPrandtlNumber ( ) const
inlineconstexpr

◆ getRayleighNumber()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getRayleighNumber ( ) const
inlineconstexpr

◆ getThermalConductivity()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
constexpr T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::getThermalConductivity ( ) const
inlineconstexpr

return thermal conductivity in physical units

Definition at line 134 of file thermalUnitConverter.h.

135 {
137 };

References olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_physThermalConductivity.

◆ print()

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
void olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::print ( ) const
overridevirtual

nice terminal output for conversion factors, characteristical and physical data

Reimplemented from olb::UnitConverter< T, DESCRIPTOR >.

Definition at line 38 of file thermalUnitConverter.hh.

39{
40 clout << "----------------- UnitConverter information -----------------" << std::endl;
41 clout << "-- Parameters:" << std::endl;
42 clout << "Resolution: N= " << this->getResolution() << std::endl;
43 clout << "Lattice velocity: latticeU= " << this->getCharLatticeVelocity() << std::endl;
44 clout << "Lattice relaxation frequency: omega= " << this->getLatticeRelaxationFrequency() << std::endl;
45 clout << "Lattice relaxation time: tau= " << this->getLatticeRelaxationTime() << std::endl;
46 clout << "Thermal Lattice relaxation frequency: omega_AD= " << this->getLatticeThermalRelaxationFrequency() << std::endl;
47 clout << "Thermal Lattice relaxation time: tau_AD= " << this->getLatticeThermalRelaxationTime() << std::endl;
48 clout << "Characteristical length(m): charL= " << this->getCharPhysLength() << std::endl;
49 clout << "Characteristical speed(m/s): charU= " << this->getCharPhysVelocity() << std::endl;
50 clout << "Phys. kinematic viscosity(m^2/s): charNu= " << this->getPhysViscosity() << std::endl;
51 clout << "Phys. density(kg/m^d): charRho= " << this->getPhysDensity() << std::endl;
52 clout << "Characteristical pressure(N/m^2): charPressure= " << this->getCharPhysPressure() << std::endl;
53 clout << "Reynolds number: reynoldsNumber= " << this->getReynoldsNumber() << std::endl;
54
55 clout << "-------------------------------------------------------------" << std::endl;
56
57 clout << "----------------- ThermalUnitConverter information -----------------" << std::endl;
58 clout << "-- Parameters:" << std::endl;
59 clout << "Phys. Delta X(m): physDeltaX= " << this->getPhysDeltaX() << std::endl;
60 clout << "Phys. Delta T(s): physDeltaT= " << this->getPhysDeltaT() << std::endl;
61 clout << "Characteristical pressure(N/m^2): charPressure= " << this->getCharPhysPressure() << std::endl;
62 clout << "Phys. Thermal Conductivity(W/m/K): physThermalCondcticity= " << getThermalConductivity() << std::endl;
63 clout << "Phys. specific Heat Capacity(J/kg/K): physSpecificHeatCapacity= " << getPhysSpecificHeatCapacity() << std::endl;
64 clout << "Phys. Thermal Expasion Coefficent(K^-1): physThermalExpansionCoefficent= " << getPhysThermalExpansionCoefficient() << std::endl;
65 clout << "Characteristical Phys. low Temperature(K): charPhysLowTemperature= " << getCharPhysLowTemperature() << std::endl;
66 clout << "Characteristical Phys. high Temperature(K): charPhysHighTemperature= " << getCharPhysHighTemperature() << std::endl;
67 clout << "Prandtl number: prandtlNumber= " << getPrandtlNumber() << std::endl;
68 clout << "Rayleigh number: rayleighNumber= " << getRayleighNumber() << std::endl;
69
70
71 clout << "-------------------------------------------------------------" << std::endl;
72
73 clout << "----------------- Conversion factors:-----------------" << std::endl;
74 clout << "Voxel length(m): physDeltaX= " << this->getConversionFactorLength() << std::endl;
75 clout << "Time step(s): physDeltaT= " << this->getConversionFactorTime() << std::endl;
76 clout << "Velocity factor(m/s): physVelocity= " << this->getConversionFactorVelocity() << std::endl;
77 clout << "Density factor(kg/m^3): physDensity= " << this->getConversionFactorDensity() << std::endl;
78 clout << "Mass factor(kg): physMass= " << this->getConversionFactorMass() << std::endl;
79 clout << "Viscosity factor(m^2/s): physViscosity= " << this->getConversionFactorViscosity() << std::endl;
80 clout << "Force factor(N): physForce= " << this->getConversionFactorForce() << std::endl;
81 clout << "Pressure factor(N/m^2): physPressure= " << this->getConversionFactorPressure() << std::endl;
82
83 clout << "-------------------------------------------------------------" << std::endl;
84
85 clout << "----------------- ThermalConversion factors:-----------------" << std::endl;
86 clout << "Temperature(K): temperature= " << getConversionFactorTemperature() << std::endl;
87 clout << "Thermal Diffusity(m^2/s): physThermalDiffusity= " << getConversionFactorThermalDiffusivity() << std::endl;
88 clout << "specific Heat Capacity(J/kg): physSpecificHeatCapacity= " << getConversionFactorSpecificHeatCapacity() << std::endl;
89 clout << "Thermal Coductivity(W/m/K): physThermalCondcticity= " << getConversionFactorThermalConductivity() << std::endl;
90 clout << "HeatFlux(W): physHeatFlux= " << getConversionFactorHeatFlux() << std::endl;
91
92 clout << "-------------------------------------------------------------" << std::endl;
93
94}
constexpr T getConversionFactorSpecificHeatCapacity() const
access (read-only) to private member variable
constexpr T getThermalConductivity() const
return thermal conductivity in physical units
constexpr T getPrandtlNumber() const
constexpr T getPhysThermalExpansionCoefficient() const
return thermal expansion coefficient in physical units
constexpr T getConversionFactorTemperature() const
access (read-only) to private member variable
constexpr T getPhysSpecificHeatCapacity() const
return specific heat capacity in physical units
constexpr T getLatticeThermalRelaxationTime() const
return thermal relaxation time in lattice units
constexpr T getRayleighNumber() const
constexpr T getConversionFactorThermalConductivity() const
access (read-only) to private member variable
constexpr T getCharPhysHighTemperature() const
return characteristic high temperature in physical units
constexpr T getCharPhysLowTemperature() const
return characteristic low temperature in physical units
constexpr T getConversionFactorThermalDiffusivity() const
access (read-only) to private member variable
constexpr T getConversionFactorHeatFlux() const
access (read-only) to private member variable
constexpr T getLatticeThermalRelaxationFrequency() const
return thermal relaxation frequency in lattice units
constexpr T getConversionFactorViscosity() const
access (read-only) to private member variable
constexpr T getCharPhysLength() const
return characteristic length in physical units
constexpr int getResolution() const
return resolution
constexpr T getConversionFactorDensity() const
access (read-only) to private member variable
constexpr T getPhysDensity() const
return density in physical units
constexpr T getLatticeRelaxationFrequency() const
return relaxation frequency in lattice units
constexpr T getConversionFactorLength() const
access (read-only) to private member variable
constexpr T getCharLatticeVelocity() const
return characteristic velocity in lattice units
constexpr T getConversionFactorVelocity() const
access (read-only) to private member variable
constexpr T getConversionFactorMass() const
access (read-only) to private member variable
constexpr T getPhysViscosity() const
return viscosity in physical units
constexpr T getConversionFactorForce() const
access (read-only) to private member variable
constexpr T getConversionFactorPressure() const
access (read-only) to private member variable
constexpr T getCharPhysVelocity() const
return characteristic velocity in physical units
constexpr T getPhysDeltaT() const
returns time spacing (timestep length) in s
constexpr T getConversionFactorTime() const
access (read-only) to private member variable
constexpr T getCharPhysPressure() const
return characteristic pressure in physical units
constexpr T getLatticeRelaxationTime() const
return relaxation time in lattice units
constexpr T getReynoldsNumber() const
return Reynolds number
constexpr T getPhysDeltaX() const
returns grid spacing (voxel length) in m

Member Data Documentation

◆ _charPhysHighTemperature

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_charPhysHighTemperature
protected

Definition at line 242 of file thermalUnitConverter.h.

◆ _charPhysLowTemperature

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_charPhysLowTemperature
protected

Definition at line 241 of file thermalUnitConverter.h.

◆ _charPhysTemperatureDifference

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_charPhysTemperatureDifference
protected

Definition at line 243 of file thermalUnitConverter.h.

◆ _conversionHeatFlux

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionHeatFlux
protected

Definition at line 238 of file thermalUnitConverter.h.

◆ _conversionSpecificHeatCapacity

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionSpecificHeatCapacity
protected

Definition at line 236 of file thermalUnitConverter.h.

◆ _conversionTemperature

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionTemperature
protected

Definition at line 234 of file thermalUnitConverter.h.

◆ _conversionThermalConductivity

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionThermalConductivity
protected

Definition at line 237 of file thermalUnitConverter.h.

◆ _conversionThermalDiffusivity

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_conversionThermalDiffusivity
protected

Definition at line 235 of file thermalUnitConverter.h.

◆ _latticeThermalRelaxationTime

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_latticeThermalRelaxationTime
protected

Definition at line 250 of file thermalUnitConverter.h.

◆ _physSpecificHeatCapacity

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_physSpecificHeatCapacity
protected

Definition at line 246 of file thermalUnitConverter.h.

◆ _physThermalConductivity

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_physThermalConductivity
protected

Definition at line 247 of file thermalUnitConverter.h.

◆ _physThermalDiffusivity

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_physThermalDiffusivity
protected

Definition at line 245 of file thermalUnitConverter.h.

◆ _physThermalExpansionCoefficient

template<typename T , typename DESCRIPTOR , typename ThermalLattice >
const T olb::ThermalUnitConverter< T, DESCRIPTOR, ThermalLattice >::_physThermalExpansionCoefficient
protected

Definition at line 244 of file thermalUnitConverter.h.


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