All Classes Namespaces Files Functions Variables Typedefs Friends Macros Groups
twoPhaseIcoQGDThermo.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) 2011-2016 OpenFOAM Foundation
9  Copyright (C) 2019 OpenCFD Ltd.
10  Copyright (C) 2016-2019 ISP RAS (www.ispras.ru) UniCFD Group (www.unicfd.ru)
11 -------------------------------------------------------------------------------
12 
13 License
14  This file is part of QGDsolver, based on OpenFOAM library.
15 
16  OpenFOAM is free software: you can redistribute it and/or modify it
17  under the terms of the GNU General Public License as published by
18  the Free Software Foundation, either version 3 of the License, or
19  (at your option) any later version.
20 
21  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
22  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
23  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24  for more details.
25 
26  You should have received a copy of the GNU General Public License
27  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
28 
29 Class
30  Foam::twoPhaseIcoQGDThermo
31 
32 Group
33  grpTwoPhaseIcoQGDThermo
34 
35 Description
36  Thermodynamics and mechanics class for incompressible
37  two-phase mixture of immiscible components
38 
39 SourceFiles
40  twoPhaseIcoQGDThermo.C
41 
42 \*---------------------------------------------------------------------------*/
43 
44 #ifndef twoPhaseIcoQGDThermo_H
45 #define twoPhaseIcoQGDThermo_H
46 
47 #include "IOdictionary.H"
48 #include "twoPhaseMixture.H"
49 #include "qInterfaceProperties.H"
51 #include "QGDThermo.H"
52 
53 
54 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
55 
56 namespace Foam
57 {
58 
59 /*---------------------------------------------------------------------------*\
60  Class twoPhaseIcoQGDThermo Declaration
61 \*---------------------------------------------------------------------------*/
62 
64 :
65  public IOdictionary,
66  public twoPhaseMixture,
68  public qInterfaceProperties,
69  public QGDThermo
70 {
71 
72 protected:
73 
74  // Protected Member Functions
75 
76  //- mixture pressure field
77  volScalarField p_;
78 
79  //- Construct as copy (not implemented)
81 
82  //-
83  void validateQGDCoeffs();
84 
85 
86 public:
87 
88  //- Runtime type information
89  TypeName("twoPhaseIcoQGDThermo");
90 
91  // Constructors
92 
93  //- Construct from mesh
94  // and velocity field
96  (
97  const fvMesh&,
98  const volVectorField& U
99  );
100 
101  //- Destructor
102  virtual ~twoPhaseIcoQGDThermo();
103 
104 
105  // Member functions
106 
107  //-
108  bool read();
109 
110  //-
111  virtual const volScalarField& p() const;
112 
113  //-
114  volScalarField& p();
115 
116  //-
117  virtual tmp<volScalarField> rho() const;
118 
119  //-
120  virtual tmp<volScalarField> mu() const;
121 
122  //- Deprecated for incompressible models
123  virtual const volScalarField& c() const;
124 
125  //-
126  virtual void correct();
127 };
128 
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 } // End namespace Foam
133 
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 
136 #endif
137 
138 // ************************************************************************* //
virtual tmp< volScalarField > mu() const
Thermodynamics and mechanics class for incompressible two-phase mixture of immiscible components...
virtual tmp< volScalarField > rho() const
volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh)
TypeName("twoPhaseIcoQGDThermo")
Runtime type information.
virtual const volScalarField & c() const
Deprecated for incompressible models.
virtual const volScalarField & p() const
virtual ~twoPhaseIcoQGDThermo()
Destructor.
Abstract base class for classes implementing thermophysical properties of gases and fluids governed b...
Definition: QGDThermo.H:53
Constant properties for two phase package. Templated into a given thermodynamics package (needed for ...
Contains the interface properties.
volScalarField p_
mixture pressure field
twoPhaseIcoQGDThermo(const twoPhaseIcoQGDThermo &)
Construct as copy (not implemented)