unstrained.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) 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 \*---------------------------------------------------------------------------*/
25 
26 #include "unstrained.H"
27 #include "laminarFlameSpeed.H"
29 
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34 namespace SuModels
35 {
38 }
39 }
40 
41 
42 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
43 
45 {
46  return SuModel::readCoeffs(dict);
47 }
48 
49 
50 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
51 
53 (
54  const dictionary& dict,
57 )
58 :
60  Su0_
61  (
63  (
64  dict.subDict("unstrainedLaminarFlameSpeed"),
65  thermo_
66  )
67  )
68 {
69  correct();
70 }
71 
72 
73 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
74 
76 {}
77 
78 
79 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
80 
82 {
83  Su_ == Su0_()();
84 }
85 
86 
87 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
Base-class for all Su models used by the b-Xi combustion model.
Definition: SuModel.H:65
virtual bool readCoeffs(const dictionary &dict)=0
Update coefficients from given dictionary.
Definition: SuModel.C:39
Simple unstrained model for the laminar flame speed.
Definition: unstrained.H:56
virtual void correct()
Correct the laminar flame speed.
Definition: unstrained.C:81
unstrained(const dictionary &dict, const psiuMulticomponentThermo &thermo, const fluidThermoThermophysicalTransportModel &turbulence)
Construct from components.
Definition: unstrained.C:53
virtual bool readCoeffs(const dictionary &dict)
Update coefficients from given dictionary.
Definition: unstrained.C:44
virtual ~unstrained()
Destructor.
Definition: unstrained.C:75
Templated abstract base class for thermophysical transport models.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Abstract class for laminar flame speed.
Base-class for combustion fluid thermodynamic properties based on compressibility.
addToRunTimeSelectionTable(SuModel, linearEquilibrium, dictionary)
defineTypeNameAndDebug(linearEquilibrium, 0)
Namespace for OpenFOAM.
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
dictionary dict
autoPtr< incompressible::momentumTransportModel > turbulence(incompressible::momentumTransportModel::New(U, phi, viscosity))
fluidMulticomponentThermo & thermo
Definition: createFields.H:31