TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_Elem_DG.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 Champ_Elem_DG_included
17#define Champ_Elem_DG_included
18
19#include <Champ_Inc_P0_base.h>
20#include <Operateur.h>
21#include <Quadrature_base.h>
22#include <Matrice_Dense.h>
23
24// Champ correspondant a une inconnue scalaire (type temperature ou pression)
25// Degres de libertes : valeur aux elements + flux aux faces
27{
28 Declare_instanciable(Champ_Elem_DG);
29public:
30 Champ_base& affecter_(const Champ_base& ch) override;
31 int imprime(Sortie&, int) const override;
32 int create_index(IntTab& indice);
33
34 int fixer_nb_valeurs_nodales(int n) override;
35
36 void associer_domaine_dis_base(const Domaine_dis_base&) override;
37
38 inline const int& get_order() const { return order_; }
39 inline const int& nb_bfunc() const { return nb_bfunc_; }
40
41 /* fonctions pour reconstruire la valeur du champ selon la localisation */
42 DoubleTab& valeur_aux_elems(const DoubleTab& positions, const IntVect& les_polys, DoubleTab& valeurs) const override;
43 DoubleTab& valeur_aux(const DoubleTab& positions, DoubleTab& valeurs) const override;
44 DoubleTab& eval_elem(DoubleTab& valeurs) const override;
45
46protected:
47
48 int order_ = -1;
49 int nb_bfunc_ = -1;
50};
51
52
53#endif /* Champ_Elem_DG_included */
const int & nb_bfunc() const
int create_index(IntTab &indice)
DoubleTab & eval_elem(DoubleTab &valeurs) const override
int fixer_nb_valeurs_nodales(int n) override
Champ_base & affecter_(const Champ_base &ch) override
int imprime(Sortie &, int) const override
DoubleTab & valeur_aux_elems(const DoubleTab &positions, const IntVect &les_polys, DoubleTab &valeurs) const override
provoque une erreur ! doit etre surchargee par les classes derivees
const int & get_order() const
void associer_domaine_dis_base(const Domaine_dis_base &) override
DoubleTab & valeur_aux(const DoubleTab &positions, DoubleTab &valeurs) const override
Provoque une erreur ! Doit etre surchargee par les classes derivees.
: class Champ_Inc_P0_base
DoubleTab & valeurs() override
Renvoie le tableau des valeurs du champ au temps courant.
Champ_base()
Constructeur par defaut d'un Champ_base.
classe Domaine_dis_base Cette classe est la base de la hierarchie des domaines discretisees.
Classe de base des flux de sortie.
Definition Sortie.h:52