TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Sortie_libre_Text_H_ext.h
1/****************************************************************************
2* Copyright (c) 2024, 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#ifndef Sortie_libre_Text_H_ext_included
17#define Sortie_libre_Text_H_ext_included
18
19#include <TRUST_Ref.h>
20#include <Neumann.h>
21
22/*! @brief classe Neumann_sortie_libre Cette classe represente une frontiere ouverte sans vitesse imposee
23 *
24 * Pour les equations de Navier_Stokes on impose necessairement la pression sur une telle frontiere
25 * Pour traiter l'hydraulique, on derive donc de la classe Neumann_sortie_libre la classe Sortie_libre_pression_imposee
26 * Les conditions aux limites de type Neumann_sortie_libre ou des types derives se traduisent par des flux diffusifs nuls.
27 * En revanche, le traitement des flux convectifs impose de connaitre le champ convecte a l'exterieur de la frontiere en cas de re-entree
28 * de fluide. C'est pourquoi la classe porte un OWN_PTR(Champ_front_base) (membre le_champ_ext).
29 * Dans les operateurs de calcul, les conditions aux limites de type Neumann_sortie_libre et des types derives seront traites de maniere identique
30 *
31 * @sa Neumann
32 */
34{
35 Declare_instanciable(Sortie_libre_Text_H_ext);
36public:
37 virtual double val_ext(int i) const;
38 virtual double val_ext(int i, int j) const;
41 double flux_impose(int i) const override;
42 double flux_impose(int i, int j) const override;
43
44protected:
46 int type_cond_lim = -1;
47};
48
49#endif
classe Champ_front_base Classe de base pour la hierarchie des champs aux frontieres.
Classe Neumann Cette classe est la classe de base de la hierarchie des conditions aux limites de type...
Definition Neumann.h:31
classe Neumann_sortie_libre Cette classe represente une frontiere ouverte sans vitesse imposee
OWN_PTR(Champ_front_base) le_champ_Text
virtual double val_ext(int i) const
Renvoie la valeur de la i-eme composante du champ impose a l'exterieur de la frontiere.
double flux_impose(int i) const override
Renvoie la valeur du flux impose sur la i-eme composante du champ representant le flux a la frontiere...