Loading...
Searching...
No Matches
reducedProblem Class Reference

Base class for the implementation of a reduced problem. More...

#include <ReducedProblem.H>

Inheritance diagram for reducedProblem:
reducedLaplacian reducedMSR reducedSimpleSteadyNS reducedSteadyNS reducedusMSR reducedSimpleSteadyNN ReducedSteadyNSTurb ReducedSteadyNSTurbIntrusive reducedUnsteadyNS ReducedUnsteadyBB ReducedUnsteadyNSExplicit ReducedUnsteadyNSTurb ReducedUnsteadyNSTurbIntrusive reducedUnsteadyNST ReducedUnsteadyNSTTurb

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.
 
reductionProblemproblem
 Pointer to FOAM problem.
 

Detailed Description

Base class for the implementation of a reduced problem.

Definition at line 54 of file ReducedProblem.H.

Constructor & Destructor Documentation

◆ reducedProblem() [1/2]

reducedProblem::reducedProblem ( )

Construct Null.

Definition at line 44 of file ReducedProblem.C.

◆ ~reducedProblem()

virtual reducedProblem::~reducedProblem ( )
inlinevirtual

Definition at line 60 of file ReducedProblem.H.

◆ reducedProblem() [2/2]

reducedProblem::reducedProblem ( reductionProblem & problem)
explicit

Construct with reduced Problem.

Parameters
problema reductionProblem or a child of it

Definition at line 48 of file ReducedProblem.C.

Member Function Documentation

◆ solveLinearSys() [1/2]

Eigen::MatrixXd reducedProblem::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" )
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).

Parameters
[in]LinSysThe linear system as a list of matrices.
[in]xSolution of the problem at previous step.
residualResidual given to let the function update it.
[in]bcBoundary conditions to constrain the system.
[in]solverTypeSolver type.
Returns
Updated solution to the system.

Definition at line 64 of file ReducedProblem.C.

◆ solveLinearSys() [2/2]

Eigen::MatrixXd reducedProblem::solveLinearSys ( List< Eigen::MatrixXd > LinSys,
Eigen::MatrixXd x,
Eigen::VectorXd & residual,
const std::string solverType )
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).

Parameters
[in]LinSysThe linear system as a list of matrices.
[in]xSolution of the problem at previous step.
residualResidual given to let the function update it.
[in]solverTypeSolver type.
Returns
Updated solution to the system.

Definition at line 163 of file ReducedProblem.C.

◆ solveOnline()

void reducedProblem::solveOnline ( )
virtual

Virtual Method to perform and online Solve.

Definition at line 56 of file ReducedProblem.C.

Member Data Documentation

◆ nu

scalar reducedProblem::nu

Viscosity.

Definition at line 70 of file ReducedProblem.H.

◆ problem

reductionProblem* reducedProblem::problem

Pointer to FOAM problem.

Definition at line 73 of file ReducedProblem.H.


The documentation for this class was generated from the following files: