fixedWallHeatFluxFvPatchScalarField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v4
5 
6  OpenFOAM: The Open Source CFD Toolbox
7 
8  Copyright (C): 2011-2016 OpenFOAM Foundation
9 
10  OpenFOAM License:
11 
12  OpenFOAM is free software: you can redistribute it and/or modify it
13  under the terms of the GNU General Public License as published by
14  the Free Software Foundation, either version 3 of the License, or
15  (at your option) any later version.
16 
17  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
18  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20  for more details.
21 
22  You should have received a copy of the GNU General Public License
23  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
24 
25  Description:
26  Fixed traction boundary condition for the standard linear elastic,
27  fixed coefficient displacement equation.
28 
29 \*---------------------------------------------------------------------------*/
30 
31 #ifndef fixedWallHeatFluxFvPatchScalarField_H
32 #define fixedWallHeatFluxFvPatchScalarField_H
33 
34 #include "fvPatchFields.H"
35 #include "fixedGradientFvPatchFields.H"
36 #include "turbulenceModel.H"
37 
38 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 
40 namespace Foam
41 {
42 
43 /*---------------------------------------------------------------------------*\
44  Class fixedWallHeatFlux Declaration
45 \*---------------------------------------------------------------------------*/
46 
48  : public fixedGradientFvPatchScalarField
49 {
50 
51  // Private Data
52 
53  scalar heatFlux_;
54 
55  scalar nu_;
56 
57  scalar Pr_;
58 
59  scalar Prt_;
60 
61  scalar Cp_;
62 
63 public:
64  //- Runtime type information
65  TypeName("fixedWallHeatFlux");
66 
67  // Constructors
68 
69  //- Construct from patch and internal field
71  const fvPatch&,
72  const DimensionedField<scalar, volMesh>&);
73 
74  //- Construct from patch, internal field and dictionary
76  const fvPatch&,
77  const DimensionedField<scalar, volMesh>&,
78  const dictionary&);
79 
80  //- Construct by mapping given
81  // fixedWallHeatFluxFvPatchScalarField onto a new patch
84  const fvPatch&,
85  const DimensionedField<scalar, volMesh>&,
86  const fvPatchFieldMapper&);
87 
88  //- Construct as copy
91 
92  //- Construct as copy setting internal field reference
95  const DimensionedField<scalar, volMesh>&);
96 
97  // Member functions
98 
99  //- Update the coefficients associated with the patch field
100  virtual void updateCoeffs();
101 
102  //- Write
103  virtual void write(Ostream&) const;
104 };
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 } // End namespace Foam
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 #endif
113 
114 // ************************************************************************* //
Foam::fixedWallHeatFluxFvPatchScalarField::fixedWallHeatFluxFvPatchScalarField
fixedWallHeatFluxFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Definition: fixedWallHeatFluxFvPatchScalarField.C:39
Foam::fixedWallHeatFluxFvPatchScalarField::write
virtual void write(Ostream &) const
Definition: fixedWallHeatFluxFvPatchScalarField.C:110
Foam
Definition: checkGeometry.C:32
Foam::fixedWallHeatFluxFvPatchScalarField::TypeName
TypeName("fixedWallHeatFlux")
Foam::fixedWallHeatFluxFvPatchScalarField
Definition: fixedWallHeatFluxFvPatchScalarField.H:47
Foam::fixedWallHeatFluxFvPatchScalarField::updateCoeffs
virtual void updateCoeffs()
Definition: fixedWallHeatFluxFvPatchScalarField.C:88