cloudFunctionObjectUList.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::cloudFunctionObjectUList
26 
27 Description
28  List of references to the cloud function objects. Designed to be
29  constructed temporarily for the scope of cloud evolution so that
30  cloud-specific hooks can be used.
31 
32 SourceFiles
33  cloudFunctionObjectUList.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef cloudFunctionObjectUList_H
38 #define cloudFunctionObjectUList_H
39 
40 #include "cloudFunctionObject.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class cloudFunctionObjectUList Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
53  public UPtrList<functionObjects::cloudFunctionObject>
54 {
55 private:
56 
57  // Private Data
58 
59  //- Is this in an inner scope? Prevents calls to pre and post solve
60  const bool inner_;
61 
62 
63 public:
64 
65  //- Runtime type information
66  TypeName("cloudFunctionObjectUList");
67 
68 
69  // Constructors
70 
71  //- Construct from a cloud
72  cloudFunctionObjectUList(const cloud&, const bool inner = false);
73 
74  //- Disallow default bitwise copy construction
76  (
78  ) = delete;
79 
80 
81  //- Destructor
82  virtual ~cloudFunctionObjectUList();
83 
84 
85  // Member Functions
86 
87  //- Solve equations and/or update continually changing properties
88  virtual void calculate
89  (
90  const LagrangianSubScalarField& deltaT,
91  const bool final
92  );
93 
94  //- Hook before face crossings
95  virtual void preCrossFaces
96  (
98  );
99 
100  //- Hook before face crossings of a specific sub-mesh
101  virtual void preCrossFaces
102  (
103  const LagrangianSubScalarSubField& fraction
104  );
105 
106  //- Hook following face crossings of a specific sub-mesh
107  virtual void postCrossFaces
108  (
109  const LagrangianSubScalarSubField& fraction
110  );
111 
112  //- Hook after face crossings
113  virtual void postCrossFaces
114  (
116  );
117 
118 
119  // Member Operators
120 
121  //- Disallow default bitwise assignment
122  void operator=(const cloudFunctionObjectUList&) = delete;
123 };
124 
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 } // End namespace Foam
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: UPtrList.H:66
List of references to the cloud function objects. Designed to be constructed temporarily for the scop...
virtual ~cloudFunctionObjectUList()
Destructor.
TypeName("cloudFunctionObjectUList")
Runtime type information.
cloudFunctionObjectUList(const cloud &, const bool inner=false)
Construct from a cloud.
virtual void postCrossFaces(const LagrangianSubScalarSubField &fraction)
Hook following face crossings of a specific sub-mesh.
virtual void calculate(const LagrangianSubScalarField &deltaT, const bool final)
Solve equations and/or update continually changing properties.
virtual void preCrossFaces(const LagrangianScalarInternalDynamicField &fraction)
Hook before face crossings.
void operator=(const cloudFunctionObjectUList &)=delete
Disallow default bitwise assignment.
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
Definition: cloud.H:63
Namespace for OpenFOAM.