TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Convection_Diffusion_Fluide_Dilatable_base.h
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#ifndef Convection_Diffusion_Fluide_Dilatable_base_included
17#define Convection_Diffusion_Fluide_Dilatable_base_included
18
19#include <Convection_Diffusion_Fluide_Dilatable_Proto.h>
20#include <Convection_Diffusion_std.h>
21#include <TRUST_Ref.h>
22
24
25/*! @brief classe Convection_Diffusion_Fluide_Dilatable_base pour un fluide dilatable
26 *
27 * @sa Conv_Diffusion_std Convection_Diffusion_Temperature
28 */
29
32{
34
35public :
37 void associer_milieu_base(const Milieu_base& ) override;
38 int impr(Sortie& os) const override;
39 const Champ_Don_base& diffusivite_pour_transport() const override;
40 const Fluide_Dilatable_base& fluide() const;
42 const Milieu_base& milieu() const override;
43 Milieu_base& milieu() override;
44
45 void set_param(Param& titi) const override;
46 int lire_motcle_non_standard(const Motcle&, Entree&) override;
47
48 // je sais, je sais ... mais pas maintenant !
49 void calculer_div_u_ou_div_rhou(DoubleTab& res) const override = 0;
50 bool is_thermal() const override = 0;
51 bool is_generic() const override = 0;
52
53 // Methodes inlines
54 inline const Champ_Inc_base& inconnue() const override { return l_inco_ch; }
55 inline Champ_Inc_base& inconnue() override { return l_inco_ch; }
56 inline const Domaine_Cl_dis_base& domaine_cl_modif() const { return zcl_modif_.valeur();}
57 inline Domaine_Cl_dis_base& domaine_cl_modif() { return zcl_modif_.valeur();}
58
59protected:
63};
64
65#endif /* Convection_Diffusion_Fluide_Dilatable_base_included */
classe Champ_Don_base classe de base des Champs donnes (non calcules)
Classe Champ_Inc_base.
classe Convection_Diffusion_Fluide_Dilatable_base pour un fluide dilatable
OBS_PTR(Fluide_Dilatable_base) le_fluide
int lire_motcle_non_standard(const Motcle &, Entree &) override
Lecture des parametres de type non simple d'un objet_U a partir d'un flot d'entree.
OWN_PTR(Domaine_Cl_dis_base) zcl_modif_
void calculer_div_u_ou_div_rhou(DoubleTab &res) const override=0
int impr(Sortie &os) const override
Imprime les operateurs de l'equation sur un flot de sortie, de facon inconditionnelle.
classe Convection_Diffusion_std Cette classe est la base des equations modelisant le transport
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
classe Fluide_Dilatable_base Cette classe represente un d'un fluide dilatable,
classe Milieu_base Cette classe est la base de la hierarchie des milieux (physiques)
Definition Milieu_base.h:50
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
friend class Entree
Definition Objet_U.h:76
friend class Sortie
Definition Objet_U.h:75
Helper class to factorize the readOn method of Objet_U classes.
Definition Param.h:112