calculatedLagrangianPatchField.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::calculatedLagrangianPatchField
26 
27 Description
28  A calculated boundary condition for Lagrangian. This condition does not
29  provide any evaluation functionality. It simply retains the values that
30  were created as a result of the solution of the internal field.
31 
32 Usage
33  Example specification:
34  \verbatim
35  <LagrangianPatchName>
36  {
37  type calculated;
38  }
39  \endverbatim
40 
41 SourceFiles
42  calculatedLagrangianPatchField.C
43 
44 \*---------------------------------------------------------------------------*/
45 
46 #ifndef calculatedLagrangianPatchField_H
47 #define calculatedLagrangianPatchField_H
48 
49 #include "LagrangianPatchField.H"
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class calculatedLagrangianPatchField Declaration
58 \*---------------------------------------------------------------------------*/
59 
60 template<class Type>
62 :
63  public LagrangianPatchField<Type>
64 {
65 public:
66 
67  //- Runtime type information
68  TypeName("calculated");
69 
70 
71  // Constructors
72 
73  //- Construct from patch and internal field
75  (
76  const LagrangianPatch&,
77  const regIOobject&
78  );
79 
80  //- Construct from patch, internal field and dictionary
82  (
83  const LagrangianPatch&,
84  const regIOobject&,
85  const dictionary&
86  );
87 
88  //- Construct as copy
90  (
92  );
93 
94  //- Construct as copy setting the internal field reference
96  (
98  const regIOobject&
99  );
100 
101  //- Construct and return a clone
103  {
105  (
107  );
108  }
109 
110  //- Construct and return a clone setting the internal field reference
112  (
113  const regIOobject& iIo
114  ) const
115  {
117  (
119  );
120  }
121 };
122 
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 } // End namespace Foam
127 
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 
130 #ifdef NoRepository
132 #endif
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 #endif
137 
138 // ************************************************************************* //
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 calculated boundary condition for Lagrangian. This condition does not provide any evaluation functi...
virtual autoPtr< LagrangianPatchField< Type > > clone() const
Construct and return a clone.
calculatedLagrangianPatchField(const LagrangianPatch &, const regIOobject &)
Construct from patch and internal field.
TypeName("calculated")
Runtime type information.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:55
Namespace for OpenFOAM.