TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Source_Permeabilite_VDF.h
1/****************************************************************************
2* Copyright (c) 2022, CEA
3* All rights reserved.
4*
5* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8* 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
9*
10* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
11* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
12* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
13*
14*****************************************************************************/
15
16#ifndef Source_Permeabilite_VDF_included
17#define Source_Permeabilite_VDF_included
18
19#include <Modele_Permeabilite_base.h>
20
21/// \cond DO_NOT_DOCUMENT
22class Source_Permeabilite_VDF
23{ };
24/// \endcond
25
26/*! @brief class ModPerm_Cte This class represents a constant permeability.
27 *
28 */
30{
31 Declare_instanciable_sans_constructeur(ModPerm_Cte);
32public:
33 ModPerm_Cte() : cte(1.) { }
34 inline double getK(double ) const override { return cte;} // Returns the permeability value as a function of porosity (of a face for example).
35
36protected:
37 double cte;
38};
39
40/*! @brief This class represents the Carman Kozeny correlation for the permeability of a particle bed of given diameter.
41 *
42 */
44{
45 Declare_instanciable_sans_constructeur(ModPerm_Carman_Kozeny);
46public:
47 ModPerm_Carman_Kozeny() : diam(1.), C(180.) { }
48 inline double getDiametre() const { return diam; }
49 inline void setDiametre(double d) { diam = d; }
50
51 inline double getK(double porosite) const override // Returns the permeability value as a function of porosity (of a face for example).
52 {
53 const double tmp = diam *porosite /(1.-porosite);
54 return tmp*tmp*porosite/C;
55 }
56
57protected:
58 double diam, C;
59};
60
61/*! @brief This class represents the Ergun correlation for the permeability of a particle bed of given diameter.
62 *
63 */
65{
66 Declare_instanciable_sans_constructeur(ModPerm_ErgunPourDarcy);
67public:
69};
70
71/*! @brief This class represents the Ergun correlation associated with the Forchheimer term, for the permeability of a particle bed of given diameter.
72 *
73 */
75{
76 Declare_instanciable_sans_constructeur(ModPerm_ErgunPourForch);
77public:
79
80 inline double getK(double porosite) const override // Returns the permeability value as a function of porosity (of a face for example).
81 {
82 const double tmp = diam *porosite*porosite*porosite /(1.-porosite)/C;
83 return tmp*tmp;
84 }
85};
86
87#endif /* Source_Permeabilite_VDF_included */
double getK(double porosite) const override
Returns the permeability value as a function of porosity (of a face, for example).
double getK(double) const override
Returns the permeability value as a function of porosity (of a face, for example).
double getK(double porosite) const override
Returns the permeability value as a function of porosity (of a face, for example).
Modele_Permeabilite_base Base class representing a permeability model.