TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Op_Conv_EF_VEF_P1NC.h
1/****************************************************************************
2* Copyright (c) 2023, 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
17#ifndef Op_Conv_EF_VEF_P1NC_included
18#define Op_Conv_EF_VEF_P1NC_included
19
20#include <Op_Conv_VEF_base.h>
21class Matrice_Morse;
22/*! @brief class Op_Conv_EF_VEF_P1NC
23 *
24 * Cette classe represente l'operateur de convection associe a une equation de
25 * transport d'un scalaire.
26 * La discretisation est VEF
27 * Le champ convecte est scalaire ou vecteur de type Champ_P1NC
28 * Le schema de convection est du type Amont
29 * Les methodes pour l'implicite sont codees.
30 *
31 *
32 * @sa Operateur_Conv_base
33 */
35{
36
37 Declare_instanciable(Op_Conv_EF_VEF_P1NC);
38
39public:
40
41 DoubleTab& ajouter(const DoubleTab& , DoubleTab& ) const override;
42
43 // Methodes pour l implicite.
44 inline void dimensionner(Matrice_Morse& ) const override;
45 inline void modifier_pour_Cl(Matrice_Morse&, DoubleTab&) const override;
46 inline void contribuer_a_avec(const DoubleTab&, Matrice_Morse&) const override;
47 inline void contribuer_au_second_membre(DoubleTab& ) const override;
48 void contribue_au_second_membre(DoubleTab& ) const;
49 void ajouter_contribution(const DoubleTab&, Matrice_Morse& ) const;
50
51protected:
53 int filtrer_resu = 1, antisym = 1;
54};
55
56
57/*! @brief on dimensionne notre matrice au moyen de la methode dimensionner de la classe Op_VEF_Face.
58 *
59 */
61{
62 Op_VEF_Face::dimensionner(le_dom_vef.valeur(),la_zcl_vef.valeur(), matrice);
63}
64
65
66/*! @brief On modifie le second membre et la matrice dans le cas des conditions de dirichlet.
67 *
68 */
69inline void Op_Conv_EF_VEF_P1NC::modifier_pour_Cl(Matrice_Morse& matrice, DoubleTab& secmem) const
70{
71 Op_VEF_Face::modifier_pour_Cl(le_dom_vef.valeur(),la_zcl_vef.valeur(), matrice, secmem);
72}
73
74
75/*! @brief on assemble la matrice des inconnues implicite.
76 *
77 */
78inline void Op_Conv_EF_VEF_P1NC::contribuer_a_avec(const DoubleTab& inco,
79 Matrice_Morse& matrice) const
80{
81 ajouter_contribution(inco, matrice);
82}
83
84/*! @brief on ajoute la contribution du second membre.
85 *
86 */
87inline void Op_Conv_EF_VEF_P1NC::contribuer_au_second_membre(DoubleTab& resu) const
88{
90}
91
92#endif
Classe Matrice_Morse Represente une matrice M (creuse), non necessairement carree.
class Op_Conv_EF_VEF_P1NC
DoubleTab & ajouter(const DoubleTab &, DoubleTab &) const override
void modifier_pour_Cl(Matrice_Morse &, DoubleTab &) const override
On modifie le second membre et la matrice dans le cas des conditions de dirichlet.
void ajouter_contribution(const DoubleTab &, Matrice_Morse &) const
void contribue_au_second_membre(DoubleTab &) const
void dimensionner(Matrice_Morse &) const override
on dimensionne notre matrice au moyen de la methode dimensionner de la classe Op_VEF_Face.
void contribuer_a_avec(const DoubleTab &, Matrice_Morse &) const override
on assemble la matrice des inconnues implicite.
void contribuer_au_second_membre(DoubleTab &) const override
on ajoute la contribution du second membre.
class Op_Conv_VEF_base
void dimensionner(const Domaine_VEF &, const Domaine_Cl_VEF &, Matrice_Morse &) const
Dimensionnement de la matrice qui devra recevoir les coefficients provenant de la convection,...
void modifier_pour_Cl(const Domaine_VEF &, const Domaine_Cl_VEF &, Matrice_Morse &, DoubleTab &) const
Modification des coef de la matrice et du second membre pour les conditions de Dirichlet.