TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Diff_K_Omega_VEF_base.h
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/*! @brief class Op_Diff_K_Omega_VEF_Face Cette classe represente l'operateur de diffusion turbulente
16 *
17 * La discretisation est VEF
18 * Les methodes pour l'implicite sont codees.
19 *
20 */
21#ifndef Op_Diff_K_Omega_VEF_base_included
22#define Op_Diff_K_Omega_VEF_base_included
23
24#include <Op_Dift_VEF_base.h>
25#include <Op_VEF_Face.h>
26#include <Modele_turbulence_hyd_K_Omega.h>
27#include <K_Omega_Eps_constants.h>
28
29//////////////////////////////////////////////////////////////////////////////
30//
31// CLASS: Op_Diff_K_Omega_VEF_base
32//
33//////////////////////////////////////////////////////////////////////////////
34
36{
37
38 Declare_instanciable_sans_constructeur(Op_Diff_K_Omega_VEF_base);
39
40public:
41
42 Op_Diff_K_Omega_VEF_base(double Sigma_K = SIGMA_K,
43 double Sigma_Omega = SIGMA_OMEGA,
44 double Sigma_K1 = SIGMA_K1,
45 double Sigma_K2 = SIGMA_K2,
46 double Sigma_OMEGA1 = SIGMA_OMEGA1,
47 double Sigma_OMEGA2 = SIGMA_OMEGA2
48 ) : Sigma_K_(Sigma_K), Sigma_Omega_(Sigma_Omega), Sigma_K1_(Sigma_K1), Sigma_K2_(Sigma_K2), Sigma_OMEGA1_(Sigma_OMEGA1), Sigma_OMEGA2_(Sigma_OMEGA2)
49 { }
50
51 void completer() override;
52 inline void associer_tab_F1(const DoubleTab& tabF1)
53 {
54 tab_F1_face_.ref(tabF1);
55 }
56 inline void initialize_tab_F1(const int nb_faces_tot)
57 {
58 tab_F1_face_.resize(nb_faces_tot);
60 }
61
62protected:
63 double Sigma_K_;
67 DoubleTab tab_F1_face_;
68 DoubleTab nu_turb_m_;
70};
71
72#endif
Classe Modele_turbulence_hyd_K_Omega Cette classe represente le modele de turbulence (k,...
Op_Diff_K_Omega_VEF_base(double Sigma_K=SIGMA_K, double Sigma_Omega=SIGMA_OMEGA, double Sigma_K1=SIGMA_K1, double Sigma_K2=SIGMA_K2, double Sigma_OMEGA1=SIGMA_OMEGA1, double Sigma_OMEGA2=SIGMA_OMEGA2)
void initialize_tab_F1(const int nb_faces_tot)
OBS_PTR(Modele_turbulence_hyd_K_Omega) turbulence_model
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.