TrioCFD 1.9.9_beta
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
Creates a parallel array of values at elements.
Definition Domaine.cpp:850
class Domaine_VEF
Definition Domaine_VEF.h:53
class Domaine_VF
Definition Domaine_VF.h:44
int nb_faces_tot() const
Returns the total number of 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()
Returns the discretized domain associated with the 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
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_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
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.
virtual void completer()
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