TrioCFD 1.9.8
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) destine a post-traiter le gradient d un champ generique
26 *
27 * La classe porte un operateur statistique "gradient"
28 *
29 * Syntaxe a respecter pour jdd
30 *
31 * nom_choisi operateur_eqn
32 * {
33 * sources { refchamp { pb_champ nom_pb nom_inconnue } }
34 * numero_source/numero op 1
35 * }
36 * Il faut entrer le nom de l'inconnue et pas celui de l'equation
37 * Le numero des termes sources est celui du jdd, bien respecter l'ordre
38 * Pour les operateurs : 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; //Pour identifier la composante a recuperer
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) destine a post-traiter le gradient d un champ gene...
void completer(const Postraitement_base &post) override
void nommer_source() override
Entity localisation_inco_
const Noms get_property(const Motcle &query) const override
Renvoie la propriete demandee.
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
Renvoie le type des entites geometriques sur auxquelles les valeurs discretes sont attachees (NODE po...
const Champ_base & get_champ_without_evaluation(OWN_PTR(Champ_base)&espace_stockage) const override
const Operateur_base & Operateur() const override
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
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_base Classe est la base de la hierarchie des objets representant un
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Classe de base pour l'ensemble des postraitements.