TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_Post_Operateur_Eqn.h
1/****************************************************************************
2* Copyright (c) 2026, 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_Post_Operateur_Eqn_included
17#define Champ_Post_Operateur_Eqn_included
18
19#include <Champ_Generique_Operateur_base.h>
20#include <TRUST_Ref.h>
21#include <Operateur.h>
22
23class Equation_base;
24
25/*! @brief class Champ_Post_Operateur_Eqn OWN_PTR(Champ_base) intended to post-process the gradient of a generic field
26 *
27 * The class carries a statistical operator "gradient"
28 *
29 * Syntax to follow for the data file
30 *
31 * chosen_name operateur_eqn
32 * {
33 * sources { refchamp { pb_champ nom_pb nom_inconnue } }
34 * numero_source/numero op 1
35 * }
36 * The name of the unknown must be entered, not that of the equation
37 * The number of source terms is that of the data file, the order must be respected
38 * For operators: 0 diffusion, 1 convection
39 *
40 */
41
43{
44
45 Declare_instanciable(Champ_Post_Operateur_Eqn);
46
47public:
48
49 const Noms get_property(const Motcle& query) const override;
50 Entity get_localisation(const int index = -1) const override;
51 const Champ_base& get_champ(OWN_PTR(Champ_base)& espace_stockage) const override;
52 const Champ_base& get_champ_without_evaluation(OWN_PTR(Champ_base)& espace_stockage) const override;
54
55 const Operateur_base& Operateur() const override;
56 Operateur_base& Operateur() override;
57 void completer(const Postraitement_base& post) override;
58 void nommer_source() override;
59 //virtual Entree & lire(const Motcle & motcle, Entree & is);
60 void set_param(Param& param) const override;
61 void verification_cas_compo() const;
62
63protected:
65 int numero_op_ = -1;
66 int numero_masse_ = -1;
68 bool sans_solveur_masse_ = false;
69 Entity localisation_inco_ = Entity::NODE;
70 int compo_ = -1; //To identify the component to retrieve
71};
72
73#endif
virtual OWN_PTR(Champ_Fonc_base) &creer_espace_stockage(const Nature_du_champ &nature
class Champ_Post_Operateur_Eqn OWN_PTR(Champ_base) intended to post-process the gradient of a generic...
void completer(const Postraitement_base &post) override
void nommer_source() override
Entity localisation_inco_
const Noms get_property(const Motcle &query) const override
Returns the requested property.
int numero_source_
const Champ_base & get_champ_compo_without_evaluation(OWN_PTR(Champ_base)&espace_stockage) const
const Champ_base & get_champ(OWN_PTR(Champ_base)&espace_stockage) const override
void set_param(Param &param) const override
int numero_masse_
OBS_PTR(Equation_base) ref_eq_
int compo_
bool sans_solveur_masse_
void verification_cas_compo() const
int numero_op_
Entity get_localisation(const int index=-1) const override
Returns the type of geometric entities on which the discrete values are attached (NODE for a P1 field...
const Champ_base & get_champ_without_evaluation(OWN_PTR(Champ_base)&espace_stockage) const override
const Operateur_base & Operateur() const override
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
class Equation_base The role of an equation is the calculation of one or more fields....
A character string (Nom) in uppercase.
Definition Motcle.h:26
An array of character strings (VECT(Nom)).
Definition Noms.h:26
class Operateur_base This class is the base of the hierarchy of objects representing an
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Base class for all post-processing objects.