TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Diff_Fluctu_Temp_Base.cpp
1/****************************************************************************
2* Copyright (c) 2015 - 2016, 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_Fluctu_Temp_Base.h>
17#include <Discretisation_base.h>
18
19Implemente_base(Op_Diff_Fluctu_Temp_Base,"Op_Diff_Fluctu_Temp_Base",Operateur_base);
20Implemente_instanciable(Op_Diff_Fluctu_Temp_negligeable,"Op_Diff_Fluctu_Temp_negligeable",Op_Diff_Fluctu_Temp_Base);
21Implemente_instanciable(Op_Diff_Fluctu_Temp,"Op_Diff_Fluctu_Temp",OWN_PTR(Op_Diff_Fluctu_Temp_Base));
22
23
24//// printOn
25//
26
28{
29 return s << que_suis_je() ;
30}
31
33{
34 return s << que_suis_je() ;
35}
36
37Sortie& Op_Diff_Fluctu_Temp::printOn(Sortie& s ) const
38{
39 return s << que_suis_je() ;
40}
41
42//// readOn
43//
44
46{
47 return s ;
48}
49
51{
52 return s ;
53}
54
55Entree& Op_Diff_Fluctu_Temp::readOn(Entree& s )
56{
58 return s;
59}
60
62{
63 if (typ=="negligeable")
64 {
65 OWN_PTR(Op_Diff_Fluctu_Temp_Base)::typer("Op_Diff_Fluctu_Temp_negligeable");
66 }
67 else
68 {
69 // Cerr << "Eq de Fluctu = " << equation().que_suis_je() << finl;
70 Nom nom_type="Op_Diff_Fluctu_Temp_";
71 nom_type +=equation().discretisation().que_suis_je();
72 nom_type += "_";
73 Nom type_inco=equation().inconnue().que_suis_je();
74 nom_type+=(type_inco.suffix("Champ_"));
75 if (axi)
76 nom_type += "_Axi";
77 OWN_PTR(Op_Diff_Fluctu_Temp_Base)::typer(nom_type);
78 valeur().associer_eqn(equation());
79 Cerr << valeur().que_suis_je() << finl;
80 }
81}
82
84{
86
87 /* XXX : Elie Saikali => j'associe ici apres la discr de la viscosite turb */
88 valeur().associer_diffusivite_turbulente();
89}
90
91
92
93
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
const Discretisation_base & discretisation() const
Renvoie la discretisation associee a l'equation.
virtual const Champ_Inc_base & inconnue() const =0
const Equation_base & equation() const
Renvoie la reference sur l'equation pointe par MorEqn::mon_equation.
Definition MorEqn.h:62
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31
Nom & suffix(const char *const)
Extraction de suffixe : Nom x("azerty");.
Definition Nom.cpp:271
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 Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Definition Objet_U.cpp:282
class Op_Diff_Fluctu_Temp_Base Sert a modeliser le terme diffusif dans l'equation de transport
void completer() override
Met a jour les references des objets associes a l'operateur.
classe Operateur_base Classe est la base de la hierarchie des objets representant un
Entree & lire(Entree &)
Lit un operateur sur un flot d'entree.
Definition Operateur.cpp:44
virtual void completer()
Met a jour les references des objets associes a l'operateur.
Motcle typ
Definition Operateur.h:76
Classe de base des flux de sortie.
Definition Sortie.h:52