TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Paroi_flux_impose.cpp
1/****************************************************************************
2* Copyright (c) 2025, 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 <Discretisation_base.h>
17#include <Paroi_flux_impose.h>
18#include <Equation_base.h>
19
20Implemente_instanciable(Paroi_flux_impose, "paroi_flux_impose", Cond_lim_utilisateur_base);
21// XD paroi_flux_impose condlim_base paroi_flux_impose NO_BRACE Normal flux condition at the wall called bord (edge).
22// XD_CONT The surface area of the flux (W.m-1 in 2D or W.m-2 in 3D) is imposed at the boundary according to the
23// XD_CONT following convention: a positive flux is a flux that enters into the domain according to convention.
24// XD attr ch front_field_base ch REQ Boundary field type.
25
26Sortie& Paroi_flux_impose::printOn(Sortie& s ) const { return s << que_suis_je() ; }
27
28Entree& Paroi_flux_impose::readOn(Entree& s ) { return s; }
29
31{
32 int rayo = is_pb_rayo();
33 if (rayo == 1)
34 {
35 if (mon_equation->discretisation().is_vdf())
36 ajout = "paroi_flux_impose_rayo_semi_transp_VDF";
37 else
38 ajout = "paroi_flux_impose_rayo_semi_transp_VEF";
39 }
40 else if (rayo == 2)
41 {
42 if (mon_equation->discretisation().is_vdf())
43 ajout = "paroi_flux_impose_rayo_transp_VDF";
44 else
45 ajout = "paroi_flux_impose_rayo_transp_VEF";
46 }
47 else
48 ajout = "Neumann_Paroi";
49}
classe Cond_lim_utilisateur_base: Les classes heritant de cette classe sont des classes utilisaturs
int is_pb_rayo()
renvoit 0 si le pb n'est pas rayonnant 1 si il est semi_transp
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 & 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