betaMaxReynoldsDarcy.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) 2020-2023 PCOpt/NTUA
9  Copyright (C) 2020-2023 FOSS GP
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 
28 Class
29  Foam::betaMaxReynoldsDarcy
30 
31 Description
32  Compute betaMax through the products of the Reynolds and Darcy numbers,
33  quantifying the momentum-to-porous forces ratio
34  ReDa = Uref/betaMax/L
35  where Uref is a reference velocity and L is a characteristic length.
36  The latter is either supplied directly or computed as the
37  - 2D: area of the inlet patches divided by the span in the empty direction
38  - 3D: the hydraulic diameter of the inlet patches
39 
40 SourceFiles
41  betaMaxReynoldsDarcy.C
42 
43 \*---------------------------------------------------------------------------*/
44 
45 #ifndef betaMaxReynoldsDarcy_H
46 #define betaMaxReynoldsDarcy_H
47 
48 #include "betaMax.H"
49 
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 
52 namespace Foam
53 {
54 
55 /*---------------------------------------------------------------------------*\
56  Class betaMaxReynoldsDarcy Declaration
57 \*---------------------------------------------------------------------------*/
58 
60 :
61  public betaMax
62 {
63 
64 private:
65 
66  // Private Member Functions
67 
68  //- No copy construct
70 
71  //- No copy assignment
72  void operator=(const betaMaxReynoldsDarcy&) = delete;
73 
74 
75 protected:
76 
77  // Protected Data
78 
79  //- The Darcy number expressing the ratio of viscous to porous forces
80  scalar ReynoldsDarcyNumber_;
81 
82  //- Characteristic length of the case
83  // Either supplied directly or computed as the hydraulic diameter of
84  // the inlet
85  scalar length_;
86 
87  //- Reference velocity
88  scalar Uref_;
89 
90 
91 public:
92 
93  //- Runtime type information
94  TypeName("ReynoldsDarcy");
95 
96 
97  // Constructors
98 
99  //- Construct from components
101  (
102  const fvMesh& mesh,
103  const dictionary& dict
104  );
105 
106 
107  //- Destructor
108  virtual ~betaMaxReynoldsDarcy() = default;
109 };
110 
111 
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 
114 } // End namespace Foam
115 
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
117 
118 #endif
119 
120 // ************************************************************************* //
scalar length_
Characteristic length of the case.
dictionary dict
scalar Uref_
Reference velocity.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
virtual ~betaMaxReynoldsDarcy()=default
Destructor.
dynamicFvMesh & mesh
Base class for selecting the betaMax value, i.e. the value multiplying the Brinkman penalisation term...
Definition: betaMax.H:49
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
TypeName("ReynoldsDarcy")
Runtime type information.
Compute betaMax through the products of the Reynolds and Darcy numbers, quantifying the momentum-to-p...
scalar ReynoldsDarcyNumber_
The Darcy number expressing the ratio of viscous to porous forces.
Namespace for OpenFOAM.