TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Diff_K_Eps_VEF_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_K_Eps_VEF_base.h>
17#include <Modele_turbulence_hyd_K_Eps.h>
18#include <Transport_K_ou_Eps.h>
19
20Implemente_instanciable_sans_constructeur(Op_Diff_K_Eps_VEF_base,"Op_Diff_K_Eps_VEF_base",Op_Dift_VEF_base);
21
22
23//// printOn
24//
25
27{
28 return s << que_suis_je() ;
29}
30
31//// readOn
32//
33
35{
36 return s ;
37}
38
39
41{
43
44 const RefObjU& modele_turbulence = equation().get_modele(TURBULENCE);
45 const Modele_turbulence_hyd_2_eq_base& mod_turb = ref_cast(Modele_turbulence_hyd_2_eq_base, modele_turbulence.valeur());
46
47 if (sub_type(Transport_K_ou_Eps, mon_equation.valeur()))
48 {
49 const Transport_K_ou_Eps& eqn_transport = ref_cast(Transport_K_ou_Eps,mon_equation.valeur());
50 if (eqn_transport.transporte_t_il_K( ))
51 Sigma_[0] = mod_turb.get_Sigma_K();
52 else
53 Sigma_[0] = mod_turb.get_Sigma_Eps();
54 }
55 else
56 {
57 Sigma_[0] = mod_turb.get_Sigma_K();
58 Sigma_[1] = mod_turb.get_Sigma_Eps();
59 }
60}
Class defining operators and methods for all reading operation in an input flow (file,...
Definition Entree.h:42
virtual const RefObjU & get_modele(Type_modele type) const
Classe Modele_turbulence_hyd_2_eq_base Classe de base des modeles de type RANS a deux equations.
const Equation_base & equation() const
Returns the reference to the equation pointed to by MorEqn::mon_equation.
Definition MorEqn.h:62
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_K_Eps_VEF_Face Cette classe represente l'operateur de diffusion turbulente
void completer() override
Associates the operator with the domaine_dis, the domaine_Cl_dis, and the unknown of its equation.
void completer() override
Associates the operator with the domaine_dis, the domaine_Cl_dis, and the unknown of its equation.
Base class for output streams.
Definition Sortie.h:52
const Objet_U & valeur() const
Definition TRUST_Ref.h:134
classe Transport_K_ou_Eps Cette classe represente l'equation de transport de l'energie cinetique