ignoreFaPatchField.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 | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2023 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::ignoreFaPatchField
28 
29 Description
30  A boundary condition for invalid edges which should be ignored.
31  Currently functionally identical to a zero-gradient condition.
32 
33 Usage
34  Example of the boundary condition specification:
35  \verbatim
36  <patchName>
37  {
38  // Mandatory entries (unmodifiable)
39  type ignore;
40 
41  // Mandatory/Optional (inherited) entries
42  ...
43  }
44  \endverbatim
45 
46  where the entries mean:
47  \table
48  Property | Description | Type | Reqd | Dflt
49  type | Type name: ignore | word | yes | -
50  \endtable
51 
52  The inherited entries are elaborated in:
53  - \link faPatchFields.H \endlink
54 
55 SourceFiles
56  ignoreFaPatchField.C
57 
58 \*---------------------------------------------------------------------------*/
59 
60 #ifndef Foam_ignoreFaPatchField_H
61 #define Foam_ignoreFaPatchField_H
62 
64 
65 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
66 
67 namespace Foam
68 {
69 
70 /*---------------------------------------------------------------------------*\
71  Class ignoreFaPatch Declaration
72 \*---------------------------------------------------------------------------*/
73 
74 template<class Type>
75 class ignoreFaPatchField
76 :
77  public zeroGradientFaPatchField<Type>
78 {
79 public:
80 
81  //- Runtime type information
82  TypeName("ignore");
83 
84 
85  // Constructors
86 
87  //- Construct from patch and internal field
89  (
90  const faPatch&,
92  );
93 
94  //- Construct from patch, internal field and dictionary
96  (
97  const faPatch&,
99  const dictionary&
100  );
101 
102  //- Construct by mapping the given patch field onto a new patch
104  (
106  const faPatch&,
108  const faPatchFieldMapper&
109  );
110 
111  //- Construct as copy
113  (
115  );
116 
117  //- Construct and return a clone
118  virtual tmp<faPatchField<Type>> clone() const
119  {
120  return tmp<faPatchField<Type>>
121  (
122  new ignoreFaPatchField<Type>(*this)
123  );
124  }
125 
126  //- Construct as copy setting internal field reference
128  (
131  );
132 
133  //- Construct and return a clone setting internal field reference
135  (
137  ) const
138  {
139  return tmp<faPatchField<Type>>
140  (
141  new ignoreFaPatchField<Type>(*this, iF)
142  );
143  }
144 
145 
146  //- Destructor
147  virtual ~ignoreFaPatchField() = default;
148 };
149 
150 
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
152 
153 } // End namespace Foam
154 
155 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156 
157 #ifdef NoRepository
159 #endif
160 
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 
163 #endif
164 
165 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
A boundary condition for invalid edges which should be ignored. Currently functionally identical to a...
virtual ~ignoreFaPatchField()=default
Destructor.
virtual tmp< faPatchField< Type > > clone() const
Construct and return a clone.
ignoreFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Definition: faPatch.H:72
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: areaFieldsFwd.H:42
A class for managing temporary objects.
Definition: HashPtrTable.H:50
A FieldMapper for finite-area patch fields.
TypeName("ignore")
Runtime type information.
Namespace for OpenFOAM.