Loading...
Searching...
No Matches
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-------------------------------------------------------------------------------
11License
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
28Class
29 Foam::betaMaxReynoldsDarcy
30
31Description
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
40SourceFiles
41 betaMaxReynoldsDarcy.C
42
43\*---------------------------------------------------------------------------*/
44
45#ifndef betaMaxReynoldsDarcy_H
46#define betaMaxReynoldsDarcy_H
47
48#include "betaMax.H"
49
50// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51
52namespace Foam
53{
55/*---------------------------------------------------------------------------*\
56 Class betaMaxReynoldsDarcy Declaration
57\*---------------------------------------------------------------------------*/
58
59class betaMaxReynoldsDarcy
60:
61 public betaMax
62{
63
64private:
65
66 // Private Member Functions
67
68 //- No copy construct
69 betaMaxReynoldsDarcy(const betaMaxReynoldsDarcy&) = delete;
70
71 //- No copy assignment
72 void operator=(const betaMaxReynoldsDarcy&) = delete;
73
74
75protected:
76
77 // Protected Data
78
79 //- The Darcy number expressing the ratio of viscous to porous forces
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_;
90
91public:
92
93 //- Runtime type information
94 TypeName("ReynoldsDarcy");
95
96
97 // Constructors
98
99 //- Construct from components
100 betaMaxReynoldsDarcy
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// ************************************************************************* //
virtual ~betaMaxReynoldsDarcy()=default
Destructor.
scalar Uref_
Reference velocity.
scalar length_
Characteristic length of the case.
scalar ReynoldsDarcyNumber_
The Darcy number expressing the ratio of viscous to porous forces.
TypeName("ReynoldsDarcy")
Runtime type information.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
Mesh data needed to do the Finite Volume discretisation.
Definition fvMesh.H:85
dynamicFvMesh & mesh
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68