TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Paroi_2couches_VDF.h
1/****************************************************************************
2* Copyright (c) 2017, 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
17
18#ifndef Paroi_2couches_VDF_included
19#define Paroi_2couches_VDF_included
20
21#include <Paroi_hyd_base_VDF.h>
22#include <Paroi_log_QDM.h>
23
24
25class Champ_Fonc_base;
26class Param;
27
28/*! @brief CLASS: Paroi_2couches_VDF
29 *
30 * .SECTION voir aussi
31 * Turbulence_paroi_base
32 *
33 */
35{
36
37 Declare_instanciable_sans_constructeur(Paroi_2couches_VDF);
38
39public:
40
41 void set_param(Param& param) const override;
42 int init_lois_paroi() override;
43 int calculer_hyd(DoubleTab& ) override;
44 int calculer_hyd_BiK(DoubleTab& , DoubleTab& ) override;
45 int calculer_hyd(DoubleTab& , DoubleTab& ) override;
46 void calculer_uplus_dplus(DoubleVect& ,DoubleVect& ,DoubleVect& ,int ,double ,double ,double ) ;
47
48 inline const DoubleVect& tab_u_plus() const;
49 //inline double tab_u_star(int face) const;
50 void imprimer_ustar(Sortie& os) const override;
51
52 bool use_shear() const override
53 {
54 return false;
55 }
56protected:
57
58
59 double Cmu;
60 double Kappa; // Constante de Karman
61 double Erugu; // La valeur du parametre Erugu depend
62 // de la rugosite de la paroi
63 double A_plus;
64
65 DoubleVect uplus_;
66 DoubleVect dplus_;
67
69 int calculer_u_star_sous_couche_tampon(double& ,double ,double,double ,int );
70 int calculer_u_star_sous_couche_log(double ,double ,double ,int );
71
72};
73
74///////////////////////////////////////////////////////////
75//
76// Fonctions inline de la classe Paroi_2couches_VDF
77//
78///////////////////////////////////////////////////////////
79
80inline const DoubleVect& Paroi_2couches_VDF::tab_u_plus() const
81{
82 return uplus_;
83}
84
85//inline double Paroi_2couches_VDF::tab_u_star(int face) const
86//{
87// return tab_u_star_(face);
88//}
89
90#endif
classe Champ_Fonc_base Classe de base des champs qui sont fonction d'une grandeur calculee
friend class Sortie
Definition Objet_U.h:75
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
CLASS: Paroi_2couches_VDF.
int init_lois_paroi() override
int calculer_hyd(DoubleTab &) override
bool use_shear() const override
void imprimer_ustar(Sortie &os) const override
void set_param(Param &param) const override
void calculer_uplus_dplus(DoubleVect &, DoubleVect &, DoubleVect &, int, double, double, double)
int calculer_hyd_BiK(DoubleTab &, DoubleTab &) override
int calculer_u_star_sous_couche_log(double, double, double, int)
const DoubleVect & tab_u_plus() const
int calculer_u_star_sous_couche_tampon(double &, double, double, double, int)
Paroi_log_QDM()=default