uHomogeneousbHomogeneous.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::uHomogeneousbHomogeneous
26 
27 Description
28  Homogeneous unburnt gas to homogeneous burnt gas composition mapping
29 
30 SourceFiles
31  uHomogeneousbHomogeneous.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef uHomogeneousbHomogeneous_H
36 #define uHomogeneousbHomogeneous_H
37 
38 #include "ubMixtureMap.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace ubMixtureMaps
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class uHomogeneousbHomogeneous Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 :
53  public ubMixtureMap
54 {
55 
56 public:
57 
58  //- Runtime type information
59  TypeName("uHomogeneousbHomogeneous");
60 
61 
62  // Constructors
63 
64  //- Construct from components
66  (
67  const uRhoMulticomponentThermo& uThermo,
68  const bRhoMulticomponentThermo& bThermo
69  );
70 
71  //- Disallow default bitwise copy construction
73 
74 
75  //- Destructor
76  virtual ~uHomogeneousbHomogeneous();
77 
78 
79  // Member Functions
80 
82  (
83  const PtrList<volScalarField>& Yu
84  ) const
85  {
88  }
89 
90  virtual void reset
91  (
92  const volScalarField& b,
94  const volScalarField& c,
96  ) const
97  {
99  << "EGR not supported by " << typeName
100  << exit(FatalError);
101  }
102 
103 
104  // Member Operators
105 
106  //- Disallow default bitwise assignment
107  void operator=(const uHomogeneousbHomogeneous&) = delete;
108 };
109 
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 } // End namespace ubMixtureMaps
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #endif
119 
120 // ************************************************************************* //
Generic GeometricField class.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: PtrList.H:75
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
Definition: UPtrList.H:66
Base-class for combustion fluid thermodynamic properties based on compressibility.
Template function which returns the un-mangled name of a given type. Useful for types which do not ha...
Base-class for combustion fluid thermodynamic properties based on compressibility.
Base class for unburnt/burnt gas composition mapping.
Definition: ubMixtureMap.H:51
virtual void reset(const volScalarField &b, UPtrList< volScalarField > &Yu, const volScalarField &c, const UPtrList< const volScalarField > &Yb) const
Reset the mixture to an unburnt state.
virtual PtrList< volScalarField::Internal > prompt(const PtrList< volScalarField > &Yu) const
Return the burnt gas prompt specie mass fractions.
TypeName("uHomogeneousbHomogeneous")
Runtime type information.
void operator=(const uHomogeneousbHomogeneous &)=delete
Disallow default bitwise assignment.
uHomogeneousbHomogeneous(const uRhoMulticomponentThermo &uThermo, const bRhoMulticomponentThermo &bThermo)
Construct from components.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:381
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:334
volScalarField & b
Definition: createFields.H:27
const dimensionedScalar c
Speed of light in a vacuum.
Namespace for OpenFOAM.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:124
error FatalError