TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Paroi_log_QDM.h
1/****************************************************************************
2* Copyright (c) 2015 - 2016, 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 Paroi_log_QDM_included
17#define Paroi_log_QDM_included
18
19#include <Table.h>
20#include <Modele_turbulence_hyd_base.h>
21
22class Param;
23
24/*! @brief Classe rassemblant les specificites d une loi logarithmique
25 *
26 */
28{
29public:
30
31 Paroi_log_QDM() = default;
32 void set_param(Param& param) const;
34 double calcul_lm_plus(double d_plus);
35
36 inline void set_kappa(double& val)
37 {
38 Kappa_=val;
39 };
40 inline void set_A_plus(double& val)
41 {
42 A_plus=val;
43 };
44 inline void set_Erugu(double& val)
45 {
46 Erugu=val;
47 };
48
49protected:
50
51 double A_plus = 26;
52 double Cmu_ = CMU;
53 double Kappa_ = 0.415; // Constante de Karman
54 double Erugu = 9.11; // La valeur du parametre Erugu depend de la rugosite de la paroi
55
56 Table table_hyd; // table qui contient les valeurs de U+d+ en fonction de d+.
57};
58
59double Fdypar_direct(double lm_plus);
60double Fdypar(double d_plus,double kappa,double a_plus);
61
62// Calcul approche de l'integrale entre les bornes a et b
63// d'une fonction definie et bornee par la methode de Gauss Legendre
64double integrale(double a,double b,double param1,double param2, double (*pf) (double,double,double) ) ;
65
66
67#endif
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
void set_Erugu(double &val)
void set_A_plus(double &val)
void init_lois_paroi_hydraulique_()
Paroi_log_QDM()=default
void set_param(Param &param) const
double calcul_lm_plus(double d_plus)
void set_kappa(double &val)
Definition Table.h:29