energyLagrangianScalarFieldSource.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) 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::energyLagrangianScalarFieldSource
26 
27 Description
28  Source condition for energy. Applied to the energy model automatically by
29  the Lagrangian thermodynamic model. This should not need to be specified
30  manually.
31 
32 SourceFiles
33  energyLagrangianScalarFieldSource.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef energyLagrangianScalarFieldSource_H
38 #define energyLagrangianScalarFieldSource_H
39 
40 #include "LagrangianFieldSources.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class energyLagrangianScalarFieldSource Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
53  public LagrangianScalarFieldSource
54 {
55 public:
56 
57  //- Runtime type information
58  TypeName("energy");
59 
60 
61  // Constructors
62 
63  //- Inherit constructors
64  using LagrangianScalarFieldSource::LagrangianScalarFieldSource;
65 
66  //- Construct and return a clone setting the internal field reference
68  (
69  const regIOobject& iIo
70  ) const
71  {
73  (
74  new energyLagrangianScalarFieldSource(*this, iIo)
75  );
76  }
77 
78 
79  //- Destructor
81 
82 
83  // Member Functions
84 
85  //- Return the value for an instantaneous injection
87  (
88  const LagrangianInjection&,
89  const LagrangianSubMesh&
90  ) const;
91 };
92 
93 
94 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95 
96 } // End namespace Foam
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 #endif
101 
102 // ************************************************************************* //
Base class for Lagrangian injections. Minimal wrapper over LagrangianSource. Implements some utility ...
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
Source condition for energy. Applied to the energy model automatically by the Lagrangian thermodynami...
TypeName("energy")
Runtime type information.
virtual tmp< LagrangianSubScalarField > value(const LagrangianInjection &, const LagrangianSubMesh &) const
Return the value for an instantaneous injection.
virtual autoPtr< LagrangianScalarFieldSource > clone(const regIOobject &iIo) const
Construct and return a clone setting the internal field reference.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:55
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.