The open source CFD toolbox
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 OpenCFD Ltd.
10-------------------------------------------------------------------------------
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
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
34template<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
49template<class ReactionThermo>
51{}
52
53
54// * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * * //
55
56template<class ReactionThermo>
58{}
59
60
61template<class ReactionThermo>
64(
66) const
67{
69 (
71 );
72
73 return tSu;
74}
75
76
77template<class ReactionThermo>
80{
82 (
84 (
85 this->thermo().phasePropertyName(typeName + ":Qdot"),
86 this->mesh().time().timeName(),
87 this->mesh(),
90 false
91 ),
92 this->mesh(),
94 );
95}
96
97
98template<class ReactionThermo>
100{
102}
103
104
105// ************************************************************************* //
#define R(A, B, C, D, E, F, K, M)
compressible::turbulenceModel & turb
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Definition: IOobject.H:170
Re-read model coefficients if they have changed.
Thermo model wrapper for combustion models.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
Definition: Time.C:717
Dummy combustion model for 'no combustion'.
Definition: noCombustion.H:59
virtual void correct()
Correct combustion rate.
Definition: noCombustion.C:57
virtual ~noCombustion()
Destructor.
Definition: noCombustion.C:50
virtual tmp< volScalarField > Qdot() const
Heat release rate [kg/m/s3].
Definition: noCombustion.C:79
Update properties from given dictionary.
Definition: noCombustion.C:99
Abstract base class for turbulence models (RAS, LES and laminar).
Basic thermodynamics type based on the use of fitting functions for cp, h, s obtained from the templa...
A class for managing temporary objects.
Definition: tmp.H:65
A class for handling words, derived from Foam::string.
Definition: word.H:68
PtrList< volScalarField > & Y
dynamicFvMesh & mesh
Calculate the finiteVolume matrix for implicit and explicit sources.
word timeName
Definition: getTimeIndex.H:3
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const dimensionSet dimEnergy
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:45
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Definition: dimensionSets.H:53
static constexpr const zero Zero
Global zero (0)
Definition: zero.H:131
const dimensionSet dimVolume(pow3(dimLength))
Definition: dimensionSets.H:60
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Definition: dimensionSets.H:51