TransFlow
0.1.0
A transient pipeline flow simulation library
|
Base class for heat transfer calculation with 1d radial models. More...
#include <radial.hpp>
Public Member Functions | |
RadialHeatTransfer (const double diameter, const PipeWall &pipeWall, const double burialDepth, const BurialMedium &burialMedium, const AmbientFluid &ambientFluid) | |
Constructor that sets up the discretization of the pipe surroundings. More... | |
double | calculateOuterFilmCoefficient () const |
Calculate the outer film coefficient. Basically a wrapper around utils::calcOuterWallFilmCoefficient(const double, const AmbientFluid&) using the proper arguments. More... | |
virtual arma::uword | size () const |
The number of discretization elements. | |
virtual HeatTransferState | makeState (const double heatFlux) const override |
Make instance of HeatTransferState from heat flux. Override. More... | |
virtual HeatTransferState | makeState (const double heatFlux, const double gasTemperature, const double ambientTemperature) const override |
Make instance of HeatTransferState from heat flux. Override. More... | |
![]() | |
virtual | ~HeatTransferBase () |
virtual HeatTransferState | evaluate (const HeatTransferState ¤t, const double timeStep, const double ambientTemperature, const double gasPressure, const double gasTemperature, const double gasReynoldsNumber, const double gasHeatCapacityConstantPressure, const double gasViscosity) const =0 |
Evaluate heat transfer. More... | |
Protected Attributes | |
double | m_diameter |
Pipe inner diameter [m]. | |
double | m_burialDepth |
Distance from top of pipe to top of burial medium [m]. | |
BurialMedium | m_burialMedium |
AmbientFluid | m_ambientFluid |
Description of the fluid surrounding the pipeline. | |
arma::vec | m_width |
Width of each discretization shell [m]. | |
arma::vec | m_conductivity |
Thermal conductivity of each discretization shell [W/(m K)]. | |
arma::vec | m_density |
Density of each discretization shell [kg/m3]. | |
arma::vec | m_heatCapacity |
Heat capacity of each discretization shell ( \(c_p\)) [J/(kg K)]. | |
arma::uvec | m_isBurialLayer |
arma::vec | m_crossSection |
Area/cross-section of each shell [m2]. | |
arma::vec | m_ri |
Inner radius [m]. | |
arma::vec | m_ro |
Outer radius [m]. | |
Base class for heat transfer calculation with 1d radial models.
This contains the description of the burial medium, burial depth, ambient fluid etc., as well as the 1d radial discretization of the surroundings of the pipeline (in m_width, m_conductivity, etc.).
RadialHeatTransfer::RadialHeatTransfer | ( | const double | diameter, |
const PipeWall & | pipeWall, | ||
const double | burialDepth, | ||
const BurialMedium & | burialMedium, | ||
const AmbientFluid & | ambientFluid | ||
) |
Constructor that sets up the discretization of the pipe surroundings.
diameter | Pipe inner diameter [m] |
pipeWall | PipeWall instance |
burialDepth | Distance from top of pipe to top of burial medium [m] |
burialMedium | BurialMedium instance |
ambientFluid | AmbientFluid instance |
double RadialHeatTransfer::calculateOuterFilmCoefficient | ( | ) | const |
Calculate the outer film coefficient. Basically a wrapper around utils::calcOuterWallFilmCoefficient(const double, const AmbientFluid&) using the proper arguments.
|
inlineoverridevirtual |
Make instance of HeatTransferState from heat flux. Override.
Makes HeatTransferState instance with the correct temperature property for 1d radial heat transfer models.
heatFlux | Heat flux [W/m2] |
Reimplemented from HeatTransferBase.
|
inlineoverridevirtual |
Make instance of HeatTransferState from heat flux. Override.
Makes HeatTransferState instance with the correct temperature property for 1d radial heat transfer models. Performs a linear interpolation between gas temperature and ambient temperature. This could probably be improved upon, since there is likely an analytical solution.
heatFlux | Heat flux [W/m2] |
ambientTemperature | Ambient temperature [K] |
gasTemperature | Gas temperature [K] |
Reimplemented from HeatTransferBase.
|
protected |
Description of the medium the pipeline is buried in (or on top of/suspended above depending on burial depth).
|
protected |
Bool that determines whether the discretization layers are due to burial in the burial medium or not.