TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Operateur_Statistique_tps_base.h
1/****************************************************************************
2* Copyright (c) 2025, 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 Operateur_Statistique_tps_base_included
17#define Operateur_Statistique_tps_base_included
18
19#include <Integrale_tps_Champ.h>
20#include <Domaine_forward.h>
21#include <TRUST_Deriv.h>
22
24class Probleme_base;
25
26/*! @brief class Operateur_Statistique_tps_base
27 *
28 * @brief Represents statistical operations on fields.
29 * Statistical operators are used for post-processing.
30 *
31 * @sa Operateurs_Statistique_tps Postraitement, Abstract class, Abstract methods:, void completer(const Probleme_base& )
32 */
34{
36public:
37
38 inline const Nom& localisation_post() const { return localisation_post_; }
39 inline void associer(const Nom& loc_post) { localisation_post_=loc_post; }
40
41 inline virtual void associer_op_stat(const Operateur_Statistique_tps_base&) { }
42 virtual void associer(const Domaine_dis_base&, const Champ_Generique_base&, double, double) =0;
43 virtual void fixer_tstat_deb(double, double) =0;
44 virtual void fixer_tstat_fin(double) =0;
45 virtual void mettre_a_jour(double temps) =0;
46 const Nom& le_nom() const override =0;
47 virtual double temps() const =0;
48 virtual const Integrale_tps_Champ& integrale() const =0;
49 virtual void initialiser(double val) =0;
50 virtual void completer(const Probleme_base&, const Nom& post_name) =0;
51 virtual DoubleTab calculer_valeurs() const =0;
52 virtual int completer_post_statistiques(const Domaine& dom,const int is_axi,Format_Post_base& format);
53 inline double tstat_deb() const { return tstat_deb_; }
54 inline double tstat_fin() const { return tstat_fin_; }
55 inline double tstat_dernier_calcul() const { return tstat_dernier_calcul_; }
56
57 virtual std::vector<YAML_data> data_a_sauvegarder() const { return std::vector<YAML_data>(); }
58
59protected:
61 double tstat_deb_=-123.; //
62 double tstat_dernier_calcul_=-123.; // last time at which statistics were computed
63 double tstat_fin_=-123.; // value chosen by the user
64};
65
66#endif /* Operateur_Statistique_tps_base_included */
class Champ_Generique_base
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
Base class for post-processing output formats for fields (lata, med, cgns, lml, single_lata).
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
Objet_U()
Default constructor: assigns a unique identifier to the object (object_id_) and registers the object ...
Definition Objet_U.cpp:54
class Operateur_Statistique_tps_base
virtual const Integrale_tps_Champ & integrale() const =0
virtual DoubleTab calculer_valeurs() const =0
const Nom & le_nom() const override=0
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
virtual int completer_post_statistiques(const Domaine &dom, const int is_axi, Format_Post_base &format)
virtual std::vector< YAML_data > data_a_sauvegarder() const
virtual double temps() const =0
virtual void fixer_tstat_fin(double)=0
virtual void completer(const Probleme_base &, const Nom &post_name)=0
virtual void associer_op_stat(const Operateur_Statistique_tps_base &)
virtual void initialiser(double val)=0
virtual void fixer_tstat_deb(double, double)=0
virtual void mettre_a_jour(double temps)=0
virtual void associer(const Domaine_dis_base &, const Champ_Generique_base &, double, double)=0
class Probleme_base It is a Probleme_U that is not a coupling.