TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Modele_Fonc_Bas_Reynolds_Thermique_Base.cpp
1/****************************************************************************
2* Copyright (c) 2019, 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 <Transport_Fluctuation_Temperature_W_Bas_Re.h>
17#include <Modele_Fonc_Bas_Reynolds_Thermique_Base.h>
18#include <Discretisation_base.h>
19
20Implemente_base(Modele_Fonc_Bas_Reynolds_Thermique_Base,"Modele_Fonc_Bas_Reynolds_Thermique_Base",Objet_U);
21
23{
24 return s << que_suis_je() << " " << le_nom();;
25}
26
28{
29 return is;
30}
31
35
37{
38 Motcle typ, nom1("Modele_");
39 is >> typ;
40 nom1 += typ;
41 if ((typ == "Jones_Launder"))
42 {
43 nom1 += "_Thermique_";
44 Cerr << nom1 << finl;
45 nom1 += eqn.discretisation().que_suis_je();
46 }
47 mod.typer(nom1);
48 mod->associer_eqn(eqn);
49
50 mod->associer(eqn.domaine_dis(), eqn.domaine_Cl_dis());
51 is >> mod.valeur();
52}
53
58
60{
61 // const Discret_Thyd_Turb& dis=
62 // ref_cast(Discret_Thyd_Turb, mon_equation->discretisation());
63 Cerr << "Discretisation du modele Bas Reynolds terminee" << finl;
64}
65
66
71
72
77
82
86
88{
89 return champs_compris_.has_champ(nom, ref_champ);
90}
91
93{
94 return champs_compris_.has_champ(nom);
95}
96
98{
99 return champs_compris_.get_champ(nom);
100}
101
103{
104 if (opt == DESCRIPTION)
105 Cerr << "Modele_Fonc_Bas_Reynolds_Thermique_Base : " << champs_compris_.liste_noms_compris() << finl;
106 else
107 nom.add(champs_compris_.liste_noms_compris());
108}
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
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....
const Discretisation_base & discretisation() const
Renvoie la discretisation associee a l'equation.
virtual Domaine_Cl_dis_base & domaine_Cl_dis()
Renvoie le domaine des conditions aux limite discretisee associee a l'equation.
Domaine_dis_base & domaine_dis()
Renvoie le domaine discretise associe a l'equation.
const Champ_base & get_champ(const Motcle &nom) const override
int sauvegarder(Sortie &) const override
Sauvegarde d'un Objet_U sur un flot de sortie Methode a surcharger.
OBS_PTR(Transport_Fluctuation_Temperature_W_Bas_Re) mon_equation
bool has_champ(const Motcle &nom, OBS_PTR(Champ_base) &ref_champ) const override
static void typer_lire_Modele_Fonc_Bas_Reynolds_Thermique(OWN_PTR(Modele_Fonc_Bas_Reynolds_Thermique_Base)&, const Equation_base &, Entree &)
int reprendre(Entree &) override
Reprise d'un Objet_U sur un flot d'entree Methode a surcharger.
virtual void associer(const Domaine_dis_base &, const Domaine_Cl_dis_base &)=0
void get_noms_champs_postraitables(Noms &nom, Option opt=NONE) const override
Une chaine de caractere (Nom) en majuscules.
Definition Motcle.h:26
Un tableau de chaine de caracteres (VECT(Nom)).
Definition Noms.h:26
classe Objet_U Cette classe est la classe de base des Objets de TRUST
Definition Objet_U.h:73
friend class Entree
Definition Objet_U.h:76
friend class Sortie
Definition Objet_U.h:75
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 const Nom & le_nom() const
Donne le nom de l'Objet_U Methode a surcharger : renvoie "neant" dans cette implementation.
Definition Objet_U.cpp:319
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
Classe de base des flux de sortie.
Definition Sortie.h:52