surfaceArrheniusReactionRateI.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) 2019 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 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
27 
29 (
30  const speciesTable& species,
31  const objectRegistry& ob,
32  const dictionary& dict
33 )
34 :
35  ArrheniusReactionRate(species, dict),
36  aName_(dict.lookup("a")),
37  aField_
38  (
40  )
41 {}
42 
43 
44 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
45 
46 inline Foam::scalar Foam::surfaceArrheniusReactionRate::operator()
47 (
48  const scalar p,
49  const scalar T,
50  const scalarField& c,
51  const label li
52 ) const
53 {
54  return ArrheniusReactionRate::operator()(p, T, c, li)*aField_[li];
55 }
56 
57 
59 (
60  const scalar p,
61  const scalar T,
62  const scalarField& c,
63  const label li
64 ) const
65 {
66  return ArrheniusReactionRate::ddT(p, T, c, li)*aField_[li];
67 }
68 
69 
71 {
73  writeEntry(os, "a", aName_);
74 }
75 
76 
77 inline Foam::Ostream& Foam::operator<<
78 (
79  Ostream& os,
81 )
82 {
83  arr.write(os);
84  return os;
85 }
86 
87 
88 // ************************************************************************* //
virtual Ostream & write(const char)=0
Write character.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
void write(Ostream &os) const
Write to stream.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
scalar ddT(const scalar p, const scalar T, const scalarField &c, const label li) const
Evaluate the derivative.
const dimensionedScalar & c
Speed of light in a vacuum.
const Type & lookupObject(const word &name) const
Lookup and return the object of the given Type.
surfaceArrheniusReactionRate(const speciesTable &species, const objectRegistry &ob, const dictionary &dict)
Construct from dictionary.
A modified Arrhenius reaction rate given by:
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:54
void writeEntry(Ostream &os, const HashTable< T, Key, Hash > &ht)
Definition: HashTableIO.C:96
const volScalarField & T
A wordList with hashed indices for faster lookup by name.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Arrhenius reaction rate given by:
volScalarField & p
Registry of regIOobjects.
void write(Ostream &os) const
Write to stream.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.
Definition: dictionary.C:812