TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_Generique_Ecart_Type.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#ifndef Champ_Generique_Ecart_Type_included
17#define Champ_Generique_Ecart_Type_included
18
19#include <Champ_Generique_Statistiques_base.h>
20#include <TRUSTTabs_forward.h>
21#include <Op_Ecart_type.h>
22#include <TRUST_Ref.h>
23
25
26/*! @brief class Champ_Generique_Ecart_Type OWN_PTR(Champ_base) destine a post-traiter un Ecart_Type d un champ generique
27 *
28 * La classe porte un operateur statistique "Op_Ecart_Type"
29 *
30 * Syntaxe a respecter pour jdd
31 *
32 * "nom_champ" Ecart_Type { t_deb "val_tdeb" t_fin "val_tfin"
33 * source "type_champ_gen" { ...source ref_Champ { Pb_champ "nom_pb" "nom_champ_discret" } }
34 * }
35 * "nom_champ" fixe par utilisateur sera le nom du champ generique
36 * "val_tdeb" et "val_tfin" valeur de debut et fin des statistiques pour ce champ
37 * "type_champ_gen" type d'un champ generique
38 *
39 */
40
42{
43 Declare_instanciable(Champ_Generique_Ecart_Type);
44public:
45 const Noms get_property(const Motcle& query) const override;
46
47 inline double temps() const override { return Op_Ecart_Type_.integrale().le_champ_calcule().temps(); }
48 inline const Integrale_tps_Champ& integrale() const override { return Op_Ecart_Type_.integrale(); }
49 inline const DoubleTab& valeurs() const { return Op_Ecart_Type_.moyenne().integrale().le_champ_calcule().valeurs(); }
50 inline const DoubleTab& valeurs_carre() const { return Op_Ecart_Type_.integrale().le_champ_calcule().valeurs(); }
51 inline double dt_integration() const { return Op_Ecart_Type_.moyenne().dt_integration(); }
52 inline double dt_integration_carre() const { return Op_Ecart_Type_.dt_integration_carre(); }
54 inline const Operateur_Statistique_tps_base& Operateur_Statistique() const override { return Op_Ecart_Type_; }
55 const Champ_base& get_champ_without_evaluation(OWN_PTR(Champ_base)& espace_stockage) const override;
56 const Champ_base& get_champ(OWN_PTR(Champ_base)& espace_stockage) const override;
57 void completer(const Postraitement_base& post) override;
58 void nommer_source() override;
59
60protected:
62
63private:
64 mutable OWN_PTR(Champ_Fonc_base) espace_stockage_;
65};
66
67#endif
classe Champ_Fonc_base Classe de base des champs qui sont fonction d'une grandeur calculee
class Champ_Generique_Ecart_Type OWN_PTR(Champ_base) destine a post-traiter un Ecart_Type d un champ ...
const DoubleTab & valeurs() const
const Operateur_Statistique_tps_base & Operateur_Statistique() const override
const Noms get_property(const Motcle &query) const override
Renvoie la propriete demandee.
const Integrale_tps_Champ & integrale() const override
void completer(const Postraitement_base &post) override
const DoubleTab & valeurs_carre() const
const Champ_base & get_champ_without_evaluation(OWN_PTR(Champ_base)&espace_stockage) const override
const Champ_base & get_champ(OWN_PTR(Champ_base)&espace_stockage) const override
Operateur_Statistique_tps_base & Operateur_Statistique() override
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
classe Operateur_Statistique_tps_base Represente des operations statistiques sur les champs.
Classe de base pour l'ensemble des postraitements.