TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Traitement_particulier_NS_THI_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
17#ifndef Traitement_particulier_NS_THI_VEF_included
18#define Traitement_particulier_NS_THI_VEF_included
19
20#include <Traitement_particulier_NS_THI.h>
21#include <Op_Diff_VEF_Face.h>
22#include <Champ_P1NC.h>
23#include <TRUSTVects.h>
24
25
26/*! @brief classe Traitement_particulier_NS_THI_VEF Cette classe permet de faire les traitements particuliers
27 *
28 * pour les calculs de THI, en particulier initialisation
29 * particuliere et calculs des spectres!!
30 *
31 *
32 * @sa Navier_Stokes_Turbulent, Traitement_particulier_base,, Traitement_particulier_VEF
33 */
35{
36 Declare_instanciable(Traitement_particulier_NS_THI_VEF) ;
37
38public :
39
40 Entree& lire(Entree& ) override;
41 void preparer_calcul_particulier() override ;
42 void post_traitement_particulier() override ;
43 void determine_tab_fft_VEF_3D(IntTab& , DoubleTab& , IntVect& , int& , int& );
44 void determine_tab_fft_VEF_1D(const IntTab& , const DoubleTab& , const IntVect& , IntVect& , IntVect& );
45 void calcul_spectre_3D(const DoubleTab& , Nom , double& );
46 void calcul_spectre_1D(const DoubleTab& , Nom , double& );
47 void calcul_spectre_operateur(int , DoubleTab&, DoubleTab& ,double) override { };
48
49protected :
50
51 double calcul_volume_elem() ;
52 void renorm_Ec() override;
53
54 double calcul_Ec_spatial(const DoubleTab& , Nom ) ;
55 void calcul_Df_spatial(double& ) ;
56 void calcul_Sk(DoubleTab& ) ;
57 void calcul_nu_t();
58 void init_calc_spectre() override;
59 void calcul_vitesse_moyenne(const DoubleTab& , DoubleVect& ) ;
60 void calcul_moyenne(const DoubleTab& , double& ) ;
61 void impression_moyenne();
63 void conservation_Ec();
64 void calcul_spectre() override;
65 void calcul_correlations(const DoubleTab&);
66 void isotropie(const DoubleTab& , Nom );
67 void sorties_globales() override;
68
69 void ch_pour_fft_VEF_3D(const DoubleTab& , DoubleTab& , DoubleTab& , DoubleTab& , int ) const;
70 void ch_pour_fft_VEF_1D(const DoubleTab& , DoubleVect& , DoubleVect& , DoubleVect& , int , int ) const;
71
72 int ppcm(int , int);
73 int pgcd(int , int);
74
75private:
76
77 double L_BOITE;
78 IntTab tab_calc_fft_3D;
79 IntTab tab_calc_fft_1D;
80 DoubleTab tab_coord_1D;
81 double Ec_tot_old, temps_old;
82 int cle_premier_pas_dt;
83
84 int calc_sp_1D, calc_sp_3D, compteur_perio_spectre, cle_suppr_vit_moy, calc_correlations;
85 int oui_conservation_Ec;
86 DoubleVect moyenne_vitesse;
87 DoubleVect moyennes_scal;
88 double periode_calc_spectre;
89 double temps_retournement;
90 double volume_total;
91
92 int nb_points_3D_elem, nb_spectres_3D_elem;
93 int nb_points_3D, nb_spectres_3D;
94 IntVect nb_points_1D, nb_spectres_1D;
95
96 int nb_champs_scalaires; //nb de champs scalaire a postraiter : temperature1 etc...
97 Noms noms_champs_scalaires; // les noms des champs scalaires a postraiter
98};
99
100#endif
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
friend class Entree
Definition Objet_U.h:76
classe Traitement_particulier_NS_THI_VEF Cette classe permet de faire les traitements particuliers
void calcul_vitesse_moyenne(const DoubleTab &, DoubleVect &)
void calcul_spectre_3D(const DoubleTab &, Nom, double &)
void determine_tab_fft_VEF_3D(IntTab &, DoubleTab &, IntVect &, int &, int &)
void calcul_spectre_operateur(int, DoubleTab &, DoubleTab &, double) override
void ch_pour_fft_VEF_1D(const DoubleTab &, DoubleVect &, DoubleVect &, DoubleVect &, int, int) const
void calcul_spectre_1D(const DoubleTab &, Nom, double &)
void determine_tab_fft_VEF_1D(const IntTab &, const DoubleTab &, const IntVect &, IntVect &, IntVect &)
void ch_pour_fft_VEF_3D(const DoubleTab &, DoubleTab &, DoubleTab &, DoubleTab &, int) const
classe Traitement_particulier_THI Cette classe permet de faire les traitements particuliers