pressureLagrangianScalarFieldSource.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::pressureLagrangianScalarFieldSource
26 
27 Description
28  Source condition for pressure. Applied to the pressure field automatically
29  by the Lagrangian thermodynamic model. This should not need to be specified
30  manually.
31 
32 SourceFiles
33  pressureLagrangianScalarFieldSource.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef pressureLagrangianScalarFieldSource_H
38 #define pressureLagrangianScalarFieldSource_H
39 
40 #include "LagrangianFieldSources.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class pressureLagrangianScalarFieldSource Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
53  public LagrangianScalarFieldSource
54 {
55 public:
56 
57  //- Runtime type information
58  TypeName("pressure");
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  (
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 pressure. Applied to the pressure field automatically by the Lagrangian thermody...
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.
TypeName("pressure")
Runtime type information.
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.