TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Traitement_particulier_NS_Profils_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 Traitement_particulier_NS_Profils_VDF_included
18#define Traitement_particulier_NS_Profils_VDF_included
19
20#include <Traitement_particulier_NS_Profils.h>
21#include <TRUSTTabs_forward.h>
22
23/*! @brief class Trait_part_NS_Profils_VDF This classe enables a particular treatment
24 *
25 * for computations which have a periodic BC (ie homogeneous direction)
26 * and on which we want profiles in a specific direction and position :
27 * + mean velocity profiles
28 * + fluctuations
29 *
30 *
31 * @sa Navier_Stokes_Turbulent, Traitement_particulier_base, Traitement_particulier_VDF
32 */
34{
35 Declare_instanciable(Traitement_particulier_NS_Profils_VDF);
36
37public :
38
39 void post_traitement_particulier() override ;
40 Entree& lire(const Motcle& , Entree& ) override;
41 Entree& lire(Entree& ) override;
42
43protected :
44 void init_calcul_moyenne() override;
45 void calculer_moyenne_spatiale_vitesse(DoubleTab& , DoubleTab& ,DoubleTab& , DoubleTab& , const IntTab& , const IntTab& , const IntVect& , const int , const DoubleTab& );
46 void calculer_moyenne_spatiale_uv(DoubleTab& , const IntTab& , const IntTab& , const IntVect& , const DoubleTab& );
47 void ecriture_fichiers_moy_spat(const DoubleTab& ,const DoubleTab& , const DoubleTab& , const DoubleTab& ,const DoubleTab& ,const DoubleTab& , const DoubleTab& , const DoubleTab& , const DoubleVect& , const DoubleVect& , const IntVect& , const DoubleTab& , const int );
48 void ecriture_fichiers_moy_spat_1col(const DoubleTab& , const DoubleTab& , const DoubleTab& , const DoubleVect& , const DoubleVect& , const IntVect& , const int );
49 void calculer_moyenne_spatiale_nut(DoubleTab& , const IntTab& , const IntTab& , const IntVect& , const DoubleTab& );
50 void calculer_integrale_temporelle(DoubleTab& , DoubleTab& , DoubleTab& , const DoubleVect& , const DoubleVect&);
51 void ecriture_fichiers_moy_temp(const DoubleTab& , const DoubleTab& , const DoubleTab& , const DoubleTab& ,const DoubleTab& , const IntVect& , const int, const double );
52 void ecriture_fichiers_moy_temp_1col(const DoubleTab& , const DoubleTab& , const IntVect& , const int, const double );
53
54
55protected:
56 DoubleTab Yu_m,Yv_m,Yw_m,Yuv_m; // Coordonnees des points ou est definie la vitesse.
57 DoubleTab Yu_p,Yv_p,Yw_p,Yuv_p;
58 IntTab compt_x_m,compt_y_m,compt_z_m,compt_uv_m; // Nombre de points a "meme Y" pour chaque grandeur.
60 IntTab corresp_u_m, corresp_v_m, corresp_w_m, corresp_uv_m; // Correspondance numerotation globale -> numerotation locale dans Yxx
62
63 DoubleTab xUm,xUp,xWm,xWp,xVm,xVp,xUVm,xUVp; // Positions des points juste avant et apres.
64 DoubleVect delta_Um,delta_Up,delta_Wm,delta_Wp,delta_Vm,delta_Vp,delta_UVm,delta_UVp; // Distance (tjrs positive) entre le point avant ou apres et le point du profil, pour faire les interpolations lineaires et trouver les points en question.
65
66};
67#endif
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
friend class Entree
Definition Objet_U.h:76
class Trait_part_NS_Profils_VDF This classe enables a particular treatment
void calculer_moyenne_spatiale_vitesse(DoubleTab &, DoubleTab &, DoubleTab &, DoubleTab &, const IntTab &, const IntTab &, const IntVect &, const int, const DoubleTab &)
void calculer_moyenne_spatiale_nut(DoubleTab &, const IntTab &, const IntTab &, const IntVect &, const DoubleTab &)
Entree & lire(const Motcle &, Entree &) override
void ecriture_fichiers_moy_spat(const DoubleTab &, const DoubleTab &, const DoubleTab &, const DoubleTab &, const DoubleTab &, const DoubleTab &, const DoubleTab &, const DoubleTab &, const DoubleVect &, const DoubleVect &, const IntVect &, const DoubleTab &, const int)
void calculer_moyenne_spatiale_uv(DoubleTab &, const IntTab &, const IntTab &, const IntVect &, const DoubleTab &)
void ecriture_fichiers_moy_temp_1col(const DoubleTab &, const DoubleTab &, const IntVect &, const int, const double)
void ecriture_fichiers_moy_temp(const DoubleTab &, const DoubleTab &, const DoubleTab &, const DoubleTab &, const DoubleTab &, const IntVect &, const int, const double)
void calculer_integrale_temporelle(DoubleTab &, DoubleTab &, DoubleTab &, const DoubleVect &, const DoubleVect &)
void ecriture_fichiers_moy_spat_1col(const DoubleTab &, const DoubleTab &, const DoubleTab &, const DoubleVect &, const DoubleVect &, const IntVect &, const int)