mappedFixedPushedInternalValueFvPatchField.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-2016 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::mappedFixedPushedInternalValueFvPatchField
26 
27 Group
28  grpGenericBoundaryConditions grpCoupledBoundaryConditions
29 
30 Description
31  This boundary condition maps the boundary values of a neighbour patch
32  field to the boundary and internal cell values of *this.
33 
34 Usage
35  \table
36  Property | Description | Required | Default value
37  fieldName | name of field to be mapped | no | this field name
38  setAverage | flag to activate setting of average value | yes |
39  average | average value to apply if \c setAverage = yes | yes |
40  \endtable
41 
42  Example of the boundary condition specification:
43  \verbatim
44  <patchName>
45  {
46  type mappedFixedPushedInternalValue;
47  fieldName T;
48  setAverage no;
49  average 0;
50  value uniform 0;
51  }
52  \endverbatim
53 
54 Note
55  This boundary condition can only be applied to patches that are of
56  the \c mappedPolyPatch type.
57 
58 See also
59  Foam::mappedPatchBase
60  Foam::mappedPolyPatch
61  Foam::mappedFvPatch
62  Foam::mappedFixedValueFvPatchField
63 
64 SourceFiles
65  mappedFixedPushedInternalValueFvPatchField.C
66 
67 \*---------------------------------------------------------------------------*/
68 
69 #ifndef mappedFixedPushedInternalValueFvPatchField_H
70 #define mappedFixedPushedInternalValueFvPatchField_H
71 
73 
74 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
75 
76 namespace Foam
77 {
78 
79 /*---------------------------------------------------------------------------*\
80  Class mappedFixedPushedInternalValueFvPatchField Declaration
81 \*---------------------------------------------------------------------------*/
82 
83 template<class Type>
84 class mappedFixedPushedInternalValueFvPatchField
85 :
86  public mappedFixedValueFvPatchField<Type>
87 {
88 
89 public:
90 
91  //- Runtime type information
92  TypeName("mappedFixedPushedInternalValue");
93 
94 
95  // Constructors
96 
97  //- Construct from patch and internal field
99  (
100  const fvPatch&,
101  const DimensionedField<Type, volMesh>&
102  );
104  //- Construct from patch, internal field and dictionary
106  (
107  const fvPatch&,
109  const dictionary&
110  );
111 
112  //- Construct by mapping given a
113  // mappedFixedPushedInternalValueFvPatchField onto a new patch
115  (
117  const fvPatch&,
119  const fvPatchFieldMapper&
120  );
121 
122  //- Construct as copy
124  (
126  );
127 
128  //- Construct and return a clone
129  virtual tmp<fvPatchField<Type>> clone() const
130  {
131  return tmp<fvPatchField<Type>>
132  (
134  (
135  *this
136  )
137  );
138  }
139 
140  //- Construct as copy setting internal field reference
142  (
145  );
146 
147  //- Construct and return a clone setting internal field reference
149  (
151  ) const
152  {
153  return tmp<fvPatchField<Type>>
154  (
156  (
157  *this,
158  iF
159  )
160  );
161  }
162 
163 
164  // Member functions
165 
166  // Evaluation functions
167 
168  //- Update the coefficients associated with the patch field
169  virtual void updateCoeffs();
170 
171  //- Write
172  virtual void write(Ostream&) const;
173 };
174 
175 
176 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177 
178 } // End namespace Foam
179 
180 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
181 
182 #ifdef NoRepository
184 #endif
185 
186 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
187 
188 #endif
189 
190 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
mappedFixedPushedInternalValueFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
Foam::fvPatchFieldMapper.
This boundary condition maps the boundary values of a neighbour patch field to the boundary and inter...
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
TypeName("mappedFixedPushedInternalValue")
Runtime type information.
virtual tmp< fvPatchField< Type > > clone() const
Construct and return a clone.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A class for managing temporary objects.
Definition: PtrList.H:54
Namespace for OpenFOAM.