TransFlow
0.1.0
A transient pipeline flow simulation library
|
25 virtual arma::mat
solve(
42 template<
typename T = InternalEnergyDiscretizer>
70 virtual arma::mat
solve(
The MatrixEquation class sets up the matrix equation from the system of equations found from the gove...
Definition: matrixequation.hpp:36
Definition: pipeline.hpp:16
const arma::uword m_nVariables
Number of flow variables (flow, pressure and temperature)
Definition: governingequationsolver.hpp:77
virtual arma::mat solve(const arma::uword dt, const Pipeline ¤tState, const Pipeline &newState, const BoundaryConditions &boundaryConditions)=0
See GoverningEquationSolver::solve().
virtual ~GoverningEquationSolverBase()
Declared to avoid the inline compiler-generated default destructor.
std::unique_ptr< Discretizer > m_discretizer
Definition: governingequationsolver.hpp:84
The GoverningEquationSolver class is a composition of Discretizer and MatrixEquation with a little bi...
Definition: governingequationsolver.hpp:43
virtual ~GoverningEquationSolver()
Declared to avoid the inline compiler-generated default destructor.
GoverningEquationSolver(const arma::uword nGridPoints)
Construct with string determining the type of energy equation.
std::unique_ptr< MatrixEquation > m_matrixEquation
Definition: governingequationsolver.hpp:88
The BoundaryConditions class is a container for the boundary conditions at the inlet and outlet of a ...
Definition: boundaryconditions.hpp:27
Implementation of Discretizer for the internal energy form of the energy equation.
Definition: internalenergy.hpp:13
Simple Base class to avoid having to specify template argument for GoverningEquationSolver....
Definition: governingequationsolver.hpp:18
virtual arma::mat solve(const arma::uword dt, const Pipeline ¤tState, const Pipeline &newState, const BoundaryConditions &boundaryConditions) override
Solve the governing equations for a given time step and boundary conditions.
Discretizer is an abstract class, the base class the implementation of the discretization of the two ...
Definition: discretizer.hpp:42
bool isOverDetermined(const BoundaryConditions &boundaryConditions)