Base class for the implementation of a reduced problem. More...
#include <ReducedProblem.H>
Public Member Functions | |
reducedProblem () | |
Construct Null. | |
virtual | ~reducedProblem () |
reducedProblem (reductionProblem &problem) | |
Construct with reduced Problem. | |
virtual void | solveOnline () |
Virtual Method to perform and online Solve. | |
Static Public Member Functions | |
static Eigen::MatrixXd | solveLinearSys (List< Eigen::MatrixXd > LinSys, Eigen::MatrixXd x, Eigen::VectorXd &residual, const Eigen::MatrixXd &bc=Eigen::MatrixXd::Zero(0, 0), const std::string solverType="fullPivLu") |
Linear system solver for the online problem. | |
static Eigen::MatrixXd | solveLinearSys (List< Eigen::MatrixXd > LinSys, Eigen::MatrixXd x, Eigen::VectorXd &residual, const std::string solverType) |
Linear system solver for the online problem. | |
Public Attributes | |
scalar | nu |
Viscosity. | |
reductionProblem * | problem |
Pointer to FOAM problem. | |
Base class for the implementation of a reduced problem.
Definition at line 54 of file ReducedProblem.H.
reducedProblem::reducedProblem | ( | ) |
Construct Null.
Definition at line 44 of file ReducedProblem.C.
|
inlinevirtual |
Definition at line 60 of file ReducedProblem.H.
|
explicit |
Construct with reduced Problem.
problem | a reductionProblem or a child of it |
Definition at line 48 of file ReducedProblem.C.
|
static |
Linear system solver for the online problem.
It can be used for any kind of variable. Boundary conditions are set to 0 as default so that the system is not constrained if no conditions are given (pressure case). The solver has to be choosen between Eigen linear solvers (fullPivLu set as default).
[in] | LinSys | The linear system as a list of matrices. |
[in] | x | Solution of the problem at previous step. |
residual | Residual given to let the function update it. | |
[in] | bc | Boundary conditions to constrain the system. |
[in] | solverType | Solver type. |
Definition at line 64 of file ReducedProblem.C.
|
static |
Linear system solver for the online problem.
It can be used for any kind of variable. Boundary conditions are set to 0 as default so that the system is not constrained if no conditions are given (pressure case). The solver has to be choosen between Eigen linear solvers (fullPivLu set as default).
[in] | LinSys | The linear system as a list of matrices. |
[in] | x | Solution of the problem at previous step. |
residual | Residual given to let the function update it. | |
[in] | solverType | Solver type. |
Definition at line 163 of file ReducedProblem.C.
|
virtual |
Virtual Method to perform and online Solve.
Definition at line 56 of file ReducedProblem.C.
scalar reducedProblem::nu |
Viscosity.
Definition at line 70 of file ReducedProblem.H.
reductionProblem* reducedProblem::problem |
Pointer to FOAM problem.
Definition at line 73 of file ReducedProblem.H.