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-2023 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 
39 #include "runTimeSelectionTables.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class relativeVelocityModel Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 {
52  // Private Member Functions
53 
54  //- Return the list of patchFieldTypes for Udm derived from U
55  wordList UdmPatchFieldTypes() const;
56 
57 
58 protected:
59 
60  // Protected data
61 
62  //- Mixture properties
64 
65  //- Acceleration due to gravity
67 
68  //- Dispersed diffusion velocity
69  mutable volVectorField Udm_;
70 
71 
72 public:
73 
74  //- Runtime type information
75  TypeName("relativeVelocityModel");
76 
77  //- Declare runtime constructor selection table
79  (
80  autoPtr,
82  dictionary,
83  (
84  const dictionary& dict,
87  ),
88  (dict, mixture, g)
89  );
90 
91 
92  // Constructors
93 
94  //- Construct from components
96  (
97  const dictionary& dict,
100  );
101 
102  //- Disallow default bitwise copy construction
104 
105 
106  // Selector
108  (
109  const dictionary& dict,
112  );
113 
114 
115  //- Destructor
116  virtual ~relativeVelocityModel();
117 
118 
119  // Member Functions
120 
121  //- Mixture properties
123  {
124  return mixture_;
125  }
126 
127  //- Return the diffusion velocity of the dispersed phase
128  const volVectorField& Udm() const
129  {
130  return Udm_;
131  }
132 
133  //- Return the dispersed phase acceleration
134  // Including buoyancy and flow curvature
136 
137  //- Return the stress tensor due to the phase transport
139 
140  //- Return the div stress tensor due to the phase transport
142 
143  //- Update the diffusion velocity
144  virtual void correct() = 0;
145 
146 
147  // Member Operators
148 
149  //- Disallow default bitwise assignment
150  void operator=(const relativeVelocityModel&) = delete;
151 };
152 
153 
154 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 
156 } // End namespace Foam
157 
158 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 
160 #endif
161 
162 // ************************************************************************* //
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Class to represent a mixture of two constant density phases.
const uniformDimensionedVectorField & g_
Acceleration due to gravity.
tmp< volSymmTensorField > tauDm() const
Return the stress tensor due to the phase transport.
void operator=(const relativeVelocityModel &)=delete
Disallow default bitwise assignment.
declareRunTimeSelectionTable(autoPtr, relativeVelocityModel, dictionary,(const dictionary &dict, const incompressibleDriftFluxMixture &mixture, const uniformDimensionedVectorField &g),(dict, mixture, g))
Declare runtime constructor selection table.
virtual ~relativeVelocityModel()
Destructor.
virtual void correct()=0
Update the diffusion velocity.
tmp< volVectorField > acceleration() const
Return the dispersed phase acceleration.
TypeName("relativeVelocityModel")
Runtime type information.
static autoPtr< relativeVelocityModel > New(const dictionary &dict, const incompressibleDriftFluxMixture &mixture, const uniformDimensionedVectorField &g)
tmp< volVectorField > divDevTau() const
Return the div stress tensor due to the phase transport.
const incompressibleDriftFluxMixture & mixture_
Mixture properties.
volVectorField Udm_
Dispersed diffusion velocity.
relativeVelocityModel(const dictionary &dict, const incompressibleDriftFluxMixture &mixture, const uniformDimensionedVectorField &g)
Construct from components.
const volVectorField & Udm() const
Return the diffusion velocity of the dispersed phase.
const incompressibleDriftFluxMixture & mixture() const
Mixture properties.
A class for managing temporary objects.
Definition: tmp.H:55
Namespace for OpenFOAM.
Macros to ease declaration of run-time selection tables.
dictionary dict