TransFlow  0.1.0
A transient pipeline flow simulation library
PipeWall Class Reference

The PipeWall class is a container class that defines the thickness and Material properties of each layer a pipe consists of. More...

#include <pipewall.hpp>

Classes

class  Layer
 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...
 

Public Member Functions

 PipeWall (const arma::uword nWallLayers)
 Construct PipeWall with a given number of layers. More...
 
 PipeWall (const std::vector< Layer > &wallLayers)
 Construct PipeWall from a vector of PipeWall::Layer. More...
 
const Layerlayer (const arma::uword i) const
 Get layer with index i. Returns const reference to member.
 
Layerlayer (const arma::uword i)
 Get layer with index i. Returns (non-const) reference to member.
 
const std::vector< Layer > & layers () const
 Get all pipe wall layers. Returns const reference to member.
 
arma::uword size () const
 Get number of layers in the pipe wall.
 

Static Public Attributes

static const PipeWall defaultPipeWall
 Predefined pipe wall.
 

Private Attributes

std::vector< Layerm_layers
 m_layers Vector of PipeWall::Layer that the wall consists of.
 

Detailed Description

The PipeWall class is a container class that defines the thickness and Material properties of each layer a pipe consists of.

Constructor & Destructor Documentation

◆ PipeWall() [1/2]

PipeWall::PipeWall ( const arma::uword  nWallLayers)
inlineexplicit

Construct PipeWall with a given number of layers.

Parameters
nWallLayersNumber of layers.

◆ PipeWall() [2/2]

PipeWall::PipeWall ( const std::vector< Layer > &  wallLayers)
inlineexplicit

Construct PipeWall from a vector of PipeWall::Layer.

Parameters
wallLayersThe layers of the wall.

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