Class to solve the online reduced problem associated with a Laplace problem. More...
#include <ReducedLaplacian.H>
Public Member Functions | |
reducedLaplacian () | |
Construct Null. | |
reducedLaplacian (laplacianProblem &problem) | |
Construct from a laplacian problem. | |
~reducedLaplacian () | |
void | solveOnline (Eigen::MatrixXd mu) |
Function to perform an online solve given a certain mu. | |
void | reconstruct (fileName folder="./ITHACAOutput/online_rec", int printevery=1) |
Function to recover the solution given the online solution. | |
Public Member Functions inherited from reducedProblem | |
reducedProblem () | |
Construct Null. | |
virtual | ~reducedProblem () |
reducedProblem (reductionProblem &problem) | |
Construct with reduced Problem. | |
virtual void | solveOnline () |
Virtual Method to perform and online Solve. | |
Public Attributes | |
laplacianProblem * | problem |
Problem object. | |
Eigen::MatrixXd | online_solution |
Online solution. | |
int | count_online_solve = 1 |
Counter for online sol. | |
PtrList< volScalarField > | Trec |
Reduced reconstructed Solution. | |
Public Attributes inherited from reducedProblem | |
scalar | nu |
Viscosity. | |
reductionProblem * | problem |
Pointer to FOAM problem. | |
Additional Inherited Members | |
Static Public Member Functions inherited from reducedProblem | |
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. | |
Class to solve the online reduced problem associated with a Laplace problem.
In this class are implemented the methods to solve a reduced version of the Laplace problem This class is used together with the laplacianProblem class
Definition at line 54 of file ReducedLaplacian.H.
reducedLaplacian::reducedLaplacian | ( | ) |
Construct Null.
Definition at line 40 of file ReducedLaplacian.C.
|
explicit |
Construct from a laplacian problem.
Definition at line 44 of file ReducedLaplacian.C.
|
inline |
Definition at line 66 of file ReducedLaplacian.H.
void reducedLaplacian::reconstruct | ( | fileName | folder = "./ITHACAOutput/online_rec", |
int | printevery = 1 ) |
Function to recover the solution given the online solution.
[in] | folder | The folder where you want to store the results (default is "./ITHACAOutput/online_rec") |
[in] | printevery | Variable to recover only every printevery the online solutions |
Definition at line 75 of file ReducedLaplacian.C.
void reducedLaplacian::solveOnline | ( | Eigen::MatrixXd | mu | ) |
Function to perform an online solve given a certain mu.
[in] | mu | Actual value of the parameters that are multiplying, the affine expansion of the operators. |
Definition at line 50 of file ReducedLaplacian.C.
int reducedLaplacian::count_online_solve = 1 |
Counter for online sol.
Definition at line 75 of file ReducedLaplacian.H.
Eigen::MatrixXd reducedLaplacian::online_solution |
Online solution.
Definition at line 72 of file ReducedLaplacian.H.
laplacianProblem* reducedLaplacian::problem |
Problem object.
Definition at line 69 of file ReducedLaplacian.H.
PtrList<volScalarField> reducedLaplacian::Trec |
Reduced reconstructed Solution.
Definition at line 78 of file ReducedLaplacian.H.