TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Temperature_imposee_paroi_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 <Temperature_imposee_paroi_rayo_semi_transp.h>
17#include <Champ_front_contact_rayo_semi_transp_VEF.h>
18#include <Equation_base.h>
19
20Implemente_instanciable(Temperature_imposee_paroi_rayo_semi_transp, "Paroi_temperature_imposee_rayo_semi_transp", Temperature_imposee_paroi);
21
23{
24 return os;
25}
26
28{
30}
31
36
37/*! @brief Renvoie un booleen indiquant la compatibilite des conditions aux limites avec l'equation specifiee en parametre.
38 *
39 * Des CL de type Temperature_imposee_paroi sont compatibles
40 * avec une equation dont le domaine est la Thermique
41 * ou bien indetermine.
42 *
43 * @param (Equation_base& eqn) l'equation avec laquelle il faut verifier la compatibilite
44 * @return (int) valeur booleenne, 1 si les CL sont compatibles avec l'equation 0 sinon
45 */
47{
48 Motcle dom_app = eqn.domaine_application();
49 Motcle Thermique = "Thermique";
50 Motcle indetermine = "indetermine";
51 if ((dom_app == Thermique) || (dom_app == indetermine))
52 return 1;
53 else
54 {
56 return 0;
57 }
58}
59
61{
62 return (*this);
63}
64
69
71{
72 if (sub_type(Champ_front_contact_rayo_semi_transp_VEF, le_champ_front.valeur()))
73 {
74 Champ_front_contact_rayo_semi_transp_VEF& Ch_contact = ref_cast(Champ_front_contact_rayo_semi_transp_VEF, le_champ_front.valeur());
75 Ch_contact.calculer_temperature_bord(temps);
76 }
77 else
78 {
79 // La temperature de paroi etant directement donnee par le champ_front
80 // associe a la condition a la limite, il n'y a rien a calculer ici
81 }
82}
83
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...
void err_pas_compatible(const Equation_base &) const
Cette methode est appelee quand la condition aux limites n'est pas compatible avec l'equation sur laq...
virtual void completer()
NE FAIT RIEN A surcharger dans les classes derivees.
virtual void associer_pb_rayo_semi_transp(const Pb_rayo_semi_transp &)
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 Motcle & domaine_application() const
Renvoie "indetermine" Navier_Stokes_standard par exemple surcharge cette methode.
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
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
Le Pb_rayo_semi_transp est un Probleme_base qui a 4 particularites : * Son equation doit etre typee e...
Classe de base des flux de sortie.
Definition Sortie.h:52
classe Temperature_imposee_paroi_rayo_semi_transp cette classe est utilisee pour imposer une temperat...
void completer() override
NE FAIT RIEN A surcharger dans les classes derivees.
void associer_pb_rayo_semi_transp(const Pb_rayo_semi_transp &) override
int compatible_avec_eqn(const Equation_base &) const override
Renvoie un booleen indiquant la compatibilite des conditions aux limites avec l'equation specifiee en...
classe Temperature_imposee_paroi Impose la temperature de la paroi dans une equation de type Convecti...