Loading...
Searching...
No Matches
Burgers.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-------------------------------------------------------------------------------
12
13 License
14 This file is part of ITHACA-FV
15
16 ITHACA-FV is free software: you can redistribute it and/or modify
17 it under the terms of the GNU Lesser General Public License as published by
18 the Free Software Foundation, either version 3 of the License, or
19 (at your option) any later version.
20
21 ITHACA-FV is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU Lesser General Public License for more details.
25
26 You should have received a copy of the GNU Lesser General Public License
27 along with ITHACA-FV. If not, see <http://www.gnu.org/licenses/>.
28
29\*---------------------------------------------------------------------------*/
30
35
36#ifndef burgers_H
37#define burgers_H
38#include "fvCFD.H"
39#include "simpleControl.H"
40#include "fvOptions.H"
41#include "reductionProblem.H"
42#include "UnsteadyProblem.H"
43#include "ITHACAstream.H"
44#include "ITHACAparameters.H"
45#include "Modes.H"
46
47// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48
49/*---------------------------------------------------------------------------*\
50 Class burgers Declaration
51\*---------------------------------------------------------------------------*/
52
54
58{
59
60 public:
61 // Constructors
63 Burgers();
64
66 Burgers(int argc, char* argv[]);
67
69
71
73 PtrList<volVectorField> Ufield;
74
77
79 autoPtr<volVectorField> _U;
80
82 autoPtr<volVectorField> _U0;
83
85 mutable autoPtr<fvMesh> _mesh;
86
88 autoPtr<Time> _runTime;
89
91 autoPtr<surfaceScalarField> _phi;
92
94 autoPtr<surfaceScalarField> _phi0;
95
96 autoPtr<IOdictionary> _transportProperties;
97
98 autoPtr<dimensionedScalar> _nu;
99
101 autoPtr<fv::options> _fvOptions;
102
104 autoPtr<simpleControl> _simple;
105
107 void truthSolve(word folder = "./ITHACAoutput/Offline/");
108
109 //----------------------------------------------------------------------------
112 void restart();
113
114};
115
116#endif
Header file of the ITHACAstream class, it contains the implementation of several methods for input ou...
Header file of the Modes class.
Implementation of a parametrized full order Burgers and preparation of the the reduced matrices for...
Definition Burgers.H:58
autoPtr< fvMesh > _mesh
Mesh.
Definition Burgers.H:85
autoPtr< fv::options > _fvOptions
fvOptions
Definition Burgers.H:101
autoPtr< volVectorField > _U
Velocity field.
Definition Burgers.H:79
PtrList< volVectorField > Ufield
List of pointers used to form the velocity snapshots matrix.
Definition Burgers.H:73
autoPtr< dimensionedScalar > _nu
Definition Burgers.H:98
Burgers()
Null constructor.
Definition Burgers.C:38
~Burgers()
Definition Burgers.H:68
ITHACAparameters * para
Definition Burgers.H:70
autoPtr< surfaceScalarField > _phi0
Initial Flux (for restart purposes)
Definition Burgers.H:94
autoPtr< Time > _runTime
Time.
Definition Burgers.H:88
autoPtr< surfaceScalarField > _phi
Flux.
Definition Burgers.H:91
autoPtr< IOdictionary > _transportProperties
Definition Burgers.H:96
void restart()
Function to restart the fields of the Burgers problem.
Definition Burgers.C:132
autoPtr< simpleControl > _simple
simpleControl
Definition Burgers.H:104
autoPtr< volVectorField > _U0
Initial Velocity field (for restart purposes)
Definition Burgers.H:82
volVectorModes Umodes
List of pointers used to form the velocity modes.
Definition Burgers.H:76
Class for the definition of some general parameters, the parameters must be defined from the file ITH...
A general class for the implementation of a full order parametrized problem.
void truthSolve()
Perform a TruthSolve.
Header file of the reductionProblem class.