TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Modele_turbulence_hyd_0_eq_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 Modele_turbulence_hyd_0_eq_base_included
17#define Modele_turbulence_hyd_0_eq_base_included
18
19#include <Modele_turbulence_hyd_base.h>
20
21
22#include <TRUST_Ref.h>
23
25class Domaine_VF;
26
27/*! @brief Classe Modele_turbulence_hyd_0_eq_base Classe de base des modeles a 0 equation
28 *
29 * @sa Modele_turbulence_hyd_base
30 */
32{
34public:
35 void set_param(Param& param) const override;
36 int reprendre(Entree& is) override { return 1; }
37 int comprend_mot(const Motcle& mot) const;
38 int a_pour_Champ_Fonc(const Motcle& mot, OBS_PTR(Champ_base) &ch_ref) const;
39 int comprend_champ(const Motcle& mot) const;
40
41 void associer(const Domaine_dis_base&, const Domaine_Cl_dis_base&) override;
42
43 void completer() override;
44 void mettre_a_jour(double) override;
45 void discretiser() override;
48 void imprimer(Sortie&) const override;
49 inline virtual Champ_Fonc_base& energie_cinetique_turbulente() { return energie_cinetique_turb_; }
50 inline virtual const Champ_Fonc_base& energie_cinetique_turbulente() const { return energie_cinetique_turb_; }
51
52protected:
53 OWN_PTR(Champ_Fonc_base) energie_cinetique_turb_;
54 mutable OWN_PTR(Champ_Inc_base) K_eps_sortie_;
56
57 OBS_PTR(Domaine_VF) le_dom_VF_;
59};
60
61#endif /* Modele_turbulence_hyd_0_eq_base_included */
classe Champ_Fonc_base Classe de base des champs qui sont fonction d'une grandeur calculee
Classe Champ_Inc_base.
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
class Domaine_VF
Definition Domaine_VF.h:44
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
Classe Modele_turbulence_hyd_0_eq_base Classe de base des modeles a 0 equation.
OBS_PTR(Domaine_Cl_dis_base) le_dom_Cl_
void set_param(Param &param) const override
virtual Champ_Fonc_base & energie_cinetique_turbulente()
int reprendre(Entree &is) override
Reprise d'un Objet_U sur un flot d'entree Methode a surcharger.
OBS_PTR(Domaine_VF) le_dom_VF_
virtual Champ_Fonc_base & calculer_viscosite_turbulente()=0
void associer(const Domaine_dis_base &, const Domaine_Cl_dis_base &) override
OWN_PTR(Champ_Fonc_base) energie_cinetique_turb_
virtual const Champ_Fonc_base & energie_cinetique_turbulente() const
void discretiser() override
Discretise le modele de turbulence.
int a_pour_Champ_Fonc(const Motcle &mot, OBS_PTR(Champ_base) &ch_ref) const
virtual void calculer_energie_cinetique_turb()=0
void imprimer(Sortie &) const override
Effectue l'impression si cela est necessaire.
OWN_PTR(Champ_Inc_base) K_eps_sortie_
Classe Modele_turbulence_hyd_base Cette classe sert de base a la hierarchie des classes.
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
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