Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
ThermalUtils.h File Reference
#include <algorithm>
#include <cmath>
#include "physics/ThermalProperties.h"
Include dependency graph for ThermalUtils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Physics
 
namespace  Physics::Thermal
 

Functions

double Physics::Thermal::fourthPower (double value)
 
double Physics::Thermal::clampTemperature (double tempK)
 
double Physics::Thermal::linearTemperatureFactor (double coeffPerK, double tempK, double referenceTempK)
 
double Physics::Thermal::effectiveSpecificHeat (const ThermalProperties &props, double tempK)
 
double Physics::Thermal::effectiveConductivity (const ThermalProperties &props, double tempK)
 
double Physics::Thermal::effectiveEmissivity (const ThermalProperties &props, double tempK)
 
double Physics::Thermal::effectiveAbsorptivity (const ThermalProperties &props, double tempK)
 
double Physics::Thermal::effectiveDensity (const ThermalProperties &props, double tempK)
 
double Physics::Thermal::activeThermalMass (double massKg, const ThermalProperties &props)
 
double Physics::Thermal::heatCapacity (double massKg, const ThermalProperties &props)
 
double Physics::Thermal::thermalDiffusivity (const ThermalProperties &props, double tempK)
 
double Physics::Thermal::biotNumber (const ThermalProperties &props, double characteristicLengthM)
 
double Physics::Thermal::fourierNumber (const ThermalProperties &props, double characteristicLengthM, double elapsedSeconds)
 
double Physics::Thermal::carnotEfficiency (double hotTempK, double coldTempK)
 
double Physics::Thermal::specificEntropyChange (double specificHeatJPerKgK, double fromTempK, double toTempK)
 
double Physics::Thermal::convectionHeatRate (const ThermalProperties &props, double areaM2, double ambientTempK)
 
double Physics::Thermal::ambientRadiationHeatRate (const ThermalProperties &props, double areaM2, double ambientTempK)
 
double Physics::Thermal::externalHeatFluxRate (const ThermalProperties &props, double areaM2)
 
double Physics::Thermal::conductiveHeatRate (double conductivityA, double conductivityB, double areaM2, double distanceM, double tempAK, double tempBK)
 
void Physics::Thermal::applyThermalEnergy (ThermalProperties &props, double massKg, double energyJ)
 
void Physics::Thermal::applyConductiveExchange (ThermalProperties &a, double massA, ThermalProperties &b, double massB, double areaM2, double distanceM, double dt)
 
template<typename HeatRateFn >
void Physics::Thermal::integrateTemperature (ThermalProperties &props, double massKg, double dt, HeatRateFn &&heatRateAtTemp)
 

Variables

constexpr double Physics::Thermal::kMinTemperatureK = 0.0
 
constexpr double Physics::Thermal::kMaxTemperatureK = 1.0e8
 
constexpr double Physics::Thermal::kMinConductionDistance = 1.0e-9
 
constexpr double Physics::Thermal::kMaxThermalStepSeconds = 60.0
 
constexpr double Physics::Thermal::kMaxTemperatureStepK = 25.0
 
constexpr double Physics::Thermal::kMaxTemperatureStepFraction = 0.02