TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Champ_P1_isoP1Bulle.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#ifndef Champ_P1_isoP1Bulle_included
17#define Champ_P1_isoP1Bulle_included
18
19#include <Champ_P1iP1B_implementation.h>
20#include <Domaine_VEF.h>
21#include <Champ_Inc_base.h>
22
24{
25 Declare_instanciable(Champ_P1_isoP1Bulle);
26public:
27 int fixer_nb_valeurs_nodales(int) override;
28 DoubleTab& remplir_coord_noeuds(DoubleTab&) const override;
29 DoubleVect& valeur_a_elem(const DoubleVect& position, DoubleVect& val, int le_poly) const override;
30
31 double valeur_a_elem_compo(const DoubleVect& position, int le_poly, int ncomp) const override;
32 DoubleTab& valeur_aux_elems(const DoubleTab& positions, const IntVect& les_polys, DoubleTab& valeurs) const override;
33 DoubleVect& valeur_aux_elems_compo(const DoubleTab& positions, const IntVect& les_polys, DoubleVect& valeurs, int ncomp) const override;
34
35 DoubleTab& trace(const Frontiere_dis_base&, DoubleTab&, double, int distant) const override;
36 double valeur_au_bord(int face) const;
37 Champ_base& affecter_(const Champ_base&) override;
38 double norme_L2(const Domaine& dom) const;
39
40 inline const Domaine_VEF& domaine_vef() const override { return ref_cast(Domaine_VEF, le_dom_VF.valeur()); }
41
42 inline DoubleTab& valeur_aux_sommets(const Domaine& dom, DoubleTab& sommets) const override
43 {
45 }
46
47 inline DoubleVect& valeur_aux_sommets_compo(const Domaine& dom, DoubleVect& sommets, int compo) const override
48 {
50 }
51
52protected:
53 void completer(const Domaine_Cl_dis_base& zcl) override;
54
55private:
56 inline const Champ_base& le_champ() const override { return *this; }
57 inline Champ_base& le_champ() override { return *this; }
58};
59
60#endif /* Champ_P1_isoP1Bulle_included */
DoubleTab & valeurs() override
Renvoie le tableau des valeurs du champ au temps courant.
void completer(const Domaine_Cl_dis_base &zcl) override
const Domaine_VEF & domaine_vef() const override
DoubleVect & valeur_aux_sommets_compo(const Domaine &dom, DoubleVect &sommets, int compo) const override
renvoie la compo eme valeur aux sommets de dom.
DoubleVect & valeur_a_elem(const DoubleVect &position, DoubleVect &val, int le_poly) const override
provoque une erreur ! doit etre surchargee par les classes derivees
int fixer_nb_valeurs_nodales(int) override
double valeur_a_elem_compo(const DoubleVect &position, int le_poly, int ncomp) const override
provoque une erreur ! doit etre surchargee par les classes derivees
Champ_base & affecter_(const Champ_base &) override
Affectation d'un OWN_PTR(Champ_base) generique (Champ_base) dans un champ inconnue.
DoubleTab & trace(const Frontiere_dis_base &, DoubleTab &, double, int distant) const override
voir Champ_base Cas particulier (malheureusement) du Champ_P0_VDF :
double norme_L2(const Domaine &dom) const
DoubleTab & valeur_aux_sommets(const Domaine &dom, DoubleTab &sommets) const override
renvoie les valeurs aux sommets du Domaine dom
DoubleVect & valeur_aux_elems_compo(const DoubleTab &positions, const IntVect &les_polys, DoubleVect &valeurs, int ncomp) const override
provoque une erreur ! doit etre surchargee par les classes derivees
double valeur_au_bord(int face) const
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
DoubleTab & remplir_coord_noeuds(DoubleTab &) const override
DoubleVect & valeur_aux_sommets_compo(const Domaine &, DoubleVect &, int) const override
DoubleTab & valeur_aux_sommets(const Domaine &, DoubleTab &) const override
classe Champ_base Cette classe est la base de la hierarchie des champs.
Definition Champ_base.h:43
Champ_base()
Constructeur par defaut d'un Champ_base.
virtual Champ_base & le_champ()=0
classe Domaine_Cl_dis_base Les objets Domaine_Cl_dis_base representent les conditions aux limites
class Domaine_VEF
Definition Domaine_VEF.h:54
classe Frontiere_dis_base Classe representant une frontiere discretisee.