TransFlow  0.1.0
A transient pipeline flow simulation library
PipeWall::Layer Class Reference

The PipeWall::Layer class is a simple container class that defines the thickness and all other material properties of a single layer of pipe wall. More...

#include <pipewall.hpp>

Inheritance diagram for PipeWall::Layer:
Material

Public Member Functions

constexpr Layer ()
 Default constructor, sets all properties to -1.
 
constexpr Layer (const double thickness, const double conductivity, const double density, const double heatCapacity)
 Basic constructor that requires all material properties. More...
 
constexpr Layer (const double thickness, const Material &material)
 Construct from thickness and Material instance. More...
 
double thickness () const
 Thickness getter.
 
double conductivity () const
 Conductivity getter.
 
double density () const
 Density getter.
 
double heatCapacity () const
 Heat capacity getter.
 
double & thickness ()
 Thickness setter.
 
double & conductivity ()
 Conductivity setter.
 
double & density ()
 Density setter.
 
double & heatCapacity ()
 Heat capacity setter.
 
- Public Member Functions inherited from Material
constexpr Material (const double conductivity, const double density, const double heatCapacity)
 Basic constructor that requires all material properties. More...
 
double conductivity () const
 Conductivity getter.
 
double density () const
 Density getter.
 
double heatCapacity () const
 Heat capacity getter.
 

Private Attributes

double m_thickness
 Layer wall thickness [m].
 

Additional Inherited Members

- Static Public Attributes inherited from Material
static const Material concrete = Material( 2.9, 3400, 650)
 Predefined concrete.
 
static const Material steel = Material(50, 7800, 590)
 Predefined steel.
 
static const Material coating = Material( 0.74, 1300, 1900)
 Predefined pipe coating.
 
static const Material soil = Material( 2, 2000, 1000)
 Predefined soil.
 
static const Material seawater = Material( 0.571, 1020, 4187)
 Predefined seawater.
 
static const Material air = Material( 0.0257, 1.225, 1012)
 Predefined air.
 
- Protected Attributes inherited from Material
double m_conductivity
 Thermal conductivity [W/(m K)].
 
double m_density
 Density [kg/m3].
 
double m_heatCapacity
 Heat capacity at constant pressure ( \(c_p\)) [J/(kg K)].
 

Detailed Description

The PipeWall::Layer class is a simple container class that defines the thickness and all other material properties of a single layer of pipe wall.

Constructor & Destructor Documentation

◆ Layer() [1/2]

constexpr PipeWall::Layer::Layer ( const double  thickness,
const double  conductivity,
const double  density,
const double  heatCapacity 
)
inlineconstexpr

Basic constructor that requires all material properties.

Parameters
thicknessLayer thickness [m]
conductivityThermal conductivity [W/(m K)]
densityDensity [kg/m3]
heatCapacityHeat capacity at constant pressure ( \(c_p\)) [J/(kg K)]

◆ Layer() [2/2]

constexpr PipeWall::Layer::Layer ( const double  thickness,
const Material material 
)
inlineconstexpr

Construct from thickness and Material instance.

Parameters
thicknessLayer thickness [m]
materialPipe wall material.

The documentation for this class was generated from the following file: