TransFlow
0.1.0
A transient pipeline flow simulation library
|
void setTemperature(const arma::vec &temperature)
Set the temperature. Needs a setter since temperature is std::optional.
const arma::vec & temperature() const
Temperature getter. This will throw an error if State::m_temperature is not set, since this is option...
Definition: heattransferstate.hpp:35
HeatTransferState(const double heatFlux=0)
Construct from only heat flux (skip optional temperature vector).
std::optional< arma::vec > m_temperature
Pipe wall temperature (optional) [K].
Definition: heattransferstate.hpp:53
double m_heatFlux
Heat flux [W/m2].
Definition: heattransferstate.hpp:52
Container for the state of a HeatTransferBase instance. All HeatTransferBase subclasses operate on in...
Definition: heattransferstate.hpp:13
bool hasTemperature()
State::m_temperature is optional, so this getter returns true if State::m_temperature has been set pr...
Definition: heattransferstate.hpp:43
double heatFlux() const
Heat flux getter [W/m2].
Definition: heattransferstate.hpp:46