/*---------------------------------------------------------------------------*\ ██╗████████╗██╗ ██╗ █████╗ ██████╗ █████╗ ███████╗██╗ ██╗ ██║╚══██╔══╝██║ ██║██╔══██╗██╔════╝██╔══██╗ ██╔════╝██║ ██║ ██║ ██║ ███████║███████║██║ ███████║█████╗█████╗ ██║ ██║ ██║ ██║ ██╔══██║██╔══██║██║ ██╔══██║╚════╝██╔══╝ ╚██╗ ██╔╝ ██║ ██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ╚████╔╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═══╝ * In real Time Highly Advanced Computational Applications for Finite Volumes * Copyright (C) 2017 by the ITHACA-FV authors ------------------------------------------------------------------------------- License This file is part of ITHACA-FV ITHACA-FV is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. ITHACA-FV is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with ITHACA-FV. If not, see . Description Example of the hyperreduction of the Smagorinsky term in a ROM SourceFiles 27SmagorinskyHyperreduction.C \*---------------------------------------------------------------------------*/ #include "27Offline.H" #include "27Online.H" /*---------------------------------------------------------------------------*\ Starting the MAIN \*---------------------------------------------------------------------------*/ int main(int argc, char* argv[]) { tutorial27_offline offlinePart(argc, argv); // Compute POD on velocity and on the hyperreduced term. Then select the magic points offlinePart.decompose(); // Compute the matrix for fast online prediction of the nonpolynomial term offlinePart.project(); tutorial27_online onlinePart(offlinePart.m_parameters); // Perfom the prediction on the test time steps and compare the results to the reference onlinePart.prediction(); }