TransFlow
0.1.0
A transient pipeline flow simulation library
|
7 #include "heattransfer/heattransfer.hpp"
45 const std::string& eos =
"BWRS",
46 const std::string& heat =
"SteadyState");
78 std::unique_ptr<EquationOfState>
m_eos;
79 std::unique_ptr<HeatTransfer>
m_heat;
virtual ~Physics()
Declared to avoid the inline compiler-generated default destructor.
The EquationOfState class is a wrapper around HeatTransferBase that has one heat transfer instance pe...
Definition: heattransfer.hpp:15
void updateDerivedProperties(Pipeline &state) const
Updates all derived properties, but does not evaluate the heat transfer.
Definition: pipeline.hpp:16
Physics(const Pipeline &state, const Config &config)
Construct from Config and Pipeline.
const HeatTransfer & heatTransfer() const
Get (const ref) HeatTransfer.
Definition: physics.hpp:75
The Physics class combines EquationOfState and HeatTransfer to calculate the new state of a pipeline ...
Definition: physics.hpp:21
const EquationOfState & equationOfState() const
Get (const ref) EquationOfState.
Definition: physics.hpp:72
void initializeHeatTransferState(Pipeline &state) const
Initialize heat transfer of a Pipeline.
The Config struct stores all settings for the different parts of the pipeline simulation.
Definition: config.hpp:11
The EquationOfState class is a wrapper around EquationOfStateBase that has one equation of state inst...
Definition: equationofstate.hpp:15
void thermalizeHeatTransfer(Pipeline &state) const
Thermalize the heat transfer of a Pipeline.
arma::uword size() const
Get the size (number of grid points)
Definition: physics.hpp:69
std::unique_ptr< HeatTransfer > m_heat
Heat transfer.
Definition: physics.hpp:79
std::unique_ptr< EquationOfState > m_eos
Equation of state.
Definition: physics.hpp:78