All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
relativeVelocityModel.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) 2014-2019 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::relativeVelocityModel
26 
27 Description
28 
29 SourceFiles
30  relativeVelocityModel.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef relativeVelocityModel_H
35 #define relativeVelocityModel_H
36 
37 #include "fvCFD.H"
38 #include "dictionary.H"
40 #include "runTimeSelectionTables.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class relativeVelocityModel Declaration
49 \*---------------------------------------------------------------------------*/
50 
52 {
53  // Private Member Functions
54 
55  //- Return the list of patchFieldTypes for Udm derived from U
56  wordList UdmPatchFieldTypes() const;
57 
58 
59 protected:
60 
61  // Protected data
62 
63  //- Mixture properties
65 
66  //- Name of the continuous phase
68 
69  //- Continuous phase fraction
70  const volScalarField& alphac_;
71 
72  //- Dispersed phase fraction
73  const volScalarField& alphad_;
74 
75  //- Continuous density
76  const dimensionedScalar& rhoc_;
77 
78  //- Dispersed density
79  const dimensionedScalar& rhod_;
80 
81  //- Dispersed diffusion velocity
82  mutable volVectorField Udm_;
83 
84 
85 public:
86 
87  //- Runtime type information
88  TypeName("relativeVelocityModel");
89 
90  //- Declare runtime constructor selection table
92  (
93  autoPtr,
95  dictionary,
96  (const dictionary& dict,
98  (dict, mixture)
99  );
100 
101 
102  // Constructors
103 
104  //- Construct from components
106  (
107  const dictionary& dict,
109  );
110 
111  //- Disallow default bitwise copy construction
113 
114 
115  // Selector
117  (
118  const dictionary& dict,
120  );
121 
122 
123  //- Destructor
124  virtual ~relativeVelocityModel();
125 
126 
127  // Member Functions
128 
129  //- Mixture properties
131  {
132  return mixture_;
133  }
134 
135  //- Return the mixture mean density
136  tmp<volScalarField> rho() const;
137 
138  //- Return the diffusion velocity of the dispersed phase
139  const volVectorField& Udm() const
140  {
141  return Udm_;
142  }
143 
144  //- Return the stress tensor due to the phase transport
146 
147  //- Update the diffusion velocity
148  virtual void correct() = 0;
149 
150 
151  // Member Operators
152 
153  //- Disallow default bitwise assignment
154  void operator=(const relativeVelocityModel&) = delete;
155 };
156 
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 } // End namespace Foam
161 
162 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 
164 #endif
165 
166 // ************************************************************************* //
A two-phase incompressible transportModel for interacting phases requiring the direct evaluation of t...
dictionary dict
const volScalarField & alphac_
Continuous phase fraction.
relativeVelocityModel(const dictionary &dict, const incompressibleTwoPhaseInteractingMixture &mixture)
Construct from components.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:158
TypeName("relativeVelocityModel")
Runtime type information.
const dimensionedScalar & rhod_
Dispersed density.
const incompressibleTwoPhaseInteractingMixture & mixture_
Mixture properties.
volVectorField Udm_
Dispersed diffusion velocity.
static autoPtr< relativeVelocityModel > New(const dictionary &dict, const incompressibleTwoPhaseInteractingMixture &mixture)
virtual void correct()=0
Update the diffusion velocity.
declareRunTimeSelectionTable(autoPtr, relativeVelocityModel, dictionary,(const dictionary &dict, const incompressibleTwoPhaseInteractingMixture &mixture),(dict, mixture))
Declare runtime constructor selection table.
A class for handling words, derived from string.
Definition: word.H:59
virtual ~relativeVelocityModel()
Destructor.
const incompressibleTwoPhaseInteractingMixture & mixture() const
Mixture properties.
tmp< volSymmTensorField > tauDm() const
Return the stress tensor due to the phase transport.
const word continuousPhaseName_
Name of the continuous phase.
tmp< volScalarField > rho() const
Return the mixture mean density.
const dimensionedScalar & rhoc_
Continuous density.
void operator=(const relativeVelocityModel &)=delete
Disallow default bitwise assignment.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
Macros to ease declaration of run-time selection tables.
A class for managing temporary objects.
Definition: PtrList.H:53
const volVectorField & Udm() const
Return the diffusion velocity of the dispersed phase.
Namespace for OpenFOAM.
const volScalarField & alphad_
Dispersed phase fraction.