TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Paroi_decalee_Robin.cpp
1/****************************************************************************
2* Copyright (c) 2023, 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 <Convection_Diffusion_Temperature_Turbulent.h>
17#include <Navier_Stokes_Turbulent.h>
18#include <Paroi_decalee_Robin.h>
19#include <Equation_base.h>
20#include <Param.h>
21
22Implemente_instanciable(Paroi_decalee_Robin, "Paroi_decalee_Robin", Symetrie);
23// XD paroi_decalee_robin condlim_base paroi_decalee_robin BRACE This keyword is used to designate a Robin boundary
24// XD_CONT condition (a.u+b.du/dn=c) associated with the Pironneau methodology for the wall laws. The value of given by
25// XD_CONT the delta option is the distance between the mesh (where symmetry boundary condition is applied) and the
26// XD_CONT fictious wall. This boundary condition needs the definition of the dedicated source terms (Source_Robin or
27// XD_CONT Source_Robin_Scalaire) according the equations used.
28
29Sortie& Paroi_decalee_Robin::printOn(Sortie& s) const { return s << que_suis_je() << finl; }
30
32{
33 le_champ_front.typer("Champ_front_uniforme");
34 le_champ_front->fixer_nb_comp(0);
35 Param param(que_suis_je());
36 param.ajouter("delta", &delta, Param::REQUIRED); // XD attr delta floattant delta REQ not_set
37 param.lire_avec_accolades_depuis(s);
38 return s;
39}
40
41// Cette condition aux limites ne supporte que les equations Navier_Stokes_turbulent et Convection_Diffusion_Temperature_Turbulent
43{
44 if (sub_type(Navier_Stokes_Turbulent, eqn) || sub_type(Convection_Diffusion_Temperature_Turbulent, eqn)) return 1;
45 else
46 {
48 return 0;
49 }
50}
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...
classe Convection_Diffusion_Temperature_Turbulent Cette classe represente le cas particulier de
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....
classe Navier_Stokes_Turbulent Cette classe represente l'equation de la dynamique pour un fluide
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
@ REQUIRED
Definition Param.h:115
int compatible_avec_eqn(const Equation_base &) const override
Classe de base des flux de sortie.
Definition Sortie.h:52
classe Symetrie Sur les faces de symetrie on a les proprietes suivantes:
Definition Symetrie.h:37