TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Echange_externe_impose.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_externe_impose.h>
17#include <Domaine_Cl_dis_base.h>
18#include <Equation_base.h>
19
20Implemente_instanciable(Echange_externe_impose, "Paroi_echange_externe_impose", Echange_impose_base);
21// XD paroi_echange_externe_impose condlim_base paroi_echange_externe_impose INHERITS_BRACE External type exchange
22// XD_CONT condition with a heat exchange coefficient and an imposed external temperature.
23// XD attr h_or_t chaine(into=["h_imp","t_ext"]) h_imp REQ Heat exchange coefficient value (expressed in W.m-2.K-1).
24// XD attr himpc front_field_base himpc REQ Boundary field type.
25// XD attr t_or_h chaine(into=["t_ext","h_imp"]) text REQ External temperature value (expressed in oC or K).
26// XD attr ch front_field_base ch REQ Boundary field type.
27
28
29Sortie& Echange_externe_impose::printOn(Sortie& s) const { return s << que_suis_je() << finl; }
30
32
34{
35 if (le_champ_front)
36 {
37 const Equation_base& eq = domaine_Cl_dis().equation();
38 const int nb_comp = le_champ_front->nb_comp();
39 eq.verifie_ch_init_nb_comp_cl(eq.inconnue(), nb_comp, *this);
40 }
41}
Domaine_Cl_dis_base & domaine_Cl_dis()
Renvoie le domaine des conditions aux limites discretisee dont l'objet fait partie.
virtual void verifie_ch_init_nb_comp() const
Appel la verification du champ lu par l intermediaire de l equation pour laquelle on considere la con...
Classe Echange_externe_impose: Cette classe represente le cas particulier de la classe.
classe Echange_impose_base: Cette condition limite sert uniquement pour l'equation d'energie.
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
virtual const Champ_Inc_base & inconnue() const =0
virtual void verifie_ch_init_nb_comp_cl(const Champ_Inc_base &ch_ref, const int nb_comp, const Cond_lim_base &cl) const
const Equation_base & equation() const
Renvoie la reference sur l'equation pointe par MorEqn::mon_equation.
Definition MorEqn.h:62
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
Classe de base des flux de sortie.
Definition Sortie.h:52