TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Paroi_contact_fictif.cpp
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#include <Paroi_contact_fictif.h>
17#include <Discretisation_base.h>
18#include <Probleme_base.h>
19#include <Equation_base.h>
20
21Implemente_instanciable(Paroi_contact_fictif, "paroi_contact_fictif", Cond_lim_utilisateur_base);
22// XD paroi_contact_fictif condlim_base paroi_contact_fictif INHERITS_BRACE This keyword is derivated from paroi_contact
23// XD_CONT and is especially dedicated to compute coupled fluid/solid/fluid problem in case of thin material. Thanks to
24// XD_CONT this option, solid is considered as a fictitious media (no mesh, no domain associated), and coupling is
25// XD_CONT performed by considering instantaneous thermal equilibrium in it (for the moment).
26// XD attr autrepb ref_Pb_base autrepb REQ Name of other problem.
27// XD attr nameb chaine nameb REQ Name of bord.
28// XD attr conduct_fictif floattant conduct_fictif REQ thermal conductivity
29// XD attr ep_fictive floattant ep_fictive REQ thickness of the fictitious media
30
32{
33 return s << que_suis_je() << " " << nom_autre_pb << " " << nom_autre_bord << " " << conduct_fictif << " " << ep_fictif;
34}
35
37{
38 s >> nom_autre_pb;
39 s >> nom_autre_bord;
40 s >> conduct_fictif;
41 s >> ep_fictif;
42 return s;
43}
44
46{
47 const Nom& nom_mon_pb = mon_equation->probleme().le_nom();
48 if (mon_equation->discretisation().is_vdf())
49 {
50 ajout = "paroi_echange_contact_VDF ";
51 ajout += nom_autre_pb;
52 ajout += " ";
53 ajout += nom_autre_bord;
54 ajout += " temperature ";
55 ajout += Nom(conduct_fictif / ep_fictif, "%e");
56 }
57 else if (mon_equation->discretisation().is_PolyMAC_CDO())
58 {
59 ajout = "paroi_echange_contact_PolyMAC_CDO ";
60 ajout += nom_autre_pb;
61 ajout += " ";
62 ajout += nom_autre_bord;
63 ajout += " temperature ";
64 ajout += Nom(conduct_fictif / ep_fictif, "%e");
65 }
66 else if (mon_equation->discretisation().is_PolyMAC_HFV())
67 {
68 ajout = "paroi_echange_contact_PolyMAC_HFV ";
69 ajout += nom_autre_pb;
70 ajout += " ";
71 ajout += nom_autre_bord;
72 ajout += " temperature ";
73 ajout += Nom(conduct_fictif / ep_fictif, "%e");
74 }
75 else if (mon_equation->discretisation().is_PolyMAC_MPFA())
76 {
77 ajout = "paroi_echange_contact_PolyMAC_MPFA ";
78 ajout += nom_autre_pb;
79 ajout += " ";
80 ajout += nom_autre_bord;
81 ajout += " temperature ";
82 ajout += Nom(conduct_fictif / ep_fictif, "%e");
83 }
84 else
85 {
86 ajout = "temperature_imposee_paroi ";
87 ajout += "Champ_Front_contact_fictif_VEF ";
88 ajout += nom_mon_pb;
89 ajout += " ";
90 ajout += nom_bord_;
91 ajout += " ";
92 ajout += nom_autre_pb;
93 ajout += " ";
94 ajout += nom_autre_bord;
95 ajout += " ";
96 ajout += Nom(conduct_fictif, "%e");
97 ajout += " ";
98 ajout += Nom(ep_fictif, "%e");
99 }
100}
classe Cond_lim_utilisateur_base: Les classes heritant de cette classe sont des classes utilisaturs
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
const Nom & le_nom() const override
Renvoie *this;.
Definition Nom.cpp:563
const Nom & que_suis_je() const
renvoie la chaine identifiant la classe.
Definition Objet_U.cpp:104
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
Definition Objet_U.cpp:293
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
void complement(Nom &nom) override
Classe de base des flux de sortie.
Definition Sortie.h:52