TRUST 1.9.8
HPC thermohydraulic platform
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 Cette classe represente une permeabilite cte.
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;} // Renvoie la valeur de la permeabilite en fonction de la porosite (d'une face par exemple).
35
36protected:
37 double cte;
38};
39
40/*! @brief Cette classe represente la correlation de Carman Kozeny pour la permeabilite d'un lit de particule de diametre donne.
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 // Renvoie la valeur de la permeabilite en fonction de la porosite (d'une face par exemple).
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 Cette classe represente la correlation de Ergun pour la permeabilite d'un lit de particule de diametre donne.
62 *
63 */
65{
66 Declare_instanciable_sans_constructeur(ModPerm_ErgunPourDarcy);
67public:
69};
70
71/*! @brief Cette classe represente la correlation de Ergun associe au terme de Forchheimer, pour la permeabilite d'un lit de particule de diametre donne.
72 *
73 */
75{
76 Declare_instanciable_sans_constructeur(ModPerm_ErgunPourForch);
77public:
79
80 inline double getK(double porosite) const override // Renvoie la valeur de la permeabilite en fonction de la porosite (d'une face par exemple).
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
double getK(double) const override
double getK(double porosite) const override
classe Modele_Permeabilite_base Cette classe de base represente un modele de permeabilite