radiation.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::fv::radiation
28 
29 Description
30  Calculates and applies the radiation source to the energy equation.
31 
32 Usage
33  Example usage:
34  \verbatim
35  radiationCoeffs
36  {
37  fields (h); // Name of energy field
38  }
39  \endverbatim
40 
41 SourceFiles
42  radiation.C
43 
44 \*---------------------------------------------------------------------------*/
45 
46 #ifndef radiation_H
47 #define radiation_H
48 
49 #include "fvOption.H"
51 #include "radiationModel.H"
52 
53 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
54 
55 namespace Foam
56 {
57 namespace fv
58 {
59 
60 /*---------------------------------------------------------------------------*\
61  Class radiation Declaration
62 \*---------------------------------------------------------------------------*/
63 
64 class radiation
65 :
66  public option
67 {
68  // Private data
69 
70  //- The radiation model pointer
72 
73 
74  // Private Member Functions
75 
76  //- No copy construct
77  radiation(const radiation&) = delete;
78 
79  //- No copy assignment
80  void operator=(const radiation&) = delete;
81 
82 
83 public:
84 
85  //- Runtime type information
86  TypeName("radiation");
87 
88 
89  // Constructors
90 
91  //- Construct from explicit source name and mesh
92  radiation
93  (
94  const word& sourceName,
95  const word& modelType,
96  const dictionary& dict,
97  const fvMesh& mesh
98  );
99 
100 
101  // Member Functions
102 
103  // Evaluate
104 
105  //- Add explicit contribution to compressible momentum equation
106  virtual void addSup
107  (
108  const volScalarField& rho,
109  fvMatrix<scalar>& eqn,
110  const label fieldi
111  );
112 
113 
114  // IO
115 
116  //- Read source dictionary
117  virtual bool read(const dictionary& dict);
118 };
119 
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 } // End namespace fv
124 } // End namespace Foam
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 #endif
129 
130 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:62
Foam::fv::radiation::addSup
virtual void addSup(const volScalarField &rho, fvMatrix< scalar > &eqn, const label fieldi)
Add explicit contribution to compressible momentum equation.
Definition: radiation.C:83
Foam::fv::radiation::TypeName
TypeName("radiation")
Runtime type information.
rho
rho
Definition: readInitialConditions.H:88
Foam::fv::option
Finite volume options abstract base class. Provides a base set of controls, e.g.:
Definition: fvOption.H:69
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:121
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:84
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::fv::radiation
Calculates and applies the radiation source to the energy equation.
Definition: radiation.H:63
fv
labelList fv(nPoints)
uniformDimensionedFields.H
Foam::autoPtr< Foam::radiation::radiationModel >
Foam::fv::radiation::read
virtual bool read(const dictionary &dict)
Read source dictionary.
Definition: radiation.C:76
fvOption.H
Foam::fv::option::mesh
const fvMesh & mesh() const
Return const access to the mesh database.
Definition: fvOptionI.H:36
Foam::fvMatrix
A special matrix type and solver, designed for finite volume solutions of scalar equations....
Definition: fvPatchField.H:76
Foam::GeometricField< scalar, fvPatchField, volMesh >
radiationModel.H