noRadiation.C
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) 2011-2015 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 \*---------------------------------------------------------------------------*/
25 
26 #include "noRadiation.H"
28 #include "fvMesh.H"
29 #include "Time.H"
30 #include "volFields.H"
32 
33 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34 
35 namespace Foam
36 {
37  namespace radiation
38  {
41  }
42 }
43 
44 
45 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
46 
48 :
50 {}
51 
52 
54 (
55  const dictionary& dict,
56  const volScalarField& T
57 )
58 :
60 {}
61 
62 
63 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
64 
66 {}
67 
68 
69 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
70 
72 {
73  return radiationModel::read();
74 }
75 
76 
78 {
79  // Do nothing
80 }
81 
82 
84 {
85  return tmp<volScalarField>
86  (
87  new volScalarField
88  (
89  IOobject
90  (
91  "Rp",
92  mesh_.time().timeName(),
93  mesh_,
96  ),
97  mesh_,
99  (
100  "Rp",
102  0.0
103  )
104  )
105  );
106 }
107 
108 
111 {
113  (
115  (
116  IOobject
117  (
118  "Ru",
119  mesh_.time().timeName(),
120  mesh_,
123  ),
124  mesh_,
126  (
127  "Ru", dimMass/dimLength/pow3(dimTime), 0.0
128  )
129  )
130  );
131 }
132 
133 
134 // ************************************************************************* //
volFields.H
Foam::radiation::noRadiation::Ru
tmp< DimensionedField< scalar, volMesh > > Ru() const
Source term component (constant)
Definition: noRadiation.C:110
Foam::IOobject
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:91
Foam::radiation::noRadiation::Rp
tmp< volScalarField > Rp() const
Source term component (for power of T^4)
Definition: noRadiation.C:83
Foam::dimLength
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:50
Foam::radiation::noRadiation::read
bool read()
Read radiationProperties dictionary.
Definition: noRadiation.C:71
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
noRadiation.H
Foam::IOobject::NO_WRITE
@ NO_WRITE
Definition: IOobject.H:118
Foam::dimTime
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
Foam::radiation::radiationModel::read
virtual bool read()=0
Read radiationProperties dictionary.
Definition: radiationModel.C:197
Foam::pow3
dimensionedScalar pow3(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:87
Foam::IOobject::NO_READ
@ NO_READ
Definition: IOobject.H:111
Foam::T
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Definition: FieldFieldFunctions.C:55
radiation
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam::dimensioned
Generic dimensioned Type class.
Definition: dimensionedScalarFwd.H:41
fvMesh.H
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::dimMass
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:49
Foam::radiation::defineTypeNameAndDebug
defineTypeNameAndDebug(cloudAbsorptionEmission, 0)
Foam::radiation::addToRadiationRunTimeSelectionTables
addToRadiationRunTimeSelectionTables(fvDOM)
T
const volScalarField & T
Definition: createFields.H:25
physicoChemicalConstants.H
Foam::radiation::radiationModel
Top level model for radiation modelling.
Definition: radiationModel.H:73
Foam::constant::physicoChemical::sigma
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m2/K4].
Foam::radiation::noRadiation::~noRadiation
virtual ~noRadiation()
Destructor.
Definition: noRadiation.C:65
Foam::GeometricField
Generic GeometricField class.
Definition: surfaceFieldsFwd.H:52
Foam::radiation::noRadiation::noRadiation
noRadiation(const noRadiation &)
Disallow default bitwise copy construct.
noRadiation
Dummy radiation model for 'none' option.
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:51
Foam::radiation::noRadiation::calculate
void calculate()
Solve radiation equation(s)
Definition: noRadiation.C:77