TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Diff_K_Omega_VEF_base.cpp
1/****************************************************************************
2* Copyright (c) 2023, 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_Omega_VEF_base.h>
17#include <Modele_turbulence_hyd_K_Omega.h>
18
19Implemente_instanciable_sans_constructeur(Op_Diff_K_Omega_VEF_base,
20 "Op_Diff_K_Omega_VEF_base",
22
24{
25 return s << que_suis_je();
26}
27
29{
30 return s;
31}
32
34{
36
38
39 const RefObjU& modele_turbulence = equation().get_modele(TURBULENCE);
40 const Modele_turbulence_hyd_K_Omega& mod_turb = ref_cast(Modele_turbulence_hyd_K_Omega, modele_turbulence.valeur());
41
42 turbulence_model = mod_turb;
43
44 Sigma_K1_ = mod_turb.get_Sigma_K1();
45 Sigma_K2_ = mod_turb.get_Sigma_K2();
48 if (mod_turb.is_SST_or_BSL())
49 {
51 associer_tab_F1(mod_turb.get_tabF1());
52 }
53 else
54 {
55 const Domaine_VF& domain_VF = ref_cast(Domaine_VF,mod_turb.get_eq_transport().domaine_dis());
56 const int nb_faces_tot = domain_VF.nb_faces_tot();
57 initialize_tab_F1(nb_faces_tot);
58 }
59
60 const Domaine_VEF& domain_VEF = le_dom_vef.valeur();
61 nu_turb_m_.resize(domain_VEF.nb_elem_tot(), 2);
62 domain_VEF.domaine().creer_tableau_elements(nu_turb_m_,RESIZE_OPTIONS::NOCOPY_NOINIT);
63 nu_turb_m_=0.;
64}
virtual void creer_tableau_elements(Array_base &, RESIZE_OPTIONS opt=RESIZE_OPTIONS::COPY_INIT) const
creation d'un tableau parallele de valeurs aux elements.
Definition Domaine.cpp:851
class Domaine_VEF
Definition Domaine_VEF.h:54
class Domaine_VF
Definition Domaine_VF.h:44
int nb_faces_tot() const
renvoie le nombre total de faces.
Definition Domaine_VF.h:481
int nb_elem_tot() const
const Domaine & domaine() const
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
Domaine_dis_base & domaine_dis()
Renvoie le domaine discretise associe a l'equation.
Classe Modele_turbulence_hyd_K_Omega Cette classe represente le modele de turbulence (k,...
const DoubleTab & get_tabF1() const
Returns the blending table F1 for SST.
const Transport_K_Omega_base & get_eq_transport() const override
const Equation_base & equation() const
Renvoie la reference sur l'equation pointe par MorEqn::mon_equation.
Definition MorEqn.h:62
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_K_Omega_VEF_Face Cette classe represente l'operateur de diffusion turbulente
void initialize_tab_F1(const int nb_faces_tot)
void associer_tab_F1(const DoubleTab &tabF1)
void completer() override
Associe l'operateur au domaine_dis, le domaine_Cl_dis, et a l'inconnue de son equation.
void completer() override
Associe l'operateur au domaine_dis, le domaine_Cl_dis, et a l'inconnue de son equation.
virtual void completer()
Associe l'operateur au domaine_dis, le domaine_Cl_dis, et a l'inconnue de son equation.
Classe de base des flux de sortie.
Definition Sortie.h:52
const Objet_U & valeur() const
Definition TRUST_Ref.h:134