thermalEnergy static method
Calculates the thermal energy of a system at a given Temperature using E = kT.
Returns the energy as an Energy quantity.
Usage: final energy = PhysicalConstants.thermalEnergy(300.0.kelvin);
Implementation
static Energy thermalEnergy(Temperature temperature) {
final tempInKelvin = temperature.getValue(TemperatureUnit.kelvin);
return Energy(boltzmannConstant * tempInKelvin, EnergyUnit.joule);
}