TransFlow
0.1.0
A transient pipeline flow simulation library
|
60 const arma::uword nGridPoints,
61 const arma::uword nEquationsAndVariables);
arma::mat m_boundaryTerm
The constant/known terms in the discretized governing equations.
Definition: discretizer.hpp:109
Definition: pipeline.hpp:16
const arma::cube & term_i() const
Get coefficients of .
Definition: discretizer.hpp:76
double m_gravity
Gravity.
Definition: discretizer.hpp:111
virtual void discretize(const arma::uword dt, const Pipeline ¤tState, const Pipeline &newState)=0
Pure virtual function, stencil for subclasses. This method calculates in the coefficients of and an...
arma::cube m_term_i
The coefficients of in the discretized governing equations.
Definition: discretizer.hpp:94
const arma::cube & term_ipp() const
Get coefficients of .
Definition: discretizer.hpp:77
const arma::mat & boundaryTerms() const
Get constant terms.
Definition: discretizer.hpp:78
Discretizer is an abstract class, the base class the implementation of the discretization of the two ...
Definition: discretizer.hpp:42
arma::cube m_term_ipp
The coefficients of in the discretized governing equations.
Definition: discretizer.hpp:101
Discretizer(const arma::uword nGridPoints, const arma::uword nEquationsAndVariables)
Construct from number of grid points and number of equations and variables.