TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Diff_Flux_Chaleur_Turb_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 <Op_Diff_Flux_Chaleur_Turb_Base.h>
17#include <Discretisation_base.h>
18
19// GF je ne sais pas si cette classe sert vraiment, mais elle herite pas de Op_Diff_base
20Implemente_base(Op_Diff_Flux_Chaleur_Turb_Base,"Op_Diff_Flux_Chaleur_Turb_Base",Operateur_base);
21Implemente_instanciable(Op_Diff_Flux_Chaleur_Turb_negligeable,"Op_Diff_Flux_Chaleur_Turb_negligeable",Op_Diff_Flux_Chaleur_Turb_Base);
22Implemente_instanciable(Op_Diff_Flux_Chaleur_Turb,"Op_Diff_Flux_Chaleur_Turb",OWN_PTR(Op_Diff_Flux_Chaleur_Turb_Base));
23
24
25//// printOn
26//
27
29{
30 return s << que_suis_je() ;
31}
32
34{
35 return s << que_suis_je() ;
36}
37
38Sortie& Op_Diff_Flux_Chaleur_Turb::printOn(Sortie& s ) const
39{
40 return s << que_suis_je() ;
41}
42
43//// readOn
44//
45
47{
48 return s ;
49}
50
52{
53 return s ;
54}
55
56Entree& Op_Diff_Flux_Chaleur_Turb::readOn(Entree& s )
57{
59 return s;
60}
61
63{
64 if (typ == "negligeable")
65 OWN_PTR(Op_Diff_Flux_Chaleur_Turb_Base)::typer("Op_Diff_Flux_Chaleur_Turb_negligeable");
66 else
67 {
68 Nom nom_type = "Op_Diff_Flux_Chaleur_Turb_";
69 nom_type += equation().discretisation().que_suis_je();
70 nom_type += "_";
71 Nom type_inco = equation().inconnue().que_suis_je();
72 nom_type += (type_inco.suffix("Champ_"));
73 if (axi)
74 nom_type += "_Axi";
75 OWN_PTR(Op_Diff_Flux_Chaleur_Turb_Base)::typer(nom_type);
76 valeur().associer_eqn(equation());
77 Cerr << valeur().que_suis_je() << finl;
78 }
79}
80
82{
84
85 /* XXX : Elie Saikali => j'associe ici apres la discr de la viscosite turb */
86 valeur().associer_diffusivite_turbulente();
87}
88
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
const Discretisation_base & discretisation() const
Returns the discretization associated with the equation.
virtual const Champ_Inc_base & inconnue() const =0
const Equation_base & equation() const
Returns the reference to the equation pointed to by MorEqn::mon_equation.
Definition MorEqn.h:62
class Nom: a character string for naming TRUST objects.
Definition Nom.h:31
Nom & suffix(const char *const)
Suffix extraction: Nom x("azerty");.
Definition Nom.cpp:266
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 Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Definition Objet_U.cpp:278
class Op_Diff_Flux_Chaleur_Turb_Base Sert a modeliser le terme diffusif dans l'equation de transport
void completer() override
Updates the references of the objects associated with the operator.
class Operateur_base This class is the base of the hierarchy of objects representing an
Entree & lire(Entree &)
Reads an operator from an input stream.
Definition Operateur.cpp:44
virtual void completer()
Updates the references of the objects associated with the operator.
Motcle typ
Definition Operateur.h:76
Base class for output streams.
Definition Sortie.h:52