Loading...
Searching...
No Matches
ReducedLaplacian.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ██╗████████╗██╗ ██╗ █████╗ ██████╗ █████╗ ███████╗██╗ ██╗
3 ██║╚══██╔══╝██║ ██║██╔══██╗██╔════╝██╔══██╗ ██╔════╝██║ ██║
4 ██║ ██║ ███████║███████║██║ ███████║█████╗█████╗ ██║ ██║
5 ██║ ██║ ██╔══██║██╔══██║██║ ██╔══██║╚════╝██╔══╝ ╚██╗ ██╔╝
6 ██║ ██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ╚████╔╝
7 ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═══╝
8
9 * In real Time Highly Advanced Computational Applications for Finite Volumes
10 * Copyright (C) 2017 by the ITHACA-FV authors
11-------------------------------------------------------------------------------
12License
13 This file is part of ITHACA-FV
14 ITHACA-FV is free software: you can redistribute it and/or modify
15 it under the terms of the GNU Lesser General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18 ITHACA-FV is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU Lesser General Public License for more details.
22 You should have received a copy of the GNU Lesser General Public License
23 along with ITHACA-FV. If not, see <http://www.gnu.org/licenses/>.
24Class
25 reducedLaplacian
26Description
27 A reduced problem for the Laplace problem
28SourceFiles
29 reducedLaplacian.C
30\*---------------------------------------------------------------------------*/
31
36
37
38#ifndef ReducedLaplacian_H
39#define ReducedLaplacian_H
40
41#include "fvCFD.H"
42#include "IOmanip.H"
43#include "laplacianProblem.H"
44#include "ReducedProblem.H"
45#include <Eigen/Eigen>
46
47/*---------------------------------------------------------------------------*\
48 Class reducedLaplacian Declaration
49\*---------------------------------------------------------------------------*/
50
52
55{
56 private:
57
58 public:
59 // Constructors
62
65
67
70
72 Eigen::MatrixXd online_solution;
73
76
78 PtrList<volScalarField> Trec;
79
85 void solveOnline(Eigen::MatrixXd mu);
86
92 void reconstruct(fileName folder = "./ITHACAOutput/online_rec",
93 int printevery = 1);
94
95};
96
97
98// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99
100
101
102#endif
103
104
105
106
107
108
Header file of the reducedProblem class.
Class to implement a full order laplacian parametrized problem.
Class to solve the online reduced problem associated with a Laplace problem.
void reconstruct(fileName folder="./ITHACAOutput/online_rec", int printevery=1)
Function to recover the solution given the online solution.
PtrList< volScalarField > Trec
Reduced reconstructed Solution.
laplacianProblem * problem
Problem object.
reducedLaplacian()
Construct Null.
int count_online_solve
Counter for online sol.
Eigen::MatrixXd online_solution
Online solution.
Base class for the implementation of a reduced problem.
virtual void solveOnline()
Virtual Method to perform and online Solve.
Header file of the laplacianProblem class.