basicSymmetryPointPatchField.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) 2011-2017 OpenFOAM Foundation
9  Copyright (C) 2026 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::basicSymmetryPointPatchField
29 
30 Description
31  A Symmetry boundary condition for pointField
32 
33 SourceFiles
34  basicSymmetryPointPatchField.txx
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef Foam_basicSymmetryPointPatchField_H
39 #define Foam_basicSymmetryPointPatchField_H
40 
41 #include "pointPatchField.H"
42 #include "symmetryPointPatch.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class basicSymmetryPointPatchField Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 template<class Type>
55 :
56  public pointPatchField<Type>
57 {
60 
61 public:
62 
63  // Constructors
64 
65  //- Construct from patch and internal field
67  (
68  const pointPatch&,
70  );
71 
72  //- Construct from patch, internal field and dictionary
74  (
75  const pointPatch&,
77  const dictionary&
78  );
79 
80  //- Construct by mapping onto a new patch
82  (
83  const this_bctype&,
84  const pointPatch&,
87  );
88 
89  //- Construct as copy setting internal field reference
91  (
92  const this_bctype&,
94  );
95 
96  //- No copy without an internal field
97  [[deprecated("2026-03: soon = delete")]]
99  #ifdef Foam_pointPatchField_copyConstruct
100  : this_bctype(pfld, pfld.internalField()) {}
101  #else
102  = delete;
103  #endif
104 
105  //- Clone with an internal field reference
107  (
109  ) const
110  {
111  return pointPatchField<Type>::Clone(*this, iF);
112  }
113 
115  // Member Functions
116 
117  //- Update the patch field
118  virtual void evaluate
119  (
121  );
122 
123 
124  // Member Operators
125 
126  //- Inherit assignment
128 };
129 
130 
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 
133 } // End namespace Foam
134 
135 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 
137 #ifdef NoRepository
138  #include "basicSymmetryPointPatchField.txx"
139 #endif
140 
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 
143 #endif
144 
145 // ************************************************************************* //
commsTypes
Communications types.
Definition: UPstream.H:81
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:130
A Symmetry boundary condition for pointField.
Foam::pointPatchFieldMapper.
basicSymmetryPointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
virtual autoPtr< pointPatchField< Type > > clone() const
No clone without an internal field reference.
friend Ostream & operator(Ostream &, const pointPatchField< Type > &)
Abstract base class for point-mesh patch fields.
static autoPtr< pointPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::buffered)
Update the patch field.
Basic pointPatch represents a set of points from the mesh.
Definition: pointPatch.H:64
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Definition: HashPtrTable.H:48
"buffered" : (MPI_Bsend, MPI_Recv)
const DimensionedField< Type, pointMesh > & internalField() const noexcept
Return const-reference to the dimensioned internal field.
Namespace for OpenFOAM.