TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Dift_VDF_Face_Axi_base.h
1/****************************************************************************
2* Copyright (c) 2024, 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#ifndef Op_Dift_VDF_Face_Axi_base_included
17#define Op_Dift_VDF_Face_Axi_base_included
18
19#include <Op_Dift_VDF_Face_base.h>
20#include <TRUST_Ref.h>
21
23class Champ_Face_VDF;
24
26{
27 Declare_base(Op_Dift_VDF_Face_Axi_base);
28public:
29 double calculer_dt_stab() const override;
30 void completer() override;
31 void associer(const Domaine_dis_base& , const Domaine_Cl_dis_base& ,const Champ_Inc_base& ) override;
33 void mettre_a_jour(double ) override;
34 void contribue_au_second_membre(DoubleTab& ) const;
35 DoubleTab& calculer(const DoubleTab& , DoubleTab& ) const override;
36
37 inline void contribuer_a_avec(const DoubleTab& inco, Matrice_Morse& matrice) const override { ajouter_contribution(inco, matrice); }
38 inline void contribuer_au_second_membre(DoubleTab& resu) const override { contribue_au_second_membre(resu); }
39 inline void associer_loipar(const Turbulence_paroi_base& ) { /* do nothing */}
41 inline void dimensionner(Matrice_Morse& matrice) const override { Op_VDF_Face::dimensionner(le_dom_vdf.valeur(), la_zcl_vdf.valeur(), matrice); }
42 inline void modifier_pour_Cl(Matrice_Morse& matrice, DoubleTab& secmem) const override { Op_VDF_Face::modifier_pour_Cl( le_dom_vdf.valeur(), la_zcl_vdf.valeur(), matrice, secmem); }
43
44protected:
45 OBS_PTR(Modele_turbulence_hyd_base) le_modele_turbulence;
47 OBS_PTR(Domaine_VDF) le_dom_vdf;
52 DoubleTab xp, xv, tau_tan;
53
54 virtual void mettre_a_jour_var(double ) const = 0;
55 virtual bool is_var() const = 0;
56 virtual double nu_(const int ) const = 0;
57 virtual double nu_mean_2_pts_(const int , const int ) const = 0;
58 virtual double nu_mean_4_pts_(const int , const int ) const = 0;
59 virtual double nu_mean_4_pts_(const int , const int , const int , const int ) const = 0;
60
61private:
62 DoubleTab& ajouter(const DoubleTab& , DoubleTab& ) const override;
63 void ajouter_elem(const DoubleVect& , const DoubleTab& , DoubleTab& ) const;
64 void ajouter_elem_3D(const DoubleVect& , const DoubleTab& , DoubleTab& ) const;
65 void ajouter_aretes_bords(const DoubleVect& , const DoubleTab& , DoubleTab& ) const;
66 void fill_resu_aretes_mixtes(const int , const int , const int , const int , const double , const double , DoubleTab& ) const;
67 void ajouter_aretes_mixtes(const DoubleTab& , DoubleTab& ) const;
68 void fill_resu_aretes_internes(const int , const int , const int , const int , const double , const double , const double , const double , DoubleTab& ) const;
69 void ajouter_aretes_internes(const DoubleVect& , const DoubleTab& , DoubleTab& ) const;
70
71 void fill_coeff_matrice_morse(const int , const int , const double , Matrice_Morse& ) const;
72 void ajouter_contribution(const DoubleTab&, Matrice_Morse& ) const;
73 void ajouter_contribution_elem(const DoubleVect& , const DoubleTab& , Matrice_Morse& ) const;
74 void ajouter_contribution_elem_3D(const DoubleVect& , const DoubleTab& , Matrice_Morse& ) const;
75 void ajouter_contribution_aretes_bords(const DoubleVect& , const DoubleTab& , Matrice_Morse& ) const;
76 void ajouter_contribution_aretes_mixtes(Matrice_Morse& ) const;
77 void ajouter_contribution_aretes_internes(const DoubleVect& , Matrice_Morse& ) const;
78
79 inline void not_implemented(const char * nom_funct) const
80 {
81 std::cerr << "Erreur dans : " << nom_funct << std::endl;
82 std::cerr << "On ne sait pas traiter la diffusion d'un Champ_Face a plusieurs inconnues ! " << std::endl;
83 throw;
84 }
85};
86
87#endif /* Op_Dift_VDF_Face_Axi_base_included */
class Champ_Face_VDF
class Champ_Fonc_base Base class of fields that are functions of a calculated quantity
Class Champ_Inc_base.
class Domaine_Cl_VDF
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
class Domaine_VDF
Definition Domaine_VDF.h:61
class Domaine_dis_base This class is the base of the hierarchy of discretized domains.
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
Base class for the turbulence model hierarchy for Navier-Stokes equations.
void associer_diffusivite_turbulente(const Champ_Fonc_base &)
void associer_modele_turbulence(const Modele_turbulence_hyd_base &)
virtual double nu_mean_4_pts_(const int, const int) const =0
OBS_PTR(Modele_turbulence_hyd_base) le_modele_turbulence
void associer(const Domaine_dis_base &, const Domaine_Cl_dis_base &, const Champ_Inc_base &) override
void completer() override
Associates the operator with the domaine_dis, the domaine_Cl_dis, and the unknown of its equation.
OBS_PTR(Champ_Face_VDF) inconnue
void dimensionner(Matrice_Morse &matrice) const override
DOES NOTHING - to override in derived classes.
virtual double nu_mean_4_pts_(const int, const int, const int, const int) const =0
virtual double nu_(const int) const =0
void contribuer_a_avec(const DoubleTab &inco, Matrice_Morse &matrice) const override
DOES NOTHING - to override in derived classes.
OBS_PTR(Domaine_Cl_VDF) la_zcl_vdf
double calculer_dt_stab() const override
Computes dt_stab.
void contribuer_au_second_membre(DoubleTab &resu) const override
DOES NOTHING - to override in derived classes.
void associer_diffusivite_turbulente(const Champ_Fonc_base &visc_turb)
void mettre_a_jour(double) override
DOES NOTHING - to override in derived classes.
void associer_loipar(const Turbulence_paroi_base &)
void modifier_pour_Cl(Matrice_Morse &matrice, DoubleTab &secmem) const override
DOES NOTHING - to override in derived classes.
DoubleTab & calculer(const DoubleTab &, DoubleTab &) const override
Computes the diffusion contribution and stores it in resu.
OBS_PTR(Domaine_VDF) le_dom_vdf
virtual double nu_mean_2_pts_(const int, const int) const =0
virtual bool is_var() const =0
void contribue_au_second_membre(DoubleTab &) const
virtual void mettre_a_jour_var(double) const =0
Op_Dift_VDF_Face_base(const Iterateur_VDF_base &iter_base)
void modifier_pour_Cl(const Domaine_VDF &, const Domaine_Cl_VDF &, Matrice_Morse &, DoubleTab &) const
void dimensionner(const Domaine_VDF &, const Domaine_Cl_VDF &, Matrice_Morse &) const
Base class for the hierarchy of wall-law models computing turbulent quantities near walls....