surfaceAreaLagrangianScalarFieldSource.C
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 \*---------------------------------------------------------------------------*/
25 
27 #include "shaped.H"
29 
30 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
31 
34 (
35  const regIOobject& iIo
36 )
37 :
38  LagrangianScalarFieldSource(iIo),
39  CloudLagrangianFieldSource<scalar>(*this)
40 {}
41 
42 
45 (
46  const regIOobject& iIo,
47  const dictionary& dict
48 )
49 :
50  LagrangianScalarFieldSource(iIo, dict),
51  CloudLagrangianFieldSource<scalar>(*this)
52 {}
53 
54 
57 (
59  const regIOobject& iIo
60 )
61 :
62  LagrangianScalarFieldSource(field, iIo),
63  CloudLagrangianFieldSource<scalar>(*this)
64 {}
65 
66 
67 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
68 
71 {}
72 
73 
74 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
75 
78 (
79  const LagrangianInjection& injection,
80  const LagrangianSubMesh& subMesh
81 ) const
82 {
83  return cloud<clouds::shaped>(injection, subMesh).a(injection, subMesh);
84 }
85 
86 
87 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
88 
89 namespace Foam
90 {
92  (
93  LagrangianScalarFieldSource,
95  );
96 }
97 
98 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
Templated base class for source conditions that refer to a cloud. Not a source condition in itself....
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...
Base class for clouds. Provides a basic evolution algorithm, models, and a database for caching deriv...
Definition: cloud.H:63
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:55
This source condition provides the surface area of introduced particles. It converts between the corr...
virtual tmp< LagrangianSubScalarField > value(const LagrangianInjection &, const LagrangianSubMesh &) const
Return the value for an instantaneous injection.
surfaceAreaLagrangianScalarFieldSource(const regIOobject &)
Construct from internal field.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
makeNullConstructableLagrangianTypeFieldSource(LagrangianScalarFieldSource, massLagrangianScalarFieldSource)
dictionary dict