TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Op_Diff_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_Diff_VDF_Face_Axi_base_included
17#define Op_Diff_VDF_Face_Axi_base_included
18
19#include <Op_Diff_VDF_Face_base.h>
20#include <TRUST_Ref.h>
21
22class Champ_Face_VDF;
23
25{
26 Declare_base(Op_Diff_VDF_Face_Axi_base);
27public:
28 double calculer_dt_stab() const override;
29 void associer(const Domaine_dis_base& , const Domaine_Cl_dis_base& , const Champ_Inc_base& ) override;
30 DoubleTab& calculer(const DoubleTab& , DoubleTab& ) const override;
31
32 inline void mettre_a_jour(double temps) override { }
33 inline void contribuer_a_avec(const DoubleTab& inco, Matrice_Morse& matrice) const override { ajouter_contribution(inco, matrice); }
34 inline void contribuer_au_second_membre(DoubleTab& resu) const override { contribue_au_second_membre(resu); }
35 inline void dimensionner(Matrice_Morse& matrice) const override { Op_VDF_Face::dimensionner(le_dom_vdf.valeur(), la_zcl_vdf.valeur(), matrice); }
36 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); }
37
38protected:
39 static constexpr double deux_pi = M_PI*2.0;
41 OBS_PTR(Domaine_VDF) le_dom_vdf;
46 DoubleTab xp, xv;
47
48 virtual double nu_(const int ) const = 0;
49 virtual double nu_mean_2_pts_(const int , const int ) const = 0;
50 virtual double nu_mean_4_pts_(const int , const int ) const = 0;
51
52private:
53 DoubleTab& ajouter(const DoubleTab& , DoubleTab& ) const override;
54 void ajouter_elem(const DoubleTab& , DoubleTab& ) const;
55 void ajouter_elem_3D(const DoubleTab& , DoubleTab& ) const;
56 void ajouter_aretes_bords(const DoubleTab& , DoubleTab& ) const;
57 void ajouter_aretes_mixtes_internes(const DoubleTab& , DoubleTab& ) const;
58
59 void fill_coeff_matrice_morse(const int , const int , const double , Matrice_Morse& ) const;
60 void ajouter_contribution(const DoubleTab&, Matrice_Morse& ) const;
61 void ajouter_contribution_elem(const DoubleTab& , Matrice_Morse& ) const;
62 void ajouter_contribution_elem_3D(Matrice_Morse& ) const;
63 void ajouter_contribution_aretes_bords(Matrice_Morse& ) const;
64 void ajouter_contribution_aretes_mixtes_internes(Matrice_Morse& ) const;
65
66 void contribue_au_second_membre(DoubleTab& ) const;
67
68 inline void not_implemented(const char * nom_funct) const
69 {
70 std::cerr << "Erreur dans : " << nom_funct << std::endl;
71 std::cerr << "On ne sait pas traiter la diffusion d'un Champ_Face_VDF a plusieurs inconnues ! " << std::endl;
72 throw;
73 }
74};
75
76#endif /* Op_Diff_VDF_Face_Axi_base_included */
class Champ_Face_VDF Cette classe sert a representer un champ vectoriel dont on ne calcule
Classe Champ_Inc_base.
class Domaine_Cl_VDF
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
class Domaine_VDF
Definition Domaine_VDF.h:64
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
Classe Matrice_Morse Represente une matrice M (creuse), non necessairement carree.
OBS_PTR(Domaine_VDF) le_dom_vdf
void mettre_a_jour(double temps) override
DOES NOTHING - to override in derived classes.
void modifier_pour_Cl(Matrice_Morse &matrice, DoubleTab &secmem) const override
DOES NOTHING - to override in derived classes.
virtual double nu_mean_4_pts_(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
void associer(const Domaine_dis_base &, const Domaine_Cl_dis_base &, const Champ_Inc_base &) override
void contribuer_au_second_membre(DoubleTab &resu) const override
DOES NOTHING - to override in derived classes.
double calculer_dt_stab() const override
Calcul dt_stab.
OBS_PTR(Champ_Face_VDF) inconnue
DoubleTab & calculer(const DoubleTab &, DoubleTab &) const override
calcule la contribution de la diffusion, la range dans resu
void dimensionner(Matrice_Morse &matrice) const override
DOES NOTHING - to override in derived classes.
virtual double nu_mean_2_pts_(const int, const int) const =0
Op_Diff_VDF_Face_base(const Iterateur_VDF_base &iterateur)
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