Loading...
Searching...
No Matches
reducedLaplacian Class Reference

Class to solve the online reduced problem associated with a Laplace problem. More...

#include <ReducedLaplacian.H>

Inheritance diagram for reducedLaplacian:
reducedProblem

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

laplacianProblemproblem
 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.
 
reductionProblemproblem
 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.
 

Detailed Description

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

Examples
02thermalBlock.C.

Definition at line 54 of file ReducedLaplacian.H.

Constructor & Destructor Documentation

◆ reducedLaplacian() [1/2]

reducedLaplacian::reducedLaplacian ( )

Construct Null.

Definition at line 40 of file ReducedLaplacian.C.

◆ reducedLaplacian() [2/2]

reducedLaplacian::reducedLaplacian ( laplacianProblem & problem)
explicit

Construct from a laplacian problem.

Definition at line 44 of file ReducedLaplacian.C.

◆ ~reducedLaplacian()

reducedLaplacian::~reducedLaplacian ( )
inline

Definition at line 66 of file ReducedLaplacian.H.

Member Function Documentation

◆ reconstruct()

void reducedLaplacian::reconstruct ( fileName folder = "./ITHACAOutput/online_rec",
int printevery = 1 )

Function to recover the solution given the online solution.

Parameters
[in]folderThe folder where you want to store the results (default is "./ITHACAOutput/online_rec")
[in]printeveryVariable to recover only every printevery the online solutions

Definition at line 75 of file ReducedLaplacian.C.

◆ solveOnline()

void reducedLaplacian::solveOnline ( Eigen::MatrixXd mu)

Function to perform an online solve given a certain mu.

Parameters
[in]muActual value of the parameters that are multiplying, the affine expansion of the operators.

Definition at line 50 of file ReducedLaplacian.C.

Member Data Documentation

◆ count_online_solve

int reducedLaplacian::count_online_solve = 1

Counter for online sol.

Definition at line 75 of file ReducedLaplacian.H.

◆ online_solution

Eigen::MatrixXd reducedLaplacian::online_solution

Online solution.

Definition at line 72 of file ReducedLaplacian.H.

◆ problem

laplacianProblem* reducedLaplacian::problem

Problem object.

Definition at line 69 of file ReducedLaplacian.H.

◆ Trec

PtrList<volScalarField> reducedLaplacian::Trec

Reduced reconstructed Solution.

Definition at line 78 of file ReducedLaplacian.H.


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