TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_Generique_modifier_pour_QC.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
17#ifndef Champ_Generique_modifier_pour_QC_included
18#define Champ_Generique_modifier_pour_QC_included
19
20#include <Champ_Gen_de_Champs_Gen.h>
21#include <TRUST_Ref.h>
22
23class Milieu_base;
24
25/*! @brief class Champ_Generique_modifier_pour_QC OWN_PTR(Champ_base) destine a post-traiter un champ d un probleme en quasi-compressible
26 *
27 * que l on souhaite multiplier ou diviser par la masse volumique (rho).
28 * La classe porte une REF au milieu qui doit etre de type Fluide_Quasi_Compressible.
29 *
30 */
31
32//// Syntaxe a respecter pour jdd
33//
34// "nom_champ" modifier_pour_QC {
35// [division]
36// source "type_champ_gen" { ... source ref_Champ { Pb_champ "nom_pb" "nom_champ_discret" } }
37// }
38// "nom_champ" fixe par utilisateur sera le nom du champ generique
39// "division" active la division du champ par rho sinon le champ est multiplie par rho
40// "type_champ_gen" type d'un champ generique
41
43{
44 Declare_instanciable_sans_constructeur(Champ_Generique_modifier_pour_QC);
45
46public:
47
49 void set_param(Param& param) const override;
50 void completer(const Postraitement_base& post) 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 void nommer_source() override;
54
55protected:
56
57 bool diviser_ = false;
58 OBS_PTR(Milieu_base) mon_milieu_;
59};
60
61#endif
62
Classe de base des champs generiques ayant comme source d'autres champs generiques L'utilisation des ...
virtual OWN_PTR(Champ_Fonc_base) &creer_espace_stockage(const Nature_du_champ &nature
OBS_PTR(Milieu_base) mon_milieu_
const Champ_base & get_champ_without_evaluation(OWN_PTR(Champ_base)&espace_stockage) const override
void completer(const Postraitement_base &post) 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
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112
Classe de base pour l'ensemble des postraitements.