dispersedDragModel.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) 2011-2022 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::dispersedDragModel
26 
27 Description
28  Model for drag between two phases where one phase can be considered
29  dispersed in the other and the drag therefore characterised by a drag
30  coefficient
31 
32 SourceFiles
33  dispersedDragModel.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef dispersedDragModel_H
38 #define dispersedDragModel_H
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 #include "dragModel.H"
44 
45 namespace Foam
46 {
47 namespace dragModels
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class dispersedDragModel Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
56  public dragModel
57 {
58 protected:
59 
60  // Protected data
61 
62  //- Interface
64 
65  //- Swarm correction
67 
68 
69 public:
70 
71  // Constructors
72 
73  // Construct from a dictionary and an interface
75  (
76  const dictionary& dict,
77  const phaseInterface& interface,
78  const bool registerObject
79  );
80 
81 
82  //- Destructor
83  virtual ~dispersedDragModel();
84 
85 
86  // Member Functions
87 
88  //- Drag coefficient
89  virtual tmp<volScalarField> CdRe() const = 0;
90 
91  //- Return the phase-intensive drag coefficient Ki
92  // used in the momentum equations
93  // ddt(alpha1*rho1*U1) + ... = ... alphad*K*(U1-U2)
94  // ddt(alpha2*rho2*U2) + ... = ... alphad*K*(U2-U1)
95  virtual tmp<volScalarField> Ki() const;
96 
97  //- Return the drag coefficient K
98  // used in the momentum equations
99  // ddt(alpha1*rho1*U1) + ... = ... K*(U1-U2)
100  // ddt(alpha2*rho2*U2) + ... = ... K*(U2-U1)
101  virtual tmp<volScalarField> K() const;
102 
103  //- Return the drag coefficient Kf
104  // used in the face-momentum equations
105  virtual tmp<surfaceScalarField> Kf() const;
106 };
107 
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 } // End namespace dragModels
112 } // End namespace Foam
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 #endif
117 
118 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:156
dispersedDragModel(const dictionary &dict, const phaseInterface &interface, const bool registerObject)
Class to represent an interface between phases. Derivations can further specify the configuration of ...
Class to represent a interface between phases where one phase is considered dispersed within the othe...
virtual tmp< volScalarField > CdRe() const =0
Drag coefficient.
virtual ~dispersedDragModel()
Destructor.
Model for drag between phases.
Definition: dragModel.H:54
virtual tmp< volScalarField > Ki() const
Return the phase-intensive drag coefficient Ki.
const dispersedPhaseInterface interface_
Interface.
virtual tmp< surfaceScalarField > Kf() const
Return the drag coefficient Kf.
virtual tmp< volScalarField > K() const
Return the drag coefficient K.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: PtrList.H:52
A class for managing temporary objects.
Definition: PtrList.H:53
autoPtr< swarmCorrection > swarmCorrection_
Swarm correction.
bool & registerObject()
Register object created from this IOobject with registry if true.
Definition: IOobject.H:351
Namespace for OpenFOAM.