TrioCFD 1.9.9_beta
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 Returns a boolean indicating whether the boundary conditions are compatible with the specified equation.
38 *
39 * @brief Boundary conditions of type Temperature_imposee_paroi are compatible
40 * with an equation whose domain is Thermique or indetermine.
41 *
42 * @param eqn the equation against which compatibility must be verified
43 * @return (int) boolean value, 1 if the BCs are compatible with the equation, 0 otherwise
44 */
46{
47 Motcle dom_app = eqn.domaine_application();
48 Motcle Thermique = "Thermique";
49 Motcle indetermine = "indetermine";
50 if ((dom_app == Thermique) || (dom_app == indetermine))
51 return 1;
52 else
53 {
55 return 0;
56 }
57}
58
60{
61 return (*this);
62}
63
68
70{
71 if (sub_type(Champ_front_contact_rayo_semi_transp_VEF, le_champ_front.valeur()))
72 {
73 Champ_front_contact_rayo_semi_transp_VEF& Ch_contact = ref_cast(Champ_front_contact_rayo_semi_transp_VEF, le_champ_front.valeur());
74 Ch_contact.calculer_temperature_bord(temps);
75 }
76 else
77 {
78 // The wall temperature is directly given by the champ_front
79 // associated with the boundary condition, so there is nothing to compute here
80 }
81}
82
class Champ_front_base Base class for the hierarchy of boundary fields.
class Cond_lim_base Base class for the hierarchy of classes that represent the different boundary con...
void err_pas_compatible(const Equation_base &) const
This method is called when the boundary condition is not compatible with the equation on which we try...
virtual void completer()
DOES NOTHING must be overridden in derived classes.
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
class Equation_base The role of an equation is the calculation of one or more fields....
virtual const Motcle & domaine_application() const
Returns "indeterminate" Navier_Stokes_standard for example overrides this method.
A character string (Nom) in uppercase.
Definition Motcle.h:26
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
Definition Objet_U.cpp:289
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Definition Objet_U.cpp:278
Semi-transparent radiation problem. Pb_rayo_semi_transp is a Probleme_base with 4 specific features:
Base class for output streams.
Definition Sortie.h:52
Temperature_imposee_paroi_rayo_semi_transp class: used to impose a wall temperature.
void completer() override
DOES NOTHING must be overridden in derived classes.
void associer_pb_rayo_semi_transp(const Pb_rayo_semi_transp &) override
int compatible_avec_eqn(const Equation_base &) const override
Returns a boolean indicating whether the boundary conditions are compatible with the specified equati...
Temperature_imposee_paroi Imposes the wall temperature in a Convection_Diffusion_Temperature type equ...