TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Modele_turbulence_scal_LES_dyn_VDF.h
1/****************************************************************************
2* Copyright (c) 2024, 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#ifndef Modele_turbulence_scal_LES_dyn_VDF_included
18#define Modele_turbulence_scal_LES_dyn_VDF_included
19
20#include <Modele_turbulence_scal_base.h>
21#include <Motcle.h>
22
23#include <TRUSTTab.h>
24#include <TRUST_Ref.h>
25
26
27class Domaine_Cl_VDF;
28class Domaine_VDF;
29
31{
32
33 Declare_instanciable(Modele_turbulence_scal_LES_dyn_VDF);
34
35public:
36
37 void associer(const Domaine_dis_base&, const Domaine_Cl_dis_base&) override;
38 ////virtual Entree& lire(const Motcle&, Entree&);
39 void set_param(Param& titi) const override;
40 int lire_motcle_non_standard(const Motcle&, Entree&) override;
41
42protected:
43
45 // variable qui vaut 6_points ou plans_parallele suivant
46 // la methode choisie pour stabiliser la constante dynamique
47 int dynamique_y2; // 0 methode classique - 1 methode vT-vT
48 int N_c_;
49 IntVect compt_c_;
50 IntVect corresp_c_;
51 IntTab elem_elem_;
52 DoubleTab cell_cent_vel;
53 DoubleTab model_coeff;
54
55 void mettre_a_jour(double) override;
57
58 ////void calculer_length_scale(DoubleVect& );
59 ////void calculer_cell_cent_vel(DoubleTab& );
60 ////void calculer_filter_field(const DoubleTab& ,DoubleTab& );
61 ////void calculer_Sij( DoubleTab& );
62 ////void calculer_Sij_vel_filt(const DoubleTab& ,DoubleTab& );
63 ////void calculer_S_norme(const DoubleTab& ,DoubleVect& );
64 ////void interpole(const IntVect&, const DoubleVect&, const DoubleVect&, double& );
65
66 void calc_elem_elem();
67 void calcul_tableaux_correspondance(int&, IntVect&, IntVect&);
68 void stabilise_moyenne(const DoubleTab&, const DoubleTab&);
69 void stabilise_moyenne_euler(const DoubleTab&, const DoubleTab&);
70 void stabilise_moyenne_lagrange(const DoubleTab&, const DoubleTab&);
71 void calcul_voisins(const int, IntVect&, DoubleVect&);
72 void calculer_model_coefficient(const DoubleTab&, const DoubleTab&);
73 //A voir
74 void stabilise_moyenne_6_points(const DoubleTab&, const DoubleTab&);
75 //A voir
76 void stabilise_moyenne_plans_paralleles(const DoubleTab&, const DoubleTab&);
77
78 void calculer_filter_coeff(const DoubleTab&, DoubleTab&);
79 void calculer_Lj(const DoubleTab&, const DoubleTab&, const DoubleTab&, const DoubleTab&, DoubleTab&);
80 void calculer_grad_teta(const DoubleVect&, DoubleTab&);
81 void calculer_Mj(const DoubleTab&, const DoubleTab&, const DoubleTab&, const DoubleTab&, const DoubleTab&, DoubleTab&);
82
83private:
84
85 OBS_PTR(Domaine_VDF) le_dom_VDF;
86 OBS_PTR(Domaine_Cl_VDF) le_dom_Cl_VDF;
87
88};
89
90#endif /* Modele_turbulence_scal_LES_dyn_VDF_included */
classe Champ_Fonc_base Classe de base des champs qui sont fonction d'une grandeur calculee
class Domaine_Cl_VDF
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
class Domaine_VDF
Definition Domaine_VDF.h:64
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
void calculer_model_coefficient(const DoubleTab &, const DoubleTab &)
void stabilise_moyenne_lagrange(const DoubleTab &, const DoubleTab &)
void stabilise_moyenne(const DoubleTab &, const DoubleTab &)
void calculer_Mj(const DoubleTab &, const DoubleTab &, const DoubleTab &, const DoubleTab &, const DoubleTab &, DoubleTab &)
void stabilise_moyenne_6_points(const DoubleTab &, const DoubleTab &)
void stabilise_moyenne_plans_paralleles(const DoubleTab &, const DoubleTab &)
void calcul_voisins(const int, IntVect &, DoubleVect &)
void associer(const Domaine_dis_base &, const Domaine_Cl_dis_base &) override
NE FAIT RIEN.
void calculer_Lj(const DoubleTab &, const DoubleTab &, const DoubleTab &, const DoubleTab &, DoubleTab &)
void stabilise_moyenne_euler(const DoubleTab &, const DoubleTab &)
int lire_motcle_non_standard(const Motcle &, Entree &) override
Lecture des parametres de type non simple d'un objet_U a partir d'un flot d'entree.
void calculer_filter_coeff(const DoubleTab &, DoubleTab &)
void calculer_grad_teta(const DoubleVect &, DoubleTab &)
void calcul_tableaux_correspondance(int &, IntVect &, IntVect &)
Classe Modele_turbulence_scal_base Cette classe represente un modele de turbulence pour une equation ...
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
friend class Entree
Definition Objet_U.h:76
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112