temperaturePhaseChangeTwoPhaseMixture.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-2019 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::temperaturePhaseChangeTwoPhaseMixture
28 
29 Description
30 
31 SourceFiles
32  temperaturePhaseChangeTwoPhaseMixture.C
33  newtemperaturePhaseChangeTwoPhaseMixture.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef temperaturePhaseChangeTwoPhaseMixture_H
38 #define temperaturePhaseChangeTwoPhaseMixture_H
39 
41 #include "typeInfo.H"
42 #include "runTimeSelectionTables.H"
43 #include "volFields.H"
44 #include "dimensionedScalar.H"
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class temperaturePhaseChangeTwoPhaseMixture Declaration
53 \*---------------------------------------------------------------------------*/
54 
56 :
57  public IOdictionary
58 {
59 
60 protected:
61 
62  // Protected data
63 
64  //- Reference to the thermoIncompressibleTwoPhaseMixture
66 
67  //- Reference to fvMesh
68  const fvMesh& mesh_;
69 
70 
71  // Private Member Functions
72 
73  //- No copy construct
75  (
77  ) = delete;
78 
79  //- No copy assignment
81 
82 
83 public:
84 
85  //- Runtime type information
86  TypeName("temperaturePhaseChangeTwoPhaseMixture");
87 
88 
89  // Declare run-time constructor selection table
90 
92  (
93  autoPtr,
95  components,
96  (
98  const fvMesh& mesh
99  ),
100  (mixture, mesh)
101  );
102 
103 
104  // Selectors
105 
106  //- Return a reference to the selected phaseChange model
108  (
110  const fvMesh& mesh
111  );
112 
113 
114  // Constructors
115 
116  //- Construct from components
118  (
120  const fvMesh& mesh
121  );
122 
123 
124  //- Destructor
125  virtual ~temperaturePhaseChangeTwoPhaseMixture() = default;
126 
127 
128  // Member Functions
129 
130 
131  //- Return the mass condensation and vaporisation rates as a
132  // coefficient to multiply (1 - alphal) for the condensation rate
133  // and a coefficient to multiply alphal for the vaporisation rate
134  virtual Pair<tmp<volScalarField>> mDotAlphal() const = 0;
135 
136  //- Return the mass condensation and vaporisation rates as coefficients
137  virtual Pair<tmp<volScalarField>> mDot() const = 0;
138 
139  //- Return the mass condensation and vaporisation rates as a
140  // coefficient to multiply (Tsat - T) for the condensation rate
141  // and a coefficient to multiply (T - Tsat) for the vaporisation rate
142  virtual Pair<tmp<volScalarField>> mDotDeltaT() const = 0;
143 
144  //- Return the volumetric condensation and vaporisation rates as a
145  // coefficient to multiply (1 - alphal) for the condensation rate
146  // and a coefficient to multiply alphal for the vaporisation rate
148 
149  //- Return the volumetric condensation and vaporisation rates as
150  // coefficients
152 
153  //- Correct the phaseChange model
154  virtual void correct() = 0;
155 
156  //- Read the transportProperties dictionary and update
157  virtual bool read();
158 };
159 
160 
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 
163 } // End namespace Foam
164 
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
166 
167 #endif
168 
169 // ************************************************************************* //
Foam::temperaturePhaseChangeTwoPhaseMixture
Definition: temperaturePhaseChangeTwoPhaseMixture.H:54
volFields.H
Foam::IOdictionary
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:54
Foam::temperaturePhaseChangeTwoPhaseMixture::mixture_
const thermoIncompressibleTwoPhaseMixture & mixture_
Reference to the thermoIncompressibleTwoPhaseMixture.
Definition: temperaturePhaseChangeTwoPhaseMixture.H:64
Foam::temperaturePhaseChangeTwoPhaseMixture::declareRunTimeSelectionTable
declareRunTimeSelectionTable(autoPtr, temperaturePhaseChangeTwoPhaseMixture, components,(const thermoIncompressibleTwoPhaseMixture &mixture, const fvMesh &mesh),(mixture, mesh))
typeInfo.H
Foam::temperaturePhaseChangeTwoPhaseMixture::correct
virtual void correct()=0
Correct the phaseChange model.
Foam::temperaturePhaseChangeTwoPhaseMixture::~temperaturePhaseChangeTwoPhaseMixture
virtual ~temperaturePhaseChangeTwoPhaseMixture()=default
Destructor.
thermoIncompressibleTwoPhaseMixture.H
Foam::temperaturePhaseChangeTwoPhaseMixture::New
static autoPtr< temperaturePhaseChangeTwoPhaseMixture > New(const thermoIncompressibleTwoPhaseMixture &mixture, const fvMesh &mesh)
Return a reference to the selected phaseChange model.
Foam::temperaturePhaseChangeTwoPhaseMixture::mDotDeltaT
virtual Pair< tmp< volScalarField > > mDotDeltaT() const =0
Return the mass condensation and vaporisation rates as a.
Foam::temperaturePhaseChangeTwoPhaseMixture::mDotAlphal
virtual Pair< tmp< volScalarField > > mDotAlphal() const =0
Return the mass condensation and vaporisation rates as a.
Foam::temperaturePhaseChangeTwoPhaseMixture::operator=
void operator=(const temperaturePhaseChangeTwoPhaseMixture &)=delete
No copy assignment.
Foam::temperaturePhaseChangeTwoPhaseMixture::mDot
virtual Pair< tmp< volScalarField > > mDot() const =0
Return the mass condensation and vaporisation rates as coefficients.
Foam::temperaturePhaseChangeTwoPhaseMixture::temperaturePhaseChangeTwoPhaseMixture
temperaturePhaseChangeTwoPhaseMixture(const temperaturePhaseChangeTwoPhaseMixture &)=delete
No copy construct.
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:84
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::temperaturePhaseChangeTwoPhaseMixture::mesh_
const fvMesh & mesh_
Reference to fvMesh.
Definition: temperaturePhaseChangeTwoPhaseMixture.H:67
Foam::thermoIncompressibleTwoPhaseMixture
A two-phase incompressible transportModel.
Definition: thermoIncompressibleTwoPhaseMixture.H:50
dimensionedScalar.H
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
Foam::Pair
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: Pair.H:54
runTimeSelectionTables.H
Macros to ease declaration of run-time selection tables.
Foam::temperaturePhaseChangeTwoPhaseMixture::vDotAlphal
Pair< tmp< volScalarField > > vDotAlphal() const
Return the volumetric condensation and vaporisation rates as a.
Foam::temperaturePhaseChangeTwoPhaseMixture::TypeName
TypeName("temperaturePhaseChangeTwoPhaseMixture")
Runtime type information.
Foam::temperaturePhaseChangeTwoPhaseMixture::vDot
Pair< tmp< volScalarField > > vDot() const
Return the volumetric condensation and vaporisation rates as.
Foam::mixture
Definition: mixture.H:54
Foam::temperaturePhaseChangeTwoPhaseMixture::read
virtual bool read()
Read the transportProperties dictionary and update.