TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Statistiques_dns_ijk_FT.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#ifndef Statistiques_dns_ijk_FT_included
16#define Statistiques_dns_ijk_FT_included
17#include <IJK_Field_vector.h>
18#include <IJK_Field.h>
19#include <Statistiques_dns_ijk.h>
20#include <TRUSTArrays.h>
21#include <TRUST_Ref.h>
22
24class Domaine_IJK;
25
27{
28 Declare_instanciable_sans_constructeur(Statistiques_dns_ijk_FT);
29public:
30 Statistiques_dns_ijk_FT(); // Je ne sais pas compiler le Vect(Statistiques_dns_ijk_FT) sans lui...
33 void initialize(const Probleme_FTD_IJK_base& ijk_ft,const Domaine_IJK&);
34 void initialize(const Probleme_FTD_IJK_base& ijk_ft,const Domaine_IJK& splitting,
35 const int check_stats);
36 void alloc_fields();
37 Sortie& completer_print(Sortie& os) const override;
38 void completer_read(Param& param) override;
39 int lire_motcle_non_standard(const Motcle& mot, Entree& is) override;
40
41 void update_stat(Probleme_FTD_IJK_base& cas, const double dt);
42
43 void postraiter(Sortie&, int flag_valeur_instantanee = 0) const;
44 void postraiter_thermique(const double t) const;
45 double compute_desequil_alpha(const Domaine_IJK& geom_NS,
46 const double portee_wall_repulsion) const;
47
48 const IJK_Field_vector3_double& get_IJK_field_vector(const Motcle& nom) override;
49 const IJK_Field_double& get_IJK_field(const Motcle& nom) override;
50
51protected:
53 int nb_thermal_fields_; // Number of objects thermique_ in the list
54 int nvalt_; // Number of variables post-processed per field
55 // Last instantaneous value of the space average (only on processor 0)
56 DoubleTab moyenne_spatiale_instantanee_temperature_; // (i,j,k) -> (nvalt_,nb_elem_k_tot,nb_thermal_fields_)
57 // Temporal integral of statistics variables
58 DoubleTab integrale_temporelle_temperature_; // (i,j,k) -> (nvalt_,nb_elem_k_tot,nb_thermal_fields_)
59 VECT(Nom) noms_moyennes_temperature_;
60};
61#endif
This class encapsulates all the information related to the eulerian mesh for TrioIJK.
Definition Domaine_IJK.h:47
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
friend class Entree
Definition Objet_U.h:76
friend class Sortie
Definition Objet_U.h:75
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Sortie & completer_print(Sortie &os) const override
const IJK_Field_double & get_IJK_field(const Motcle &nom) override
int lire_motcle_non_standard(const Motcle &mot, Entree &is) override
Lecture des parametres de type non simple d'un objet_U a partir d'un flot d'entree.
const IJK_Field_vector3_double & get_IJK_field_vector(const Motcle &nom) override
void postraiter(Sortie &, int flag_valeur_instantanee=0) const
void completer_read(Param &param) override
VECT(Nom) noms_moyennes_temperature_
void associer_probleme(const Probleme_FTD_IJK_base &)
void initialize(const Probleme_FTD_IJK_base &ijk_ft, const Domaine_IJK &)
void postraiter_thermique(const double t) const
void update_stat(Probleme_FTD_IJK_base &cas, const double dt)
double compute_desequil_alpha(const Domaine_IJK &geom_NS, const double portee_wall_repulsion) const
virtual void initialize(const Domaine_IJK &)