nonConformalErrorLagrangianPatchField.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) 2025 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::nonConformalErrorLagrangianPatchField
26 
27 Description
28  A non-conformal error boundary condition for Lagrangian
29 
30 Usage
31  Example specification:
32  \verbatim
33  <LagrangianPatchName>
34  {
35  type nonConformalError;
36  }
37  \endverbatim
38 
39 SourceFiles
40  nonConformalErrorLagrangianPatchField.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef nonConformalErrorLagrangianPatchField_H
45 #define nonConformalErrorLagrangianPatchField_H
46 
47 #include "LagrangianPatchField.H"
49 
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 
52 namespace Foam
53 {
54 
55 /*---------------------------------------------------------------------------*\
56  Class nonConformalErrorLagrangianPatchField Declaration
57 \*---------------------------------------------------------------------------*/
58 
59 template<class Type>
61 :
62  public LagrangianPatchField<Type>
63 {
64 private:
65 
66  // Private Data
67 
68  //- Reference to the nonConformalError patch
69  const nonConformalErrorLagrangianPatch& nonConformalErrorPatch_;
70 
71 
72 public:
73 
74  //- Runtime type information
75  TypeName("nonConformalError");
76 
77 
78  // Constructors
79 
80  //- Construct from patch and internal field
82  (
83  const LagrangianPatch&,
84  const regIOobject&
85  );
86 
87  //- Construct from patch, internal field and dictionary
89  (
90  const LagrangianPatch&,
91  const regIOobject&,
92  const dictionary&
93  );
94 
95  //- Construct as copy
97  (
99  );
100 
101  //- Construct as copy setting the internal field reference
103  (
105  const regIOobject&
106  );
107 
108  //- Construct and return a clone
110  {
112  (
114  (
115  *this
116  )
117  );
118  }
119 
120  //- Construct and return a clone setting the internal field reference
122  (
123  const regIOobject& iIo
124  ) const
125  {
127  (
129  (
130  *this,
131  iIo
132  )
133  );
134  }
135 };
136 
137 
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 
140 } // End namespace Foam
141 
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 
144 #ifdef NoRepository
146 #endif
147 
148 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 
150 #endif
151 
152 // ************************************************************************* //
Base class for Lagrangian boundary conditions.
Base class for Lagrangian patches.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
A non-conformal error boundary condition for Lagrangian.
TypeName("nonConformalError")
Runtime type information.
virtual autoPtr< LagrangianPatchField< Type > > clone() const
Construct and return a clone.
nonConformalErrorLagrangianPatchField(const LagrangianPatch &, const regIOobject &)
Construct from patch and internal field.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:55
Namespace for OpenFOAM.