The GoverningEquationSolver class is a composition of Discretizer and MatrixEquation with a little bit of logic, that solves the governing equations for a 1d gas pipeline.
More...
#include <governingequationsolver.hpp>
template<typename T = InternalEnergyDiscretizer>
class GoverningEquationSolver< T >
The GoverningEquationSolver class is a composition of Discretizer and MatrixEquation with a little bit of logic, that solves the governing equations for a 1d gas pipeline.
◆ GoverningEquationSolver() [1/2]
template<typename T = InternalEnergyDiscretizer>
Construct with string determining the type of energy equation.
- Parameters
-
nGridPoints | Number of grid points |
◆ GoverningEquationSolver() [2/2]
template<typename T = InternalEnergyDiscretizer>
◆ solve()
template<typename T = InternalEnergyDiscretizer>
Solve the governing equations for a given time step and boundary conditions.
- Parameters
-
dt | Time step [s] |
currentState | Current Pipeline state |
newState | New/guess Pipeline state |
boundaryConditions | Boundary conditions |
- Returns
- Matrix containing flow, pressure and temperature columns
Implements GoverningEquationSolverBase.
◆ m_discretizer
template<typename T = InternalEnergyDiscretizer>
◆ m_matrixEquation
template<typename T = InternalEnergyDiscretizer>
MatrixEquation instance used to solve the matrix equation set up when discretizing the governing equations.
The documentation for this class was generated from the following file: