stickVelocityLagrangianPatchVectorField.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::stickVelocityLagrangianPatchVectorField
26 
27 Description
28  A stick velocity boundary condition. Particles that hit a patch with this
29  condition will stick to it and remain at the patch's velocity (stationary
30  if the mesh is not moving) from then on.
31 
32 Usage
33  Example specification:
34  \verbatim
35  <LagrangianPatchName>
36  {
37  type stickVelocity;
38  }
39  \endverbatim
40 
41 SourceFiles
42  stickVelocityLagrangianPatchVectorField.C
43 
44 \*---------------------------------------------------------------------------*/
45 
46 #ifndef stickVelocityLagrangianPatchVectorField_H
47 #define stickVelocityLagrangianPatchVectorField_H
48 
50 
51 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
52 
53 namespace Foam
54 {
55 
56 /*---------------------------------------------------------------------------*\
57  Class stickVelocityLagrangianPatchVectorField Declaration
58 \*---------------------------------------------------------------------------*/
59 
61 :
63 {
64 public:
65 
66  //- Runtime type information
67  TypeName("stickVelocity");
68 
69 
70  // Constructors
71 
72  //- Inherit constructors
73  using
74  cloudVelocityLagrangianPatchVectorField::
75  cloudVelocityLagrangianPatchVectorField;
76 
77  //- Construct and return a clone
79  {
81  (
83  );
84  }
85 
86  //- Construct and return a clone setting the internal field reference
88  (
89  const regIOobject& iIo
90  ) const
91  {
93  (
95  (
96  *this,
97  iIo
98  )
99  );
100  }
101 
102 
103  // Member Functions
104 
105  //- Evaluate the patch field
106  virtual void evaluate
107  (
110  );
111 
112  //- Return the state after interaction with this patch
113  virtual LagrangianState state() const;
114 };
115 
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 } // End namespace Foam
120 
121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 
123 #endif
124 
125 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Buffers for inter-processor communications streams (UOPstream, UIPstream).
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
Base class for cloud velocity conditions. Accessed by the cloud velocity Lagrangian patch....
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:55
A stick velocity boundary condition. Particles that hit a patch with this condition will stick to it ...
virtual autoPtr< LagrangianPatchVectorField > clone() const
Construct and return a clone.
TypeName("stickVelocity")
Runtime type information.
virtual LagrangianState state() const
Return the state after interaction with this patch.
virtual void evaluate(PstreamBuffers &, const LagrangianScalarInternalDynamicField &fraction)
Evaluate the patch field.
Namespace for OpenFOAM.
LagrangianState
Lagrangian state enumeration.