TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Conv_VDF_Face_leaves.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_Conv_VDF_Face_leaves_included
17#define Op_Conv_VDF_Face_leaves_included
18
19#include <Eval_Conv_VDF_Elem_leaves.h> // for compilers (templates :-) )
20#include <Eval_Conv_VDF_Face_leaves.h>
21#include <Iterateur_VDF_Face.h>
22#include <Pb_Multiphase.h>
23#include <Op_Conv_VDF.h>
24
25/// \cond DO_NOT_DOCUMENT
26class Op_Conv_VDF_Face_leaves
27{ };
28/// \endcond
29
30/*! @brief class Op_Conv_Amont_VDF_Face This class represents the convection operator associated with a momentum equation.
31 *
32 * The discretization is VDF. The convected field is of type Champ_Face_VDF. The convection scheme is of upwind type.
33 * The associated iterator is of type Iterateur_VDF_Face. The associated evaluator is of type Eval_Amont_VDF_Face
34 *
35 */
36class Op_Conv_Amont_VDF_Face : public Op_Conv_VDF_base, public Op_Conv_VDF<Op_Conv_Amont_VDF_Face>
37{
38 Declare_instanciable_sans_constructeur(Op_Conv_Amont_VDF_Face);
39public:
41 void check_multiphase_compatibility() const override { }
43 inline void modifier_pour_Cl(Matrice_Morse& matrice, DoubleTab& secmem) const override { modifier_pour_Cl_face(matrice,secmem); }
45 inline void associer_vitesse(const Champ_base& ch_vit) override { associer_vitesse_impl<Eval_Amont_VDF_Face>(ch_vit); }
46 inline Champ_base& vitesse() override { return vitesse_impl<Eval_Amont_VDF_Face>(); }
47 inline const Champ_base& vitesse() const override { return vitesse_impl<Eval_Amont_VDF_Face>(); }
48 inline void dimensionner_blocs(matrices_t mats, const tabs_t& semi_impl) const override // TODO : FIXME
49 {
50 if (sub_type(Pb_Multiphase,equation().probleme())) Op_Conv_VDF_base::dimensionner_blocs_face(mats, semi_impl);
52 }
53};
54
55/*! @brief class Op_Conv_Centre_VDF_Face This class represents the convection operator associated with a momentum equation.
56 *
57 * The discretization is VDF. The convected field is of type Champ_Face_VDF. The convection scheme is of centered type.
58 * The associated iterator is of type Iterateur_VDF_Face. The associated evaluator is of type Eval_Centre_VDF_Face
59 *
60 */
61class Op_Conv_Centre_VDF_Face : public Op_Conv_VDF_base, public Op_Conv_VDF<Op_Conv_Centre_VDF_Face>
62{
63 Declare_instanciable_sans_constructeur(Op_Conv_Centre_VDF_Face);
64public:
67 inline void modifier_pour_Cl(Matrice_Morse& matrice, DoubleTab& secmem) const override { modifier_pour_Cl_face(matrice,secmem); }
69 inline void associer_vitesse(const Champ_base& ch_vit) override { associer_vitesse_impl<Eval_Centre_VDF_Face>(ch_vit); }
70 inline Champ_base& vitesse() override { return vitesse_impl<Eval_Centre_VDF_Face>(); }
71 inline const Champ_base& vitesse() const override { return vitesse_impl<Eval_Centre_VDF_Face>(); }
72 inline void dimensionner_blocs(matrices_t mats, const tabs_t& semi_impl) const override { dimensionner_blocs_impl<Type_Operateur::Op_CONV_FACE>(mats); }
73};
74
75/*! @brief class Op_Conv_Centre4_VDF_Face This class represents the convection operator associated with a momentum equation.
76 *
77 * The discretization is VDF. The convected field is of type Champ_Face_VDF. The convection scheme is of centered4 type (4-point centered).
78 * The associated iterator is of type Iterateur_VDF_Face. The associated evaluator is of type Eval_Centre4_VDF_Face
79 *
80 */
81class Op_Conv_Centre4_VDF_Face : public Op_Conv_VDF_base, public Op_Conv_VDF<Op_Conv_Centre4_VDF_Face>
82{
83 Declare_instanciable_sans_constructeur(Op_Conv_Centre4_VDF_Face);
84public:
88 inline void associer_vitesse(const Champ_base& ch_vit) override { associer_vitesse_impl<Eval_Centre4_VDF_Face>(ch_vit); }
90 inline const Champ_base& vitesse() const override { return vitesse_impl<Eval_Centre4_VDF_Face>(); }
91};
92
93/*! @brief class Op_Conv_Quick_VDF_Face This class represents the convection operator associated with a momentum equation.
94 *
95 * The discretization is VDF. The convected field is of type Champ_Face_VDF.
96 * The convection scheme is of Quick type. The associated iterator is of type Iterateur_VDF_Face. The associated evaluator is of type Eval_Quick_VDF_Face
97 *
98 */
99class Op_Conv_Quick_VDF_Face_Axi : public Op_Conv_VDF_base, public Op_Conv_VDF<Op_Conv_Quick_VDF_Face_Axi>
100{
101 Declare_instanciable_sans_constructeur(Op_Conv_Quick_VDF_Face_Axi);
102public:
106 inline void associer_vitesse(const Champ_base& ch_vit) override { associer_vitesse_impl<Eval_Quick_VDF_Face_Axi>(ch_vit); }
108 inline const Champ_base& vitesse() const override { return vitesse_impl<Eval_Quick_VDF_Face_Axi>(); }
109};
110
111/*! @brief class Op_Conv_Quick_VDF_Face This class represents the convection operator associated with a momentum equation.
112 *
113 * The discretization is VDF. The convected field is of type Champ_Face_VDF. The convection scheme is of Quick type.
114 * The associated iterator is of type Iterateur_VDF_Face. The associated evaluator is of type Eval_Quick_VDF_Face
115 *
116 */
117class Op_Conv_Quick_VDF_Face : public Op_Conv_VDF_base, public Op_Conv_VDF<Op_Conv_Quick_VDF_Face>
118{
119 Declare_instanciable_sans_constructeur(Op_Conv_Quick_VDF_Face);
120public:
123 inline void modifier_pour_Cl(Matrice_Morse& matrice, DoubleTab& secmem) const override { modifier_pour_Cl_face(matrice,secmem); }
125 inline void associer_vitesse(const Champ_base& ch_vit) override { associer_vitesse_impl<Eval_Quick_VDF_Face>(ch_vit); }
126 inline Champ_base& vitesse() override { return vitesse_impl<Eval_Quick_VDF_Face>(); }
127 inline const Champ_base& vitesse() const override { return vitesse_impl<Eval_Quick_VDF_Face>(); }
128 inline void dimensionner_blocs(matrices_t mats, const tabs_t& semi_impl) const override { dimensionner_blocs_impl<Type_Operateur::Op_CONV_FACE>(mats); }
129};
130
131#endif /* Op_Conv_VDF_Face_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,.
const Equation_base & equation() const
Returns the reference to the equation pointed to by MorEqn::mon_equation.
Definition MorEqn.h:62
Champ_base & vitesse() override
void associer_vitesse(const Champ_base &ch_vit) override
void check_multiphase_compatibility() const override
void dimensionner_blocs(matrices_t mats, const tabs_t &semi_impl) const 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.
Champ_base & vitesse() 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 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
Champ_base & vitesse() override
const Champ_base & vitesse() const override
void dimensionner_blocs(matrices_t mats, const tabs_t &semi_impl) const override
void modifier_pour_Cl(Matrice_Morse &matrice, DoubleTab &secmem) const override
DOES NOTHING - to override in derived classes.
void associer_vitesse(const Champ_base &ch_vit) 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 dimensionner_blocs(matrices_t mats, const tabs_t &semi_impl) const override
const Champ_base & vitesse() const override
void associer(const Domaine_dis_base &zd, const Domaine_Cl_dis_base &zcd, const Champ_Inc_base &ch) override
void modifier_pour_Cl(Matrice_Morse &matrice, DoubleTab &secmem) const override
DOES NOTHING - to override in derived classes.
Champ_base & vitesse() override
void associer_vitesse(const Champ_base &ch_vit) override
void associer_champ_convecte_face()
void dimensionner_blocs_face(matrices_t, const tabs_t &) const
Op_Conv_VDF_base(const Iterateur_VDF_base &iter_base)
void modifier_pour_Cl_face(Matrice_Morse &matrice, DoubleTab &secmem) const
Definition Op_Conv_VDF.h:35
const Champ_base & vitesse_impl() const
Definition Op_Conv_VDF.h:75
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 dimensionner_blocs_impl(matrices_t mats) const
Definition Op_Conv_VDF.h:57
void associer_vitesse_impl(const Champ_base &ch_vit)
Definition Op_Conv_VDF.h:67
Multiphase thermohydraulics problem of type "3*N equations":