phaseTransferModel.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) 2018-2023 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 "phaseTransferModel.H"
27 
28 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
29 
30 namespace Foam
31 {
35 }
36 
39 
42 
45 
46 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
47 
49 (
50  const dictionary& dict,
51  const phaseInterface& interface
52 )
53 :
55  (
56  IOobject
57  (
58  IOobject::groupName(typeName, interface.name()),
59  interface.mesh().time().name(),
60  interface.mesh()
61  )
62  )
63 {}
64 
65 
66 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
67 
69 {}
70 
71 
72 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
73 
75 {
76  return false;
77 }
78 
79 
81 {
82  return tmp<volScalarField>(nullptr);
83 }
84 
85 
87 {
88  return tmp<volScalarField>(nullptr);
89 }
90 
91 
93 {
94  return noSpecies_;
95 }
96 
97 
100 {
102 }
103 
104 
106 {
107  return os.good();
108 }
109 
110 
112 {
114 }
115 
116 
119 {
120  return
121  evaluate
122  (
124  "dmdtf",
126  true
127  );
128 }
129 
130 
133 {
134  return
135  evaluate
136  (
138  "d2mdtdpf",
140  true
141  );
142 }
143 
144 
146 {
148 }
149 
150 
153 {
154  return
155  evaluate
156  (
158  "dmidtf",
160  true
161  );
162 }
163 
164 
165 // ************************************************************************* //
A HashTable specialisation for hashing pointers.
Definition: HashPtrTable.H:67
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Definition: IOobject.H:99
bool good() const
Return true if next operation might succeed.
Definition: IOstream.H:330
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:57
bool mixture() const
Whether or not there is a mass transfer rate for the mixture.
hashedWordList species() const
The list of individual species that are transferred.
tmp< volScalarField > d2mdtdpf() const
The mass transfer rate derivative w.r.t pressure for the mixture.
HashPtrTable< volScalarField > dmidtf() const
The mass transfer rate for individual species.
tmp< volScalarField > dmdtf() const
The mass transfer rate for the mixture.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Dimension set for the base types.
Definition: dimensionSet.H:122
A wordList with hashed indices for faster lookup by name.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
virtual bool mixture() const
Whether or not there is a mass transfer rate for the mixture.
virtual ~phaseTransferModel()
Destructor.
bool writeData(Ostream &os) const
Dummy write for regIOobject.
virtual tmp< volScalarField > d2mdtdpf() const
The mass transfer rate derivative w.r.t pressure for the mixture.
virtual HashPtrTable< volScalarField > dmidtf() const
The mass transfer rate for individual species.
static const dimensionSet dimD2mdtdp
Mass transfer rate derivative w.r.t pressure dimensions.
virtual tmp< volScalarField > dmdtf() const
The mass transfer rate for the mixture.
static const hashedWordList noSpecies_
Empty species list.
virtual const hashedWordList & species() const
The list of individual species that are transferred.
static const dimensionSet dimDmdt
Mass transfer rate dimensions.
phaseTransferModel(const dictionary &dict, const phaseInterface &interface)
Construct from a dictionary and an interface.
regIOobject is an abstract class derived from IOobject to handle automatic object registration with t...
Definition: regIOobject.H:55
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineBlendedInterfacialModelTypeNameAndDebug(diffusiveMassTransferModel, 0)
const dimensionSet dimPressure
const dimensionSet dimTime
const dimensionSet dimDensity
defineTypeNameAndDebug(combustionModel, 0)
void evaluate(GeometricField< Type, PatchField, GeoMesh > &result, const Function1< Type > &func, const GeometricField< Type, PatchField, GeoMesh > &x)
word name(const complex &)
Return a string representation of a complex.
Definition: complex.C:47
dictionary dict