SchillerNaumannDrag.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) 2025 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::SchillerNaumannDrag
26 
27 Description
28  Drag model of Schiller and Naumann
29 
30  References:
31  \verbatim
32  Schiller, L. & Naumann, A. (1933).
33  A drag coefficient correlation.
34  Zeit. Ver. Deutsch. Ing., 77, 318-320.
35  \endverbatim
36 
37 Usage
38  Example specification:
39  \verbatim
40  <LagrangianModelName>
41  {
42  type SchillerNaumannDrag;
43  }
44  \endverbatim
45 
46 SourceFiles
47  SchillerNaumannDrag.C
48 
49 \*---------------------------------------------------------------------------*/
50 
51 #ifndef SchillerNaumannDrag_H
52 #define SchillerNaumannDrag_H
53 
54 #include "drag.H"
55 
56 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
57 
58 namespace Foam
59 {
60 namespace Lagrangian
61 {
62 
63 /*---------------------------------------------------------------------------*\
64  Class SchillerNaumannDrag Declaration
65 \*---------------------------------------------------------------------------*/
66 
68 :
69  public drag
70 {
71 private:
72 
73  // Private Member Functions
74 
75  //- Calculate the drag coefficient
76  virtual tmp<LagrangianSubScalarField> calcD
77  (
78  const LagrangianModelRef& model,
79  const LagrangianSubMesh& subMesh
80  ) const;
81 
82 
83 public:
84 
85  //- Runtime type information
86  TypeName("SchillerNaumannDrag");
87 
88 
89  // Constructors
90 
91  //- Construct from components
93  (
94  const word& name,
95  const LagrangianMesh& mesh,
96  const dictionary& modelDict,
97  const dictionary& stateDict
98  );
99 
100 
101  // Member Functions
102 
103  //- Return the drag coefficient times Reynold's number, as a function
104  // of the Reynolds number. Used by other models.
106  (
108  );
109 };
110 
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 } // End namespace Lagrangian
115 } // End namespace Foam
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #endif
120 
121 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Class containing Lagrangian geometry and topology.
Simple wrapper to provide an optional reference to a Lagrangian model.
const LagrangianMesh & mesh() const
The mesh.
const word & name() const
The source name.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
static tmp< LagrangianSubScalarField > CdRe(const LagrangianSubScalarField &Re)
Return the drag coefficient times Reynold's number, as a function.
SchillerNaumannDrag(const word &name, const LagrangianMesh &mesh, const dictionary &modelDict, const dictionary &stateDict)
Construct from components.
TypeName("SchillerNaumannDrag")
Runtime type information.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
static dictionary stateDict(const word &name, const objectRegistry &db)
Construct and return the state dictionary for reading.
Definition: stateModel.C:137
A class for managing temporary objects.
Definition: tmp.H:55
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.
scalarField Re(const UList< complex > &cf)
Definition: complexFields.C:97