CloudStateField.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-2026 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::CloudStateField
26 
27 Description
28  A field which is stored as part of the state of the cloud. This is a light
29  wrapper around a dynamic Lagrangian field. It provides convenient access
30  consistent with that of the derived fields so that expressions involving
31  both kinds of field are readable. It also ensures that old-time fields are
32  maintained for a sub-mesh for the duration of the inner correction
33  iterations.
34 
35 See also
36  Foam::CloudDerivedField
37 
38 SourceFiles
39  CloudStateField.C
40 
41 \*---------------------------------------------------------------------------*/
42 
43 #ifndef CloudStateField_H
44 #define CloudStateField_H
45 
46 #include "CloudStateFieldRef.H"
47 
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 
50 namespace Foam
51 {
52 
53 /*---------------------------------------------------------------------------*\
54  Class CloudStateField Declaration
55 \*---------------------------------------------------------------------------*/
56 
57 template<class Type>
58 class CloudStateField
59 :
60  public LagrangianDynamicField<Type>,
61  public CloudStateFieldRef<Type>
62 {
63 public:
64 
65  // Constructors
66 
67  //- Forward construction arguments to the base class
68  template<class ... Args>
69  CloudStateField(const Args& ... args)
70  :
71  LagrangianDynamicField<Type>(args ...),
72  CloudStateFieldRef<Type>
73  (
74  static_cast<LagrangianDynamicField<Type>&>(*this)
75  )
76  {}
77 
78 
79  // Member Functions
80 
81  //- Access the name via the geometric field
83 
84  //- Access the name via the geometric field
86 
87  //- Access the name via the geometric field
89 
90 
91  // Member Operators
92 
93  //- Use the call operator(s) from the state field reference and not
94  // from the geometric field
96 };
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 } // End namespace Foam
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #endif
105 
106 // ************************************************************************* //
Wrapper for a reference to a dynamic Lagrangian field. It provides convenient access consistent with ...
A field which is stored as part of the state of the cloud. This is a light wrapper around a dynamic L...
CloudStateField(const Args &... args)
Forward construction arguments to the base class.
Generic GeometricField class.
Namespace for OpenFOAM.
Foam::argList args(argc, argv)