TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Conv_VDF_Elem_leaves.h
1/****************************************************************************
2* Copyright (c) 2026, 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_Conv_VDF_Elem_leaves_included
17#define Op_Conv_VDF_Elem_leaves_included
18
19#include <Eval_Conv_VDF_Face_leaves.h> // pour les compilos (templates :-) )
20#include <Eval_Conv_VDF_Elem_leaves.h>
21#include <Iterateur_VDF_Elem.h>
22#include <Op_Conv_VDF.h>
23#include <Nom.h>
24
25/// \cond DO_NOT_DOCUMENT
26class Op_Conv_VDF_Elem_leaves
27{ };
28/// \endcond
29
30/*! @brief class Op_Conv_Amont_VDF_Elem Cette classe represente l'operateur de convection associe a une equation de transport d'un scalaire.
31 *
32 * La discretisation est VDF. Le champ convecte est scalaire. Le schema de convection est du type Amont
33 * L'iterateur associe est de type Iterateur_VDF_Elem. L'evaluateur associe est de type Eval_Amont_VDF_Elem
34 *
35 */
36class Op_Conv_Amont_VDF_Elem : public Op_Conv_VDF_base, public Op_Conv_VDF<Op_Conv_Amont_VDF_Elem>
37{
38 Declare_instanciable_sans_constructeur(Op_Conv_Amont_VDF_Elem);
39public:
41 void check_multiphase_compatibility() const override { }
43 inline void modifier_pour_Cl(Matrice_Morse& matrice, DoubleTab& secmem) const override { modifier_pour_Cl_elem(matrice,secmem); }
45 inline void associer_vitesse(const Champ_base& ch_vit) override { associer_vitesse_impl<Eval_Amont_VDF_Elem>(ch_vit); }
46 inline Champ_base& vitesse() override { return vitesse_impl<Eval_Amont_VDF_Elem>(); }
47 inline const Champ_base& vitesse() const override { return vitesse_impl<Eval_Amont_VDF_Elem>(); }
48 inline void dimensionner_blocs(matrices_t mats, const tabs_t& semi_impl) const override { Op_Conv_VDF_base::dimensionner_blocs_elem(mats, semi_impl); }
49
50protected:
51 inline Op_Conv_Amont_VDF_Elem(const Iterateur_VDF_base& it) : Op_Conv_VDF_base(it) { } // Ce constructeur permet de creer des classes filles (exemple : front_tracking)
52};
53
54/*! @brief class Op_Conv_Centre_VDF_Elem Cette classe represente l'operateur de convection associe a une equation de transport d'un scalaire.
55 *
56 * La discretisation est VDF. Le champ convecte est scalaire. Le schema de convection est du type Centre (sur 2 points)
57 * L'iterateur associe est de type Iterateur_VDF_Elem. L'evaluateur associe est de type Eval_Centre_VDF_Elem
58 *
59 */
60class Op_Conv_Centre_VDF_Elem : public Op_Conv_VDF_base, public Op_Conv_VDF<Op_Conv_Centre_VDF_Elem>
61{
62 Declare_instanciable_sans_constructeur(Op_Conv_Centre_VDF_Elem);
63public:
66 inline void modifier_pour_Cl(Matrice_Morse& matrice, DoubleTab& secmem) const override { modifier_pour_Cl_elem(matrice,secmem); }
68 inline void associer_vitesse(const Champ_base& ch_vit) override { associer_vitesse_impl<Eval_Centre_VDF_Elem>(ch_vit); }
69 inline Champ_base& vitesse() override { return vitesse_impl<Eval_Centre_VDF_Elem>(); }
70 inline const Champ_base& vitesse() const override { return vitesse_impl<Eval_Centre_VDF_Elem>(); }
71 inline void dimensionner_blocs(matrices_t mats, const tabs_t& semi_impl) const override { Op_Conv_VDF_base::dimensionner_blocs_elem(mats, semi_impl); }
72};
73
74/*! @brief class Op_Conv_Centre4_VDF_Elem Cette classe represente l'operateur de convection associe a une equation de transport d'un scalaire.
75 *
76 * La discretisation est VDF. Le champ convecte est scalaire. Le schema de convection est du type Centre (sur 4 points)
77 * L'iterateur associe est de type Iterateur_VDF_Elem. L'evaluateur associe est de type Eval_Centre4_VDF_Elem
78 *
79 */
80class Op_Conv_Centre4_VDF_Elem : public Op_Conv_VDF_base, public Op_Conv_VDF<Op_Conv_Centre4_VDF_Elem>
81{
82 Declare_instanciable_sans_constructeur(Op_Conv_Centre4_VDF_Elem);
83public:
87 inline void associer_vitesse(const Champ_base& ch_vit) override { associer_vitesse_impl<Eval_Centre4_VDF_Elem>(ch_vit); }
89 inline const Champ_base& vitesse() const override { return vitesse_impl<Eval_Centre4_VDF_Elem>(); }
90};
91
92/*! @brief class Op_Conv_Quick_VDF_Elem Cette classe represente l'operateur de convection associe a une equation de transport d'un scalaire.
93 *
94 * La discretisation est VDF. Le champ convecte est scalaire. Le schema de convection est du type Quick
95 * L'iterateur associe est de type Iterateur_VDF_Elem. L'evaluateur associe est de type Eval_Quick_VDF_Elem
96 *
97 */
98class Op_Conv_Quick_VDF_Elem : public Op_Conv_VDF_base, public Op_Conv_VDF<Op_Conv_Quick_VDF_Elem>
99{
100 Declare_instanciable_sans_constructeur(Op_Conv_Quick_VDF_Elem);
101public:
103 void check_multiphase_compatibility() const override { }
105 inline void modifier_pour_Cl(Matrice_Morse& matrice, DoubleTab& secmem) const override { modifier_pour_Cl_elem(matrice,secmem); }
107 inline void associer_vitesse(const Champ_base& ch_vit) override { associer_vitesse_impl<Eval_Quick_VDF_Elem>(ch_vit); }
108 inline Champ_base& vitesse() override { return vitesse_impl<Eval_Quick_VDF_Elem>(); }
109 inline const Champ_base& vitesse() const override { return vitesse_impl<Eval_Quick_VDF_Elem>(); }
110 inline void dimensionner_blocs(matrices_t mats, const tabs_t& semi_impl) const override { Op_Conv_VDF_base::dimensionner_blocs_elem(mats, semi_impl); }
111
112protected:
114};
115
116#endif /* Op_Conv_VDF_Elem_leaves_included */
Classe Champ_Inc_base.
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
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.
Op_Conv_Amont_VDF_Elem(const Iterateur_VDF_base &it)
Champ_base & vitesse() override
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
void associer_vitesse(const Champ_base &ch_vit) override
void modifier_pour_Cl(Matrice_Morse &matrice, DoubleTab &secmem) const override
DOES NOTHING - to override in derived classes.
void dimensionner_blocs(matrices_t mats, const tabs_t &semi_impl) const override
void check_multiphase_compatibility() const override
const Champ_base & vitesse() const override
Champ_base & vitesse() override
void associer_vitesse(const Champ_base &ch_vit) override
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
const Champ_base & vitesse() const override
void modifier_pour_Cl(Matrice_Morse &matrice, DoubleTab &secmem) const override
DOES NOTHING - to override in derived classes.
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
void dimensionner_blocs(matrices_t mats, const tabs_t &semi_impl) const override
void associer_vitesse(const Champ_base &ch_vit) override
const Champ_base & vitesse() const override
Champ_base & vitesse() override
Op_Conv_Quick_VDF_Elem(const Iterateur_VDF_base &it)
Champ_base & vitesse() override
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
void dimensionner_blocs(matrices_t mats, const tabs_t &semi_impl) const override
const Champ_base & vitesse() const override
void check_multiphase_compatibility() const override
void associer_vitesse(const Champ_base &ch_vit) override
void modifier_pour_Cl(Matrice_Morse &matrice, DoubleTab &secmem) const override
DOES NOTHING - to override in derived classes.
void dimensionner_blocs_elem(matrices_t, const tabs_t &) const
void associer_champ_convecte_elem()
Op_Conv_VDF_base(const Iterateur_VDF_base &iter_base)
const Champ_base & vitesse_impl() const
Definition Op_Conv_VDF.h:75
void modifier_pour_Cl_elem(Matrice_Morse &matrice, DoubleTab &secmem) const
Definition Op_Conv_VDF.h:31
std::enable_if_t< _TYPE_==Type_Operateur::Op_CONV_ELEM, void > associer_impl(const Domaine_dis_base &domaine_dis, const Domaine_Cl_dis_base &domaine_cl_dis, const Champ_Inc_base &ch_transporte)
Definition Op_Conv_VDF.h:40
void associer_vitesse_impl(const Champ_base &ch_vit)
Definition Op_Conv_VDF.h:67