noSlipFvPatchVectorField.H
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) 2016-2023 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::noSlipFvPatchVectorField
26 
27 Description
28  This boundary condition fixes the velocity to zero at walls and assumes
29  the walls are stationary.
30 
31  For stationary walls with sliding vertices, e.g. engine liners, the normal
32  component of the velocity is set from the wall face-flux to ensure
33  continuity.
34 
35 Usage
36  Example of the boundary condition specification:
37  \verbatim
38  <patchName>
39  {
40  type noSlip;
41  }
42  \endverbatim
43 
44 See also
45  Foam::fixedValueFvPatchVectorField
46 
47 SourceFiles
48  noSlipFvPatchVectorField.C
49 
50 \*---------------------------------------------------------------------------*/
51 
52 #ifndef noSlipFvPatchVectorField_H
53 #define noSlipFvPatchVectorField_H
54 
56 
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 
59 namespace Foam
60 {
61 
62 /*---------------------------------------------------------------------------*\
63  Class noSlipFvPatchVectorField Declaration
64 \*---------------------------------------------------------------------------*/
65 
67 :
68  public fixedValueFvPatchVectorField
69 {
70 
71 public:
72 
73  //- Runtime type information
74  TypeName("noSlip");
75 
76 
77  // Constructors
78 
79  //- Construct from patch and internal field
81  (
82  const fvPatch&,
84  );
85 
86  //- Construct from patch, internal field and dictionary
88  (
89  const fvPatch&,
91  const dictionary&
92  );
93 
94  //- Construct by mapping given noSlipFvPatchVectorField
95  // onto a new patch
97  (
99  const fvPatch&,
101  const fieldMapper&
102  );
103 
104  //- Disallow copy without setting internal field reference
106  (
108  ) = delete;
109 
110  //- Copy constructor setting internal field reference
112  (
115  );
116 
117  //- Construct and return a clone setting internal field reference
119  (
121  ) const
122  {
124  (
125  new noSlipFvPatchVectorField(*this, iF)
126  );
127  }
128 
129 
130  // Member Functions
131 
132  // Mapping functions
133 
134  //- Map the given fvPatchField onto this fvPatchField
135  virtual void map(const fvPatchVectorField&, const fieldMapper&);
136 
137 
138  // Evaluation functions
139 
140  //- Update the coefficients associated with the patch field
141  virtual void updateCoeffs();
142 
143 
144  //- Write
145  virtual void write(Ostream&) const;
146 };
147 
148 
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 
151 } // End namespace Foam
152 
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 
155 #endif
156 
157 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
Abstract base class for field mapping.
Definition: fieldMapper.H:48
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Definition: fvPatchField.H:88
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:64
This boundary condition fixes the velocity to zero at walls and assumes the walls are stationary.
virtual tmp< fvPatchVectorField > clone(const DimensionedField< vector, volMesh > &iF) const
Construct and return a clone setting internal field reference.
virtual void write(Ostream &) const
Write.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
noSlipFvPatchVectorField(const fvPatch &, const DimensionedField< vector, volMesh > &)
Construct from patch and internal field.
TypeName("noSlip")
Runtime type information.
virtual void map(const fvPatchVectorField &, const fieldMapper &)
Map the given fvPatchField onto this fvPatchField.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.