noCombustion.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2017 OpenFOAM Foundation
9  Copyright (C) 2019-2023 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 \*---------------------------------------------------------------------------*/
28 
29 #include "noCombustion.H"
30 #include "fvmSup.H"
31 
32 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
33 
34 template<class ReactionThermo>
36 (
37  const word& modelType,
38  ReactionThermo& thermo,
40  const word& combustionProperties
41 )
42 :
43  ThermoCombustion<ReactionThermo>(modelType, thermo, turb)
44 {}
45 
46 
47 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
48 
49 template<class ReactionThermo>
51 {}
52 
53 
54 // * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
55 
56 template<class ReactionThermo>
58 {}
59 
60 
61 template<class ReactionThermo>
64 (
66 ) const
67 {
69 }
70 
71 
72 template<class ReactionThermo>
75 {
76  return volScalarField::New
77  (
78  this->thermo().phaseScopedName(typeName, "Qdot"),
79  IOobject::NO_REGISTER,
80  this->mesh(),
82  );
83 }
84 
85 
86 template<class ReactionThermo>
88 {
90 }
91 
92 
93 // ************************************************************************* //
virtual ~noCombustion()
Destructor.
Definition: noCombustion.C:43
virtual bool read()
Update properties from given dictionary.
Definition: noCombustion.C:80
compressible::turbulenceModel & turb
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
psiReactionThermo & thermo
Definition: createFields.H:28
virtual void correct()
Correct combustion rate.
Definition: noCombustion.C:50
const dimensionSet dimVolume(pow3(dimLength))
Definition: dimensionSets.H:58
Dummy combustion model for &#39;no combustion&#39;.
Definition: noCombustion.H:52
dynamicFvMesh & mesh
A class for handling words, derived from Foam::string.
Definition: word.H:63
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
Abstract base class for turbulence models (RAS, LES and laminar).
void read(Istream &, label &val, const dictionary &)
In-place read with dictionary lookup.
Thermo model wrapper for combustion models.
const dimensionSet dimEnergy
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
PtrList< volScalarField > & Y
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:51
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:49
A class for managing temporary objects.
Definition: HashPtrTable.H:50
Calculate the finiteVolume matrix for implicit and explicit sources.
virtual tmp< fvScalarMatrix > R(volScalarField &Y) const
Fuel consumption rate matrix.
Definition: noCombustion.C:57
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:127
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s3].
Definition: noCombustion.C:67