XiProfile.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) 2024 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::XiProfile
26 
27 Description
28  Base class for flame wrinkling profiles
29 
30 SourceFiles
31  XiProfile.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef XiProfile_H
36 #define XiProfile_H
37 
38 #include "volFields.H"
39 #include "runTimeSelectionTables.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class XiProfile Declaration
48 \*---------------------------------------------------------------------------*/
49 
50 class XiProfile
51 {
52 
53 protected:
54 
55  // Protected data
56 
57  const volScalarField& b_;
58 
59 
60  // Protected member functions
61 
62  //- Update coefficients from given dictionary
63  virtual bool readCoeffs(const dictionary& dict) = 0;
64 
65 
66 public:
67 
68  //- Runtime type information
69  TypeName("XiProfile");
70 
71 
72  // Declare run-time constructor selection table
73 
75  (
76  autoPtr,
77  XiProfile,
78  dictionary,
79  (
80  const dictionary& dict,
81  const volScalarField& b
82  ),
83  (
84  dict,
85  b
86  )
87  );
88 
89 
90  // Constructors
91 
92  //- Construct from components
93  XiProfile(const volScalarField& b);
94 
95  //- Disallow default bitwise copy construction
96  XiProfile(const XiProfile&) = delete;
97 
98 
99  // Selectors
100 
101  //- Return a reference to the selected XiEq model
102  static autoPtr<XiProfile> New
103  (
104  const dictionary& XiProperties,
105  const volScalarField& b
106  );
107 
108 
109  //- Destructor
110  virtual ~XiProfile();
111 
112 
113  // Member Functions
114 
115  //- Return the flame-wrinkling profile
116  virtual tmp<volScalarField> profile() const = 0;
117 
118  //- Update properties from the given XiProperties dictionary
119  bool read(const dictionary& XiProperties);
120 
121 
122  // Member Operators
123 
124  //- Disallow default bitwise assignment
125  void operator=(const XiProfile&) = delete;
126 };
127 
128 
129 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 
131 } // End namespace Foam
132 
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 
135 #endif
136 
137 // ************************************************************************* //
Generic GeometricField class.
Base class for flame wrinkling profiles.
Definition: XiProfile.H:50
const volScalarField & b_
Definition: XiProfile.H:56
virtual tmp< volScalarField > profile() const =0
Return the flame-wrinkling profile.
TypeName("XiProfile")
Runtime type information.
virtual ~XiProfile()
Destructor.
Definition: XiProfile.C:55
void operator=(const XiProfile &)=delete
Disallow default bitwise assignment.
static autoPtr< XiProfile > New(const dictionary &XiProperties, const volScalarField &b)
Return a reference to the selected XiEq model.
Definition: XiProfileNew.C:31
XiProfile(const volScalarField &b)
Construct from components.
Definition: XiProfile.C:47
bool read(const dictionary &XiProperties)
Update properties from the given XiProperties dictionary.
Definition: XiProfile.C:61
declareRunTimeSelectionTable(autoPtr, XiProfile, dictionary,(const dictionary &dict, const volScalarField &b),(dict, b))
virtual bool readCoeffs(const dictionary &dict)=0
Update coefficients from given dictionary.
Definition: XiProfile.C:39
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
A class for managing temporary objects.
Definition: tmp.H:55
volScalarField & b
Definition: createFields.H:27
Namespace for OpenFOAM.
Macros to ease declaration of run-time selection tables.
dictionary dict