TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_Generique_Correlation.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_Correlation_included
17#define Champ_Generique_Correlation_included
18
19#include <Champ_Generique_Statistiques_base.h>
20#include <TRUSTTabs_forward.h>
21#include <Op_Correlation.h>
22
24
25/*! @brief class Champ_Generique_Correlation
26 *
27 * Field intended to post-process a correlation of a generic field
28 * The class carries a statistical operator "Op_Correlation"
29 *
30 */
31
32//// Data file syntax to follow
33//
34// "field_name" correlation { t_deb "val_tdeb" t_fin "val_tfin"
35// source "generic_field_type" { ...source ref_Champ { Pb_champ "pb_name" "discrete_field_name1" } }
36// source "generic_field_type" { ...source ref_Champ { Pb_champ "pb_name" "discrete_field_name2" } }
37// }
38// "field_name" set by the user will be the name of the generic field
39// "val_tdeb" and "val_tfin" value of the start and end of statistics for this field
40// "generic_field_type" type of a generic field
41// Two sources are to be specified for this type of field
42
44{
45
46 Declare_instanciable(Champ_Generique_Correlation);
47
48public:
49
50 const Noms get_property(const Motcle& query) const override;
51
52 inline double temps() const override
53 {
54 return Op_Correlation_.integrale().le_champ_calcule().temps();
55 };
56 inline const Integrale_tps_Champ& integrale() const override
57 {
58 return Op_Correlation_.integrale();
59 };
60
61 inline const Operateur_Statistique_tps_base& Operateur_Statistique() const override;
63 void completer(const Postraitement_base& post) override;
64
65 const Motcle get_directive_pour_discr() const override;
66 const Champ_base& get_champ_without_evaluation(OWN_PTR(Champ_base)& espace_stockage) const override;
67 const Champ_base& get_champ(OWN_PTR(Champ_base)& espace_stockage) const override;
68 void nommer_source() override;
69 int get_info_type_post() const override;
70
71protected:
72
74
75private:
76 mutable OWN_PTR(Champ_Fonc_base) espace_stockage_;
77};
78
83
88
89#endif
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
class Champ_Generique_Correlation
const Champ_base & get_champ_without_evaluation(OWN_PTR(Champ_base)&espace_stockage) const override
const Operateur_Statistique_tps_base & Operateur_Statistique() const override
const Noms get_property(const Motcle &query) const override
Returns the requested property.
void completer(const Postraitement_base &post) override
const Integrale_tps_Champ & integrale() const override
const Champ_base & get_champ(OWN_PTR(Champ_base)&espace_stockage) const override
const Motcle get_directive_pour_discr() const override
Returns the directive (champ_elem, champ_sommets, champ_face or pression) to launch the discretizatio...
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
A character string (Nom) in uppercase.
Definition Motcle.h:26
An array of character strings (VECT(Nom)).
Definition Noms.h:26
class Operateur_Statistique_tps_base
Base class for all post-processing objects.