TrioCFD 1.9.9_beta
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}
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
class Equation_base The role of an equation is the calculation of one or more fields....
const Discretisation_base & discretisation() const
Returns the discretization associated with the equation.
virtual Domaine_Cl_dis_base & domaine_Cl_dis()
Returns the discretized boundary condition domain associated with the equation.
Domaine_dis_base & domaine_dis()
Returns the discretized domain associated with the equation.
const Champ_base & get_champ(const Motcle &nom) const override
int sauvegarder(Sortie &) const override
Saves an Objet_U to an output stream. Virtual method to override.
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
Restores an Objet_U from an input stream. Virtual method to override.
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
A character string (Nom) in uppercase.
Definition Motcle.h:26
An array of character strings (VECT(Nom)).
Definition Noms.h:26
Base class for TRUST objects (Objet_U).
Definition Objet_U.h:68
friend class Entree
Definition Objet_U.h:71
friend class Sortie
Definition Objet_U.h:70
const Nom & que_suis_je() const
Returns the string identifying the class.
Definition Objet_U.cpp:104
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
Definition Objet_U.cpp:289
virtual const Nom & le_nom() const
Returns the name of the Objet_U. Virtual method to override: returns "neant" in this implementation.
Definition Objet_U.cpp:317
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Definition Objet_U.cpp:278
Base class for output streams.
Definition Sortie.h:52