TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_Generique_Gradient.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
17#ifndef Champ_Generique_Gradient_included
18#define Champ_Generique_Gradient_included
19
20#include <Champ_Generique_Operateur_base.h>
21#include <Operateur_Grad.h>
22
23/*! @brief class Champ_Generique_Gradient OWN_PTR(Champ_base) destine a post-traiter le gradient d un champ generique
24 *
25 * La classe porte un operateur statistique "gradient"
26 *
27 */
28
29//// Syntaxe a respecter pour jdd
30//
31// "nom_champ" Gradient {
32// source "type_champ_gen" { ...source ref_Champ { Pb_champ "nom_pb" "nom_champ_discret" } }
33// }
34// "nom_champ" fixe par utilisateur sera le nom du champ generique
35// "type_champ_gen" type d'un champ generique
36//Ce type de champ implique que le champ source possede des conditions limites
37//Son application est restreinte a certains champs discrets (pression VDF et VEF ou temperature en VEF)
38
40{
41
42 Declare_instanciable(Champ_Generique_Gradient);
43
44public:
45
46 const Noms get_property(const Motcle& query) const override;
47 Entity get_localisation(const int index = -1) const override;
48 const Motcle get_directive_pour_discr() const override;
49 const Champ_base& get_champ(OWN_PTR(Champ_base)& espace_stockage) const override;
50 const Champ_base& get_champ_without_evaluation(OWN_PTR(Champ_base)& espace_stockage) const override;
51
52 inline const Operateur_base& Operateur() const override;
53 inline Operateur_base& Operateur() override;
54 void completer(const Postraitement_base& post) override;
55 void nommer_source() override;
56
57protected:
58
60
61};
62
64{
65 return Op_Grad_.valeur();
66}
67
69{
70 return Op_Grad_.valeur();
71}
72
73#endif
virtual OWN_PTR(Champ_Fonc_base) &creer_espace_stockage(const Nature_du_champ &nature
class Champ_Generique_Gradient OWN_PTR(Champ_base) destine a post-traiter le gradient d un champ gene...
void completer(const Postraitement_base &post) override
const Motcle get_directive_pour_discr() const override
Renvoie la directive (champ_elem, champ_sommets, champ_face ou pression) pour lancer la discretisatio...
const Noms get_property(const Motcle &query) const override
Renvoie la propriete demandee.
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
const Champ_base & get_champ(OWN_PTR(Champ_base)&espace_stockage) const 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_Grad Classe generique de la hierarchie des operateurs calculant le gradient.
classe Operateur_base Classe est la base de la hierarchie des objets representant un
Classe de base pour l'ensemble des postraitements.