TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_Generique_Extraction.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_Generique_Extraction_included
17#define Champ_Generique_Extraction_included
18
19#include <Champ_Gen_de_Champs_Gen.h>
20
21
22/*! @brief A generic field that performs the extraction of a field on a boundary
23 *
24 */
25
26//// Data file syntax to follow
27//
28// "field_name" Extraction { domain "domain_name" boundary_name "boundary_name" [ method ] "method_type"
29// source "generic_field_type" { ...source ref_Champ { Pb_champ "pb_name" "discrete_field_name" } }
30// }
31// "field_name" set by the user will be the name of the generic field
32// "domain_name" name of the domain to which the boundary belongs
33// "boundary_name" name of the boundary on which we want to perform the extraction
34// "method_type" type of method to perform the extraction
35// ("trace" default method or "boundary_field" to extract the_boundary_field)
36// "generic_field_type" type of a generic field
37
39{
40 Declare_instanciable_sans_constructeur(Champ_Generique_Extraction);
41
42public:
44 void set_param(Param& param) const override;
45 Entity get_localisation(const int index = -1) const override;
46 const Champ_base& get_champ(OWN_PTR(Champ_base)& espace_stockage) const override;
47 const Champ_base& get_champ_without_evaluation(OWN_PTR(Champ_base)& espace_stockage) const override;
48 const Noms get_property(const Motcle& query) const override;
49 void nommer_source() override;
50 void completer(const Postraitement_base& post) override;
51 const Domaine& get_ref_domain() const override;
52 void get_copy_domain(Domaine&) const override;
53 const Domaine_dis_base& get_ref_domaine_dis_base() const override;
55 const Motcle get_directive_pour_discr() const override;
56
57protected :
58 Nom dom_extrac_; // Name of the extraction domain
59 Nom nom_fr_; // Name of the boundary on which the extraction is performed
60 Nom methode_; // Type of method for extraction ("trace" or "champ_frontiere")
61 OBS_PTR(Domaine) domaine_; // Reference to the extraction domain
62 OBS_PTR(Domaine_dis_base) le_dom_dis; // The discretized domain - real owner is Domaine_dis_cache
63};
64
65#endif
Base class of generic fields having other generic fields as source. The use of the class methods reli...
virtual OWN_PTR(Champ_Fonc_base) &creer_espace_stockage(const Nature_du_champ &nature
const Noms get_property(const Motcle &query) const override
Returns the requested property.
OBS_PTR(Domaine) domaine_
void completer(const Postraitement_base &post) override
const Champ_base & get_champ(OWN_PTR(Champ_base)&espace_stockage) const override
Extraction of the values of a field (trace or boundary field) on a boundary of the domain.
const Domaine & get_ref_domain() const override
Returns a ref to the domain on which the storage space will be evaluated.
const Domaine_dis_base & get_ref_domaine_dis_base() const override
Returns a ref to the discretized domain on which the storage space will be evaluated.
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 set_param(Param &param) const override
OBS_PTR(Domaine_dis_base) le_dom_dis
const Champ_base & get_champ_without_evaluation(OWN_PTR(Champ_base)&espace_stockage) const override
void get_copy_domain(Domaine &) const override
Creates a copy of the domain on which the storage space will be evaluated.
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
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
A character string (Nom) in uppercase.
Definition Motcle.h:26
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
An array of character strings (VECT(Nom)).
Definition Noms.h:26
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Base class for all post-processing objects.