constant.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::phaseChangeTwoPhaseMixtures::constant
28 
29 Description
30  constant condensation/saturation model.
31 
32 
33 SourceFiles
34  constant.C
35 
36 \*--------------------------------------------------------------------*/
37 
38 #ifndef constant_H
39 #define constant_H
40 
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 namespace temperaturePhaseChangeTwoPhaseMixtures
48 {
49 
50 /*--------------------------------------------------------------------*\
51  Class constant
52 \*--------------------------------------------------------------------*/
53 
54 class constant
55 :
57 {
58  // Private data
59 
60  //- Condensation coefficient [1/s/K]
61  dimensionedScalar coeffC_;
62 
63  //- Evaporation coefficient [1/s/K]
64  dimensionedScalar coeffE_;
65 
66 
67 public:
68 
69  //- Runtime type information
70  TypeName("constant");
71 
72 
73  // Constructors
74 
75  //- Construct from components
76  constant
77  (
79  const fvMesh& mesh
80  );
81 
82 
83  //- Destructor
84  virtual ~constant() = default;
85 
86 
87  // Member Functions
88 
89  //- Return the mass condensation and vaporisation rates as a
90  // coefficient to multiply (1 - alphal) for the condensation rate
91  // and a coefficient to multiply alphal for the vaporisation rate
92  virtual Pair<tmp<volScalarField>> mDotAlphal() const;
93 
94  //- Return the mass condensation and vaporisation rates as coefficients
95  virtual Pair<tmp<volScalarField>> mDot() const;
96 
97  //- Return the mass condensation and vaporisation rates as a
98  // coefficient to multiply (Tsat - T) for the condensation rate
99  // and a coefficient to multiply (T - Tsat) for the vaporisation rate
100  virtual Pair<tmp<volScalarField>> mDotDeltaT() const;
101 
102  //- Source for T equarion
103  virtual tmp<fvScalarMatrix> TSource() const;
104 
105  //- Correct the constant phaseChange model
106  virtual void correct();
107 
108  //- Read the transportProperties dictionary and update
109  virtual bool read();
110 };
111 
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 } // End namespace temperaturePhaseChangeTwoPhaseMixtures
116 } // End namespace Foam
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 #endif
121 
122 // ************************************************************************* //
Foam::temperaturePhaseChangeTwoPhaseMixture
Definition: temperaturePhaseChangeTwoPhaseMixture.H:55
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::temperaturePhaseChangeTwoPhaseMixtures::constant::TypeName
TypeName("constant")
Runtime type information.
Foam::temperaturePhaseChangeTwoPhaseMixtures::constant::mDotDeltaT
virtual Pair< tmp< volScalarField > > mDotDeltaT() const
Return the mass condensation and vaporisation rates as a.
Foam::temperaturePhaseChangeTwoPhaseMixtures::constant::read
virtual bool read()
Read the transportProperties dictionary and update.
Foam::temperaturePhaseChangeTwoPhaseMixtures::constant::correct
virtual void correct()
Correct the constant phaseChange model.
Foam::temperaturePhaseChangeTwoPhaseMixtures::constant::mDotAlphal
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
Foam::temperaturePhaseChangeTwoPhaseMixtures::constant
Definition: constant.H:53
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam::dimensioned< scalar >
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::thermoIncompressibleTwoPhaseMixture
A two-phase incompressible transportModel.
Definition: thermoIncompressibleTwoPhaseMixture.H:50
temperaturePhaseChangeTwoPhaseMixture.H
Foam::temperaturePhaseChangeTwoPhaseMixtures::constant::constant
constant(const thermoIncompressibleTwoPhaseMixture &mixture, const fvMesh &mesh)
Construct from components.
Foam::Pair
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: Pair.H:54
Foam::temperaturePhaseChangeTwoPhaseMixtures::constant::mDot
virtual Pair< tmp< volScalarField > > mDot() const
Return the mass condensation and vaporisation rates as coefficients.
Foam::temperaturePhaseChangeTwoPhaseMixtures::constant::~constant
virtual ~constant()=default
Destructor.
Foam::mixture
Definition: mixture.H:54
Foam::temperaturePhaseChangeTwoPhaseMixtures::constant::TSource
virtual tmp< fvScalarMatrix > TSource() const
Source for T equarion.