Loading...
Searching...
No Matches
ScalarTransport.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 ScalarTransport_H
37#define ScalarTransport_H
38
39#include "fvCFD.H"
40#include "simpleControl.H"
41#include "fvOptions.H"
42#include "reductionProblem.H"
43#include "UnsteadyProblem.H"
44#include "ITHACAstream.H"
45#include "ITHACAparameters.H"
46#include "Modes.H"
47
48// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49
50/*---------------------------------------------------------------------------*\
51 Class Scalar Transport Declaration
52\*---------------------------------------------------------------------------*/
53
55
58class ScalarTransport: public reductionProblem, public UnsteadyProblem
59{
60
61 public:
62 // Constructors
65
67 ScalarTransport(int argc, char* argv[]);
68
70
71 ITHACAparameters* para;
72
74 PtrList<volScalarField> Tfield;
75
77 volScalarModes Tmodes;
78
80 autoPtr<volScalarField> _T;
82 autoPtr<volVectorField> _U;
83
85 autoPtr<volScalarField> _T0;
86
88 mutable autoPtr<fvMesh> _mesh;
89
91 autoPtr<Time> _runTime;
92
94 autoPtr<surfaceScalarField> _phi;
95
97 autoPtr<surfaceScalarField> _phi0;
98
99 autoPtr<IOdictionary> _transportProperties;
100
101 autoPtr<dimensionedScalar> _nu;
103 PtrList<scalarField> LDUfield;
104
106 autoPtr<fv::options> _fvOptions;
107
109 autoPtr<simpleControl> _simple;
110
112 void truthSolve(word folder = "./ITHACAoutput/Offline/");
113
114 //----------------------------------------------------------------------------
117 void restart();
118
119};
120
121#endif
Header file of the ITHACAstream class, it contains the implementation of several methods for input ou...
Header file of the Modes class.
Class for the definition of some general parameters, the parameters must be defined from the file ITH...
autoPtr< surfaceScalarField > _phi
Flux.
autoPtr< Time > _runTime
Time.
autoPtr< volVectorField > _U
Velocity field.
autoPtr< fvMesh > _mesh
Mesh.
PtrList< volScalarField > Tfield
List of pointers used to form the T snapshots matrix.
void restart()
Function to restart the fields of the Burgers problem.
ScalarTransport()
Null constructor.
PtrList< scalarField > LDUfield
LDU matrices data.
autoPtr< volScalarField > _T0
Initial Temperature field (for restart purposes).
autoPtr< fv::options > _fvOptions
fvOptions
autoPtr< simpleControl > _simple
simpleControl
volScalarModes Tmodes
List of pointers used to form the Temperature modes.
autoPtr< surfaceScalarField > _phi0
Initial Flux (for restart purposes).
autoPtr< volScalarField > _T
Temperature field.
reductionProblem()
Construct Null.
void truthSolve()
Perform a TruthSolve.
Header file of the reductionProblem class.