TrioCFD 1.9.9_beta
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> // for compilers (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 This class represents the convection operator associated with a scalar transport equation.
31 *
32 * The discretization is VDF. The convected field is scalar. The convection scheme is of upwind type.
33 * The associated iterator is of type Iterateur_VDF_Elem. The associated evaluator is of 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) { } // This constructor allows creating derived classes (example: front_tracking)
52};
53
54/*! @brief class Op_Conv_Centre_VDF_Elem This class represents the convection operator associated with a scalar transport equation.
55 *
56 * The discretization is VDF. The convected field is scalar. The convection scheme is of centered type (2-point centered).
57 * The associated iterator is of type Iterateur_VDF_Elem. The associated evaluator is of 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 This class represents the convection operator associated with a scalar transport equation.
75 *
76 * The discretization is VDF. The convected field is scalar. The convection scheme is of centered type (4-point centered).
77 * The associated iterator is of type Iterateur_VDF_Elem. The associated evaluator is of 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 This class represents the convection operator associated with a scalar transport equation.
93 *
94 * The discretization is VDF. The convected field is scalar. The convection scheme is of Quick type.
95 * The associated iterator is of type Iterateur_VDF_Elem. The associated evaluator is of 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 */
Class Champ_Inc_base.
class Champ_base This class is the base of the fields hierarchy.
Definition Champ_base.h:43
class Domaine_Cl_dis_base Domaine_Cl_dis_base objects represent discretized boundary conditions
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,.
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