noPhaseChange.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) 2021 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 Class
25  Foam::twoPhaseChangeModels::noPhaseChange
26 
27 Description
28  Dummy phase change model for 'no phase change'
29 
30 SourceFiles
31  noPhaseChange.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef noPhaseChange_H
36 #define noPhaseChange_H
37 
38 #include "twoPhaseChangeModel.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 namespace twoPhaseChangeModels
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class noPhaseChange
49 \*---------------------------------------------------------------------------*/
50 
51 class noPhaseChange
52 :
53  public twoPhaseChangeModel
54 {
55 
56 public:
57 
58  //- Runtime type information
59  TypeName("none");
60 
61 
62  // Constructors
63 
64  //- Construct for mixture
66  (
67  const twoPhaseMixtureThermo& mixture
68  );
69 
70 
71  //- Destructor
72  virtual ~noPhaseChange()
73  {}
74 
75 
76  // Member Functions
77 
78  //- Return the mass condensation and vaporisation rates as a
79  // coefficient to multiply (1 - alphal) for the condensation rate
80  // and a coefficient to multiply alphal for the vaporisation rate
81  virtual Pair<tmp<volScalarField>> mDotAlphal() const;
82 
83  //- Return the mass condensation and vaporisation rates as coefficients
84  // to multiply (p - pSat)
85  virtual Pair<tmp<volScalarField>> mDotP() const;
86 
87  //- Return unallocated explicit and implicit sources
88  // for the phase-fraction equation
90  (
92  ) const;
93 
94  //- Return the zero source matrix
95  // for the p_rgh pressure equation
97  (
98  const volScalarField& rho,
99  const volScalarField& gh,
101  ) const;
102 
103  //- Return the zero source matrix for the momentum equation
104  virtual tmp<fvVectorMatrix> SU
105  (
106  const volScalarField& rho,
107  const surfaceScalarField& rhoPhi,
109  ) const;
110 
111  //- Correct the noPhaseChange phaseChange model
112  virtual void correct();
113 
114  //- Read the transportProperties dictionary and update
115  virtual bool read();
116 };
117 
118 
119 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
120 
121 } // End namespace twoPhaseChangeModels
122 } // End namespace Foam
123 
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
125 
126 #endif
127 
128 // ************************************************************************* //
volScalarField & p_rgh
virtual Pair< tmp< volScalarField::Internal > > Salpha(volScalarField &) const
Return unallocated explicit and implicit sources.
Definition: noPhaseChange.C:78
virtual Pair< tmp< volScalarField > > mDotAlphal() const
Return the mass condensation and vaporisation rates as a.
Definition: noPhaseChange.C:55
virtual Pair< tmp< volScalarField > > mDotP() const
Return the mass condensation and vaporisation rates as coefficients.
Definition: noPhaseChange.C:66
An ordered pair of two objects of type <T> with first() and second() elements.
Definition: contiguous.H:49
noPhaseChange(const immiscibleIncompressibleTwoPhaseMixture &mixture)
Construct for mixture.
Definition: noPhaseChange.C:44
TypeName("none")
Runtime type information.
virtual tmp< fvScalarMatrix > Sp_rgh(const volScalarField &rho, const volScalarField &gh, volScalarField &p_rgh) const
Return the zero source matrix.
Definition: noPhaseChange.C:92
U
Definition: pEqn.H:72
virtual void correct()
Correct the noPhaseChange phaseChange model.
rhoPhi
Definition: rhoEqn.H:10
const volScalarField & gh
A class for managing temporary objects.
Definition: PtrList.H:53
virtual tmp< fvVectorMatrix > SU(const volScalarField &rho, const surfaceScalarField &rhoPhi, volVectorField &U) const
Return the zero source matrix for the momentum equation.
virtual bool read()
Read the transportProperties dictionary and update.
Namespace for OpenFOAM.