TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Paroi_loi_WW_hyd_VEF.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_loi_WW_hyd_VEF_included
17#define Paroi_loi_WW_hyd_VEF_included
18
19
20#include <Paroi_std_hyd_VEF.h>
21class Param;
22
24{
25
26 // appel a la macro pour une classe instanciable
27 // dont le constructeur doit etre code
28 Declare_instanciable_sans_constructeur(Paroi_loi_WW_hyd_VEF);
29
30public:
32 void set_param(Param& param) const override;
33
34 /* calculer_hyd pour k-epsilon qui renvoie une erreur */
35 int calculer_hyd(DoubleTab& ) override;
36
37 /* calculer_hyd pour L.E.S */
38 int calculer_hyd(DoubleTab& , DoubleTab& ) override;
39
40protected :
41
42 /* constante pour la loi en WWance */
43 double A;
44 double B;
45
46 double Y0;
47
48 int init_lois_paroi_hydraulique() override;
49 int preparer_calcul_hyd(DoubleTab& );
50 int calculer_u_star_sous_couche_visq(double ,double ,double ,int );
51 int calculer_u_star_couche_puissance(double ,double ,double ,int );
52 int calculer_couche_puissance(DoubleTab& ,DoubleTab& ,double ,int ,int );
53 int calculer_local(double, DoubleTab& ,DoubleTab& , double , double,double ,int ,int );
54 bool impr = false;
55};
56double norm_2D_vit(const DoubleTab& vit,int num1,int num2,int fac,const Domaine_VEF& domaine,double& u,double& val1, double& val2);
57double norm_2D_vit3(const DoubleTab& vit,int num1,int num2,int num3,int fac,const Domaine_VEF& domaine,double& u,double& val1, double& val2);
58double norm_3D_vit(const DoubleTab& vit,int fac,int num1,int num2,int num3,const Domaine_VEF& domaine,double& val1,double& val2,double& val3);
59double norm_3D_vit4(const DoubleTab& vit,int fac,int num1,int num2,int num3,int num4,const Domaine_VEF& domaine,double& val1,double& val2,double& val3);
60double distance_2D(int fac,int elem,const Domaine_VEF& domaine,double& signe);
61double distance_2D_som(int fac,int elem,const Domaine_VEF& domaine);
62double distance_3D(int fac,int elem,const Domaine_VEF& domaine,double& signe);
63double distance_3D_som(int fac,int elem,const Domaine_VEF& domaine);
64
65
66#endif
67
class Domaine_VEF
Definition Domaine_VEF.h:54
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
int calculer_u_star_sous_couche_visq(double, double, double, int)
int init_lois_paroi_hydraulique() override
int calculer_couche_puissance(DoubleTab &, DoubleTab &, double, int, int)
int calculer_hyd(DoubleTab &) override
int calculer_local(double, DoubleTab &, DoubleTab &, double, double, double, int, int)
void set_param(Param &param) const override
int preparer_calcul_hyd(DoubleTab &)
int calculer_u_star_couche_puissance(double, double, double, int)