greyDiffusiveViewFactorFixedValueFvPatchScalarField.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) 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 Class
25  Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField
26 
27 Group
28  grpThermoBoundaryConditions
29 
30 Description
31  This boundary condition provides a grey-diffuse condition for radiative
32  heat flux, \c Qr, for use with the view factor model
33 
34  \heading Patch usage
35 
36  \table
37  Property | Description | Required | Default value
38  Qro | external radiative heat flux | yes |
39  \endtable
40 
41  Example of the boundary condition specification:
42  \verbatim
43  myPatch
44  {
45  type greyDiffusiveRadiationViewFactor;
46  Qro uniform 0;
47  value uniform 0;
48  }
49  \endverbatim
50 
51 SeeAlso
52  Foam::radiation::radiationModel
53  Foam::radiation::viewFactor
54  Foam::radiationCoupledBase
55  Foam::fixedValueFvPatchField
56 
57 SourceFiles
58  greyDiffusiveViewFactorFixedValueFvPatchScalarField.C
59 
60 \*---------------------------------------------------------------------------*/
61 
62 #ifndef greyDiffusiveViewFactorFixedValueFvPatchScalarField_H
63 #define greyDiffusiveViewFactorFixedValueFvPatchScalarField_H
64 
66 
67 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
68 
69 namespace Foam
70 {
71 namespace radiation
72 {
73 /*---------------------------------------------------------------------------*\
74  Class greyDiffusiveViewFactorFixedValueFvPatchScalarField declaration
75 \*---------------------------------------------------------------------------*/
76 
77 class greyDiffusiveViewFactorFixedValueFvPatchScalarField
78 :
79  public fixedValueFvPatchScalarField
80 {
81  // Private data
82 
83  //- External radiative heat flux
85 
86  //- Activate solar load
87  bool solarLoad_;
88 
89 
90 public:
91 
92  //- Runtime type information
93  TypeName("greyDiffusiveRadiationViewFactor");
94 
95 
96  // Constructors
97 
98  //- Construct from patch and internal field
100  (
101  const fvPatch&,
103  );
104 
105  //- Construct from patch, internal field and dictionary
107  (
108  const fvPatch&,
110  const dictionary&
111  );
112 
113  //- Construct by mapping given a
114  // greyDiffusiveViewFactorFixedValueFvPatchScalarField onto a new patch
116  (
118  const fvPatch&,
120  const fvPatchFieldMapper&
121  );
122 
123  //- Construct as copy
125  (
127  );
128 
129  //- Construct and return a clone
130  virtual tmp<fvPatchScalarField> clone() const
131  {
133  (
135  );
136  }
137 
138  //- Construct as copy setting internal field reference
140  (
143  );
144 
145  //- Construct and return a clone setting internal field reference
147  (
149  ) const
150  {
152  (
154  (
155  *this,
156  iF
157  )
158  );
159  }
160 
161 
162  // Member functions
163 
164  // Access
165 
166  //- Return external + solar load radiative heat flux
167  tmp<scalarField> Qro() const;
168 
169 
170  // Evaluation functions
171 
172  //- Update the coefficients associated with the patch field
173  virtual void updateCoeffs();
174 
175 
176  // I-O
177 
178  //- Write
179  virtual void write(Ostream&) const;
180 };
181 
182 
183 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
184 
185 } // End namespace Foam
186 }
187 
188 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
189 
190 #endif
191 
192 // ************************************************************************* //
Foam::scalarField
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
Definition: primitiveFieldsFwd.H:48
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::Qro_
scalarField Qro_
External radiative heat flux.
Definition: greyDiffusiveViewFactorFixedValueFvPatchScalarField.H:93
Foam::Field
Pre-declare SubField and related Field type.
Definition: Field.H:57
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::TypeName
TypeName("greyDiffusiveRadiationViewFactor")
Runtime type information.
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::Qro
tmp< scalarField > Qro() const
Return external + solar load radiative heat flux.
Definition: greyDiffusiveViewFactorFixedValueFvPatchScalarField.C:145
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
radiation
autoPtr< radiation::radiationModel > radiation(radiation::radiationModel::New(T))
Foam::dictionary
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:137
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::clone
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Definition: greyDiffusiveViewFactorFixedValueFvPatchScalarField.H:139
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::updateCoeffs
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Definition: greyDiffusiveViewFactorFixedValueFvPatchScalarField.C:117
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::solarLoad_
bool solarLoad_
Activate solar load.
Definition: greyDiffusiveViewFactorFixedValueFvPatchScalarField.H:96
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField
This boundary condition provides a grey-diffuse condition for radiative heat flux,...
Definition: greyDiffusiveViewFactorFixedValueFvPatchScalarField.H:86
fixedValueFvPatchFields.H
Foam::fvPatchFieldMapper
Foam::fvPatchFieldMapper.
Definition: fvPatchFieldMapper.H:45
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:53
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::greyDiffusiveViewFactorFixedValueFvPatchScalarField
greyDiffusiveViewFactorFixedValueFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Definition: greyDiffusiveViewFactorFixedValueFvPatchScalarField.C:36
Foam::radiation::greyDiffusiveViewFactorFixedValueFvPatchScalarField::write
virtual void write(Ostream &) const
Write.
Definition: greyDiffusiveViewFactorFixedValueFvPatchScalarField.C:166
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:51