![]() |
G+Smo
25.01.0
Geometry + Simulation Modules
|
Direct solver for linear systems inside the incompressible flow solvers (classes derived from gsFlowSolverBase).
T | coefficient type |
MatOrder | sparse matrix storage order (ColMajor/RowMajor) |
Public Member Functions | |
virtual void | applySolver (const gsSparseMatrix< T, MatOrder > &mat, const gsMatrix< T > &rhs, gsMatrix< T > &solution) |
Solve the linear system. | |
virtual void | applySolver (const gsSparseMatrix< T, MatOrder > &mat, const gsMatrix< T > &rhs, gsMatrix< T > &solution, real_t alpha_u, real_t alpha_p, index_t usize, index_t pdofs) |
Solve the Navier–Stokes linear system with underrelaxation. | |
virtual const T | getSolverSetupTime () const |
Returns the total time spent on linear solver setup. | |
virtual const T | getSolveTime () const |
Returns the total time spent on solving of the linear systems. | |
gsFlowLinSystSolver_direct (const gsFlowSolverParams< T > ¶ms) | |
Constructor. | |
virtual void | setupSolver (const gsSparseMatrix< T, MatOrder > &mat) |
Setup the linear solver for a given matrix. | |
|
virtual |
Solve the linear system.
[out] | solution | a reference to the vector, where the computed solution will be stored |
Reimplemented from gsFlowLinSystSolver< T, MatOrder >.
|
virtualinherited |
Solve the Navier–Stokes linear system with underrelaxation.
[in] | mat | a const reference to the system matrix |
[in] | rhs | a const reference to the system right-hand side |
[out] | solution | a reference to the vector, where the computed solution will be stored |
[in] | alpha_u | velocity relaxation parameter |
[in] | alpha_p | pressure relaxation parameter |
[in] | usize | size of the velocity part of the system |
[in] | pdofs | number of pressure DOFs |