TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Echange_global_impose_rayo_semi_transp.cpp
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#include <Echange_global_impose_rayo_semi_transp.h>
17#include <Equation_base.h>
18#include <Motcle.h>
19
20Implemente_instanciable(Echange_global_impose_rayo_semi_transp, "Echange_global_impose_rayo_semi_transp", Echange_global_impose);
21
23{
24 return os;
25}
26
28{
29 Motcle motlu;
30 Motcles les_motcles(2);
31 {
32 les_motcles[0] = "h_imp";
33 les_motcles[1] = "T_ext";
34 }
35
36 int ind = 0;
37 while (ind < 2)
38 {
39 is >> motlu;
40 int rang = les_motcles.search(motlu);
41
42 switch(rang)
43 {
44 case 0:
45 {
46 is >> h_imp_;
47 break;
48 }
49 case 1:
50 {
51 is >> le_champ_front;
52 break;
53 }
54 default:
55 {
56 Cerr << "Erreur a la lecture de la condition aux limites de type " << finl;
57 Cerr << "Echange_global_impose_rayo_semi_transp " << finl;
58 Cerr << "On attendait " << les_motcles << "a la place de " << motlu << finl;
60 }
61 }
62 ind++;
63 }
64
65 return is;
66}
67
72
74{
75 if (le_champ_front)
76 {
78 const int nb_comp = le_champ_front->nb_comp();
79 eq.verifie_ch_init_nb_comp(eq.inconnue(), nb_comp);
80 }
81}
82
84{
85 return (*this);
86}
87
classe Champ_front_base Classe de base pour la hierarchie des champs aux frontieres.
classe Cond_lim_base Classe de base pour la hierarchie des classes qui representent les differentes c...
Domaine_Cl_dis_base & domaine_Cl_dis()
Renvoie le domaine des conditions aux limites discretisee dont l'objet fait partie.
classe Echange_global_impose_rayo_semi_transp cette classe est utilisee pour imposer une temperature ...
void verifie_ch_init_nb_comp() const override
Appel la verification du champ lu par l intermediaire de l equation pour laquelle on considere la con...
void completer() override
NE FAIT RIEN A surcharger dans les classes derivees.
Classe Echange_global_impose Cette classe represente le cas particulier de la classe.
void completer() override
NE FAIT RIEN A surcharger dans les classes derivees.
virtual Champ_front_base & T_ext()
Renvoie le champ T_ext de temperature imposee a la frontiere.
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
classe Equation_base Le role d'une equation est le calcul d'un ou plusieurs champs....
virtual const Champ_Inc_base & inconnue() const =0
virtual void verifie_ch_init_nb_comp(const Champ_Inc_base &ch_ref, const int nb_comp) const
Verification du nombre de composantes lues pour la specification d un champ.
const Equation_base & equation() const
Renvoie la reference sur l'equation pointe par MorEqn::mon_equation.
Definition MorEqn.h:62
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
static void exit(int exit_code=-1)
Routine de sortie de TRUST dans une region Kokkos.
Definition Process.cpp:455
Classe de base des flux de sortie.
Definition Sortie.h:52