OpenLB 1.7
|
#include <adeUnitConverter.h>
Public Member Functions | |
constexpr | AdeUnitConverter (T physDeltaX, T physDeltaT, T charPhysLength, T charPhysVelocity, T physDiffusivity, T physDensity) |
constexpr T | getLatticeAdeRelaxationTime () const |
return thermal relaxation time in lattice units | |
constexpr T | getLatticeAdeRelaxationFrequency () const |
return thermal relaxation frequency in lattice units | |
constexpr T | getPhysDiffusivity () const |
constexpr T | getLatticeDiffusivity () const |
constexpr T | getConversionFactorDiffusivity () const |
constexpr T | getPecletNumber () const |
constexpr T | getKnudsenNumber () const |
void | print () const override |
nice terminal output for conversion factors, characteristical and physical data | |
void | write (std::string const &fileName="AdeUnitConverter") const override |
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 | _physDiffusivity |
const T | _conversionDiffusivity |
const T | _latticeAdeRelaxationTime |
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 |
Definition at line 46 of file adeUnitConverter.h.
|
inlineconstexpr |
Definition at line 49 of file adeUnitConverter.h.
|
inlineconstexpr |
Definition at line 90 of file adeUnitConverter.h.
References olb::AdeUnitConverter< T, DESCRIPTOR >::_conversionDiffusivity.
|
inlineconstexpr |
Definition at line 101 of file adeUnitConverter.h.
References olb::UnitConverter< T, DESCRIPTOR >::getMachNumber(), and olb::AdeUnitConverter< T, DESCRIPTOR >::getPecletNumber().
|
inlineconstexpr |
return thermal relaxation frequency in lattice units
Definition at line 75 of file adeUnitConverter.h.
References olb::AdeUnitConverter< T, DESCRIPTOR >::_latticeAdeRelaxationTime.
|
inlineconstexpr |
return thermal relaxation time in lattice units
Definition at line 69 of file adeUnitConverter.h.
References olb::AdeUnitConverter< T, DESCRIPTOR >::_latticeAdeRelaxationTime.
|
inlineconstexpr |
Definition at line 85 of file adeUnitConverter.h.
References olb::AdeUnitConverter< T, DESCRIPTOR >::_conversionDiffusivity, and olb::AdeUnitConverter< T, DESCRIPTOR >::_physDiffusivity.
|
inlineconstexpr |
Definition at line 96 of file adeUnitConverter.h.
References olb::UnitConverter< T, DESCRIPTOR >::getCharPhysLength(), olb::UnitConverter< T, DESCRIPTOR >::getCharPhysVelocity(), and olb::AdeUnitConverter< T, DESCRIPTOR >::getPhysDiffusivity().
|
inlineconstexpr |
Definition at line 80 of file adeUnitConverter.h.
References olb::AdeUnitConverter< T, DESCRIPTOR >::_physDiffusivity.
|
overridevirtual |
nice terminal output for conversion factors, characteristical and physical data
Reimplemented from olb::UnitConverter< T, DESCRIPTOR >.
Definition at line 121 of file adeUnitConverter.h.
|
overridevirtual |
Implements olb::UnitConverterBase.
Definition at line 154 of file adeUnitConverter.h.
References olb::singleton::directories(), olb::singleton::Directories::getLogOutDir(), and olb::singleton::mpi().
|
protected |
Definition at line 113 of file adeUnitConverter.h.
|
protected |
Definition at line 114 of file adeUnitConverter.h.
|
protected |
Definition at line 112 of file adeUnitConverter.h.