All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
mixedEnergyCalculatedTemperatureFvPatchScalarField.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2019 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 
27 
28 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
29 
30 namespace Foam
31 {
33  (
34  mixedEnergyCalculatedTemperatureFvPatchScalarField,
35  0
36  );
37 }
38 
39 
40 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
41 
44 (
45  const fvPatch& p,
47 )
48 :
49  calculatedFvPatchScalarField(p, iF),
50  heRefValue_(p.size()),
51  heRefGrad_(p.size()),
52  heValueFraction_(p.size())
53 {}
54 
55 
58 (
59  const fvPatch& p,
61  const dictionary& dict
62 )
63 :
64  calculatedFvPatchScalarField(p, iF),
65  heRefValue_(p.size()),
66  heRefGrad_(p.size()),
67  heValueFraction_(p.size())
68 {
69  calculatedFvPatchScalarField::evaluate();
70 }
71 
72 
75 (
77  const fvPatch& p,
79  const fvPatchFieldMapper& mapper
80 )
81 :
82  calculatedFvPatchScalarField(ptf, p, iF, mapper),
83  heRefValue_(mapper(ptf.heRefValue_)),
84  heRefGrad_(mapper(ptf.heRefGrad_)),
85  heValueFraction_(mapper(ptf.heValueFraction_))
86 {}
87 
88 
91 (
93 )
94 :
95  calculatedFvPatchScalarField(ptf),
96  heRefValue_(ptf.heRefValue_),
97  heRefGrad_(ptf.heRefGrad_),
98  heValueFraction_(ptf.heValueFraction_)
99 {}
100 
101 
104 (
107 )
108 :
109  calculatedFvPatchScalarField(ptf, iF),
110  heRefValue_(ptf.heRefValue_),
111  heRefGrad_(ptf.heRefGrad_),
112  heValueFraction_(ptf.heValueFraction_)
113 {}
114 
115 
116 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
117 
119 (
120  const fvPatchFieldMapper& m
121 )
122 {
123  calculatedFvPatchScalarField::autoMap(m);
124  m(heRefValue_, heRefValue_);
125  m(heRefGrad_, heRefGrad_);
126  m(heValueFraction_, heValueFraction_);
127 }
128 
129 
131 (
132  const fvPatchScalarField& ptf,
133  const labelList& addr
134 )
135 {
136  calculatedFvPatchScalarField::rmap(ptf, addr);
137 
139  refCast<const mixedEnergyCalculatedTemperatureFvPatchScalarField>(ptf);
140 
141  heRefValue_.rmap(mptf.heRefValue_, addr);
142  heRefGrad_.rmap(mptf.heRefGrad_, addr);
143  heValueFraction_.rmap(mptf.heValueFraction_, addr);
144 }
145 
146 
147 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:66
Foam::fvPatchFieldMapper.
virtual void rmap(const fvPatchScalarField &, const labelList &)
Reverse map the given fvPatchField onto this fvPatchField.
virtual label size() const
Return size.
Definition: fvPatch.H:155
defineTypeNameAndDebug(combustionModel, 0)
mixedEnergyCalculatedTemperatureFvPatchScalarField(const fvPatch &, const DimensionedField< scalar, volMesh > &)
Construct from patch and internal field.
Base class for temperature boundary conditions in which the parameters of the mixed energy condition ...
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void autoMap(const fvPatchFieldMapper &)
Map (and resize as needed) from self given a mapping object.
Namespace for OpenFOAM.