limitTemperature.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 2012-2017 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::fv::limitTemperature
26 
27 Description
28  Correction for temperature to apply limits between minimum and maximum
29  values.
30 
31 Usage
32  Example usage:
33  \verbatim
34  limitT
35  {
36  type limitTemperature;
37  active yes;
38 
39  selectionMode all;
40  min 200;
41  max 500;
42  }
43  \endverbatim
44 
45 SourceFiles
46  limitTemperature.C
47 
48 \*---------------------------------------------------------------------------*/
49 
50 #ifndef limitTemperature_H
51 #define limitTemperature_H
52 
53 #include "cellSetOption.H"
54 
55 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 
57 namespace Foam
58 {
59 namespace fv
60 {
61 
62 /*---------------------------------------------------------------------------*\
63  Class limitTemperature Declaration
64 \*---------------------------------------------------------------------------*/
65 
66 class limitTemperature
67 :
68  public cellSetOption
69 {
70 
71 protected:
72 
73  // Protected data
74 
75  //- Minimum temperature limit [K]
76  scalar Tmin_;
77 
78  //- Maximum temperature limit [K]
79  scalar Tmax_;
80 
81 
82 private:
83 
84  // Private Member Functions
85 
86  //- Disallow default bitwise copy construct
88 
89  //- Disallow default bitwise assignment
90  void operator=(const limitTemperature&);
91 
92 
93 public:
94 
95  //- Runtime type information
96  TypeName("limitTemperature");
97 
98 
99  // Constructors
100 
101  //- Construct from components
103  (
104  const word& name,
105  const word& modelType,
106  const dictionary& dict,
107  const fvMesh& mesh
108  );
109 
110 
111  //- Destructor
112  virtual ~limitTemperature()
113  {}
114 
115 
116  // Member Functions
117 
118  //- Read dictionary
119  virtual bool read(const dictionary& dict);
120 
121  //- Correct the energy field
122  virtual void correct(volScalarField& he);
123 };
124 
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 } // End namespace fv
129 } // End namespace Foam
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 #endif
134 
135 // ************************************************************************* //
volScalarField & he
Definition: YEEqn.H:51
dictionary dict
Correction for temperature to apply limits between minimum and maximum values.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
virtual void correct(volScalarField &he)
Correct the energy field.
const fvMesh & mesh() const
Return const access to the mesh database.
Definition: fvOptionI.H:34
scalar Tmin_
Minimum temperature limit [K].
A class for handling words, derived from string.
Definition: word.H:59
labelList fv(nPoints)
scalar Tmax_
Maximum temperature limit [K].
const word & name() const
Return const access to the source name.
Definition: fvOptionI.H:28
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
Cell-set options abtract base class. Provides a base set of controls, e.g.:
Definition: cellSetOption.H:69
virtual bool read(const dictionary &dict)
Read dictionary.
TypeName("limitTemperature")
Runtime type information.
virtual ~limitTemperature()
Destructor.
Namespace for OpenFOAM.