TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_Generique_Divergence.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_Divergence_included
18#define Champ_Generique_Divergence_included
19
20#include <Champ_Generique_Operateur_base.h>
21#include <Operateur_Div.h>
22
23/*! @brief class Champ_Generique_Divergence
24 *
25 * Field intended to post-process the divergence of a generic field
26 * The class carries a statistical operator "divergence"
27 *
28 */
29
30//// Data file syntax to follow
31//
32// "field_name" Divergence {
33// source generic_field_type" { ...source ref_Champ { Pb_champ "pb_name" "discrete_field_name" } }
34// }
35// "field_name" set by the user will be the name of the generic field
36// "generic_field_type" type of a generic field
37//
38// This type of field implies that the source field has boundary conditions
39// Its application is restricted to certain discrete fields (velocity)
40
42{
43
44 Declare_instanciable(Champ_Generique_Divergence);
45
46public:
47
48 const Noms get_property(const Motcle& query) const override;
49 Entity get_localisation(const int index = -1) const override;
50 const Motcle get_directive_pour_discr() 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;
53
54 inline const Operateur_base& Operateur() const override;
55 inline Operateur_base& Operateur() override;
56 void completer(const Postraitement_base& post) override;
57 void nommer_source() override;
58
59protected:
60
62
63};
64
66{
67 return Op_Div_.valeur();
68}
69
71{
72 return Op_Div_.valeur();
73}
74
75#endif
virtual OWN_PTR(Champ_Fonc_base) &creer_espace_stockage(const Nature_du_champ &nature
class Champ_Generique_Divergence
const Champ_base & get_champ_without_evaluation(OWN_PTR(Champ_base)&espace_stockage) const override
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...
void completer(const Postraitement_base &post) override
const Noms get_property(const Motcle &query) const override
Returns the requested property.
const Operateur_base & Operateur() 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
Operateur_Div Generic class of the hierarchy of operators computing the divergence.
class Operateur_base This class is the base of the hierarchy of objects representing an
Base class for all post-processing objects.