phaseChange.H
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) 2016-2018 OpenFOAM Foundation
9  Copyright (C) 2019 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 Class
28  Foam::diameterModels::IATEsources::phaseChange
29 
30 Description
31  Phase-change IATE source.
32 
33 SourceFiles
34  phaseChange.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef phaseChange_H
39 #define phaseChange_H
40 
41 #include "IATEsource.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace diameterModels
48 {
49 namespace IATEsources
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class phaseChange Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 class phaseChange
57 :
58  public IATEsource
59 {
60  // Private data
61 
62  //- Phase pair name
63  word pairName_;
64 
65  //- Pointer to the corresponding iDmdt field
66  mutable const volScalarField* iDmdtPtr_;
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("phaseChange");
72 
73 
74  // Constructors
75 
77  (
78  const IATE& iate,
79  const dictionary& dict
80  );
81 
82 
83  //- Destructor
84  virtual ~phaseChange() = default;
85 
86 
87  // Member Functions
88 
89  virtual tmp<fvScalarMatrix> R
90  (
91  const volScalarField& alphai,
92  volScalarField& kappai
93  ) const;
94 };
95 
96 
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 
99 } // End namespace IATEsources
100 } // End namespace diameterModels
101 } // End namespace Foam
102 
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 
105 #endif
106 
107 // ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:65
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::diameterModels::IATE
IATE (Interfacial Area Transport Equation) bubble diameter model.
Definition: IATE.H:68
Foam::diameterModels::IATEsource::R
virtual tmp< volScalarField > R() const =0
Foam::diameterModels::IATEsources::phaseChange::phaseChange
phaseChange(const IATE &iate, const dictionary &dict)
Definition: phaseChange.C:54
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::diameterModels::IATEsource
IATE (Interfacial Area Transport Equation) bubble diameter model run-time selectable sources.
Definition: IATEsource.H:56
Foam::diameterModels::IATEsources::phaseChange
Phase-change IATE source.
Definition: phaseChange.H:55
Foam::diameterModels::IATEsources::phaseChange::TypeName
TypeName("phaseChange")
Runtime type information.
Foam::diameterModels::IATEsources::phaseChange::~phaseChange
virtual ~phaseChange()=default
Destructor.
Foam::GeometricField< scalar, fvPatchField, volMesh >