wallHeatFluxFvPatchScalarField.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) 1991-2008 OpenCFD Ltd.
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 the
13  Free Software Foundation; either version 2 of the License, or (at your
14  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, write to the Free Software Foundation,
23  Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24 
25 Class
26  Foam::wallHeatFluxFvPatchScalarField
27 
28 Description
29  Foam::wallHeatFluxFvPatchScalarField
30 
31 SourceFiles
32  wallHeatFluxFvPatchScalarField.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef wallHeatFluxFvPatchScalarFields_H
37 #define wallHeatFluxFvPatchScalarFields_H
38 
39 #include "fvPatchFields.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class wallHeatFluxFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
53  public fixedGradientFvPatchScalarField
54 {
55  // Private data
56 
59 
60 public:
61 
62  //- Runtime type information
63  TypeName("wallHeatFlux");
64 
65 
66  // Constructors
67 
68  //- Construct from patch and internal field
70  (
71  const fvPatch&,
73  );
74 
75  //- Construct from patch, internal field and dictionary
77  (
78  const fvPatch&,
80  const dictionary&
81  );
82 
83  //- Construct by mapping given wallHeatFluxFvPatchScalarField onto
84  // a new patch
86  (
88  const fvPatch&,
90  const fvPatchFieldMapper&
91  );
92 
93  //- Construct as copy
95  (
97  );
98 
99  //- Construct and return a clone
100  virtual tmp<fvPatchScalarField> clone() const
101  {
103  (
105  );
106  }
107 
108  //- Construct as copy setting internal field reference
110  (
113  );
114 
115  //- Construct and return a clone setting internal field reference
117  (
119  ) const
120  {
122  (
123  new wallHeatFluxFvPatchScalarField(*this, iF)
124  );
125  }
126 
127 
128  // Member functions
129 
130  //- Update the coefficients associated with the patch field
131  virtual void updateCoeffs();
132 
133  //- Write
134  virtual void write(Ostream&) const;
135 };
136 
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 } // End namespace Foam
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 #endif
145 
146 // ************************************************************************* //
Foam::wallHeatFluxFvPatchScalarField::clone
virtual tmp< fvPatchScalarField > clone() const
Construct and return a clone.
Definition: wallHeatFluxFvPatchScalarField.H:97
Foam::wallHeatFluxFvPatchScalarField
Definition: wallHeatFluxFvPatchScalarField.H:48
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:118
Foam::wallHeatFluxFvPatchScalarField::TypeName
TypeName("wallHeatFlux")
Runtime type information.
Foam::Field
Pre-declare SubField and related Field type.
Definition: Field.H:57
Foam::wallHeatFluxFvPatchScalarField::write
virtual void write(Ostream &) const
Write.
Definition: wallHeatFluxFvPatchScalarField.C:207
Foam::fvPatch
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
Foam::wallHeatFluxFvPatchScalarField::updateCoeffs
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Definition: wallHeatFluxFvPatchScalarField.C:154
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
fixedGradientFvPatchFields.H
Foam::wallHeatFluxFvPatchScalarField::wallHeatFluxFvPatchScalarField
wallHeatFluxFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Definition: wallHeatFluxFvPatchScalarField.C:39
fvPatchFields.H
Foam::wallHeatFluxFvPatchScalarField::alphaWall_
scalarField alphaWall_
Definition: wallHeatFluxFvPatchScalarField.H:54
Foam::wallHeatFluxFvPatchScalarField::heatFlux_
scalarField heatFlux_
Definition: wallHeatFluxFvPatchScalarField.H:55
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::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:51