The Physics class combines EquationOfState and HeatTransfer to calculate the new state of a pipeline given a new pressure, temperature and flow.
More...
#include <physics.hpp>
The Physics class combines EquationOfState and HeatTransfer to calculate the new state of a pipeline given a new pressure, temperature and flow.
This class operates on a Pipeline instance, and returns a new Pipeline instance with updated properties (heat flow, Reynolds number etc.)
◆ Physics() [1/2]
◆ Physics() [2/2]
Physics::Physics |
( |
const Pipeline & |
state, |
|
|
const std::string & |
eos = "BWRS" , |
|
|
const std::string & |
heat = "SteadyState" |
|
) |
| |
|
explicit |
Construct from Pipeline and strings to select the equation of state and heat transfer type to use.
- Parameters
-
state | Pipeline description |
eos | Equation of state type ("BWRS", "GERG04" or "IdealGas") |
heat | Heat transfer type ("SteadyState", "Unsteady", "FixedUValue" or "FixedQValue") |
◆ initializeHeatTransferState()
void Physics::initializeHeatTransferState |
( |
Pipeline & |
state | ) |
const |
Initialize heat transfer of a Pipeline.
- Parameters
-
state | Pipeline state to initializing heat transfer of |
◆ thermalizeHeatTransfer()
void Physics::thermalizeHeatTransfer |
( |
Pipeline & |
state | ) |
const |
Thermalize the heat transfer of a Pipeline.
- Parameters
-
◆ updateDerivedProperties()
void Physics::updateDerivedProperties |
( |
Pipeline & |
state | ) |
const |
Updates all derived properties, but does not evaluate the heat transfer.
- Parameters
-
The documentation for this class was generated from the following file:
- D:/Code/transient-pipeline-flow-gh-pages/src/physics.hpp