Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::ignoreFaPatchField
28
29Description
30 A boundary condition for invalid edges which should be ignored.
31 Currently functionally identical to a zero-gradient condition.
32
33Usage
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
55SourceFiles
56 ignoreFaPatchField.C
57
58\*---------------------------------------------------------------------------*/
59
60#ifndef Foam_ignoreFaPatchField_H
61#define Foam_ignoreFaPatchField_H
62
64
65// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
66
67namespace Foam
68{
69
70/*---------------------------------------------------------------------------*\
71 Class ignoreFaPatch Declaration
72\*---------------------------------------------------------------------------*/
73
74template<class Type>
76:
77 public zeroGradientFaPatchField<Type>
78{
79public:
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 as copy setting internal field reference
119 (
122 );
123
124 //- Return clone
125 virtual tmp<faPatchField<Type>> clone() const
126 {
127 return faPatchField<Type>::Clone(*this);
128 }
129
130 //- Clone with an internal field reference
132 (
134 ) const
135 {
136 return faPatchField<Type>::Clone(*this, iF);
137 }
138
139
140 //- Destructor
141 virtual ~ignoreFaPatchField() = default;
142};
143
144
145// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147} // End namespace Foam
148
149// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150
151#ifdef NoRepository
152# include "ignoreFaPatchField.C"
153#endif
155// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
156
157#endif
158
159// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
A FieldMapper for finite-area patch fields.
static tmp< faPatchField< Type > > Clone(const DerivedPatchField &pf)
Clone a patch field with its own internal field reference.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Definition faPatch.H:76
A boundary condition for invalid edges which should be ignored. Currently functionally identical to a...
virtual tmp< faPatchField< Type > > clone() const
Return clone.
ignoreFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
virtual ~ignoreFaPatchField()=default
Destructor.
TypeName("ignore")
Runtime type information.
virtual tmp< faPatchField< Type > > clone(const DimensionedField< Type, areaMesh > &iF) const
Clone with an internal field reference.
A class for managing temporary objects.
Definition tmp.H:75
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
zeroGradientFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68