Loading...
Searching...
No Matches
27Offline.H
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/>.
24Description
25 Example of the hyperreduction of the Smagorinsky term in a ROM
26SourceFiles
27 27SmagorinskyHyperreduction.C
28\*---------------------------------------------------------------------------*/
29
30#include "ITHACAutilities.H"
31#include <Eigen/Eigen>
33#include "hyperReduction.templates.H"
34
35
36class tutorial27_offline
37{
38 public:
39
40 StoredParameters* m_parameters;
41 UnsteadyNSTurb* m_UnsteadyNSTurb;
42
43 volVectorField* meanU;
44 label nModesU;
45 PtrList<volVectorField> spatialModesU;
46
47 Eigen::MatrixXd covMatrixU;
48 Eigen::MatrixXd temporalModesU;
49 Eigen::MatrixXd temporalModesUSimulation;
50
51 word interpolatedField;
52 label nModesHR;
53 label nMagicPoints;
54 List<int> magicPoints;
55
56
57 tutorial27_offline(int argc, char* argv[]);
58
59 // Compute POD on velocity and on the hyperreduced term. Then select the magic points
60 void decompose();
61
62 // Compute the matrix for fast online prediction of the nonpolynomial term
63 void project();
64
65};
Header file of the ITHACAutilities namespace.
Header file of the TurbDiffusionHyperreduction class.
Class that contains all parameters of the stochastic POD.
Implementation of a parametrized full order unsteady NS problem and preparation of the reduced matr...