mappedVelocityFluxFixedValueFvPatchField.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::mappedVelocityFluxFixedValueFvPatchField
26 
27 Group
28  grpInletBoundaryConditions grpCoupledBoundaryConditions
29 
30 Description
31  This boundary condition maps the velocity and flux from a neighbour patch
32  to this patch
33 
34 Usage
35  \table
36  Property | Description | Required | Default value
37  phi | flux field name | no | phi
38  \endtable
39 
40  Example of the boundary condition specification:
41  \verbatim
42  <patchName>
43  {
44  type mappedVelocityFlux;
45  phi phi;
46  value uniform 0; // place holder
47  }
48  \endverbatim
49 
50  The underlying sample mode should be set to \c nearestPatchFace or
51  \c nearestFace
52 
53 Note
54  This boundary condition can only be applied to patches that are of
55  the \c mappedPolyPatch type.
56 
57 See also
58  Foam::mappedPatchBase
59  Foam::mappedPolyPatch
60  Foam::mappedFvPatch
61  Foam::fixedValueFvPatchVectorField
62 
63 SourceFiles
64  mappedVelocityFluxFixedValueFvPatchField.C
65 
66 \*---------------------------------------------------------------------------*/
67 
68 #ifndef mappedVelocityFluxFixedValueFvPatchField_H
69 #define mappedVelocityFluxFixedValueFvPatchField_H
70 
72 #include "mappedFvPatch.H"
73 
74 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
75 
76 namespace Foam
77 {
78 
79 /*---------------------------------------------------------------------------*\
80  Class mappedVelocityFluxFixedValueFvPatch Declaration
81 \*---------------------------------------------------------------------------*/
82 
83 class mappedVelocityFluxFixedValueFvPatchField
84 :
85  public fixedValueFvPatchVectorField
86 {
87  // Private data
88 
89  //- Name of flux field
90  word phiName_;
91 
92 public:
93 
94  //- Runtime type information
95  TypeName("mappedVelocityFlux");
96 
97 
98  // Constructors
99 
100  //- Construct from patch and internal field
102  (
103  const fvPatch&,
105  );
106 
107  //- Construct from patch, internal field and dictionary
109  (
110  const fvPatch&,
112  const dictionary&
113  );
114 
115  //- Construct by mapping given
116  // mappedVelocityFluxFixedValueFvPatchField
117  // onto a new patch
119  (
121  const fvPatch&,
123  const fvPatchFieldMapper&
124  );
125 
126  //- Construct as copy
128  (
130  );
131 
132  //- Construct and return a clone
133  virtual tmp<fvPatchVectorField> clone() const
134  {
136  (
138  );
139  }
140 
141  //- Construct as copy setting internal field reference
143  (
146  );
147 
148  //- Construct and return a clone setting internal field reference
150  (
152  ) const
153  {
155  (
157  );
158  }
160 
161  // Member functions
162 
163  // Evaluation functions
164 
165  //- Update the coefficients associated with the patch field
166  virtual void updateCoeffs();
167 
168  //- Write
169  virtual void write(Ostream&) const;
170 };
171 
172 
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 
175 } // End namespace Foam
176 
177 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178 
179 #endif
180 
181 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
mappedVelocityFluxFixedValueFvPatchField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
This boundary condition maps the velocity and flux from a neighbour patch to this patch...
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:61
Foam::fvPatchFieldMapper.
virtual tmp< fvPatchVectorField > clone() const
Construct and return a clone.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A class for managing temporary objects.
Definition: PtrList.H:53
TypeName("mappedVelocityFlux")
Runtime type information.
Namespace for OpenFOAM.