TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_Fonc_Face_PolyMAC_CDO.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_Fonc_Face_PolyMAC_CDO_included
17#define Champ_Fonc_Face_PolyMAC_CDO_included
18
19#include <Champ_Fonc_base.h>
20
22{
23 Declare_instanciable(Champ_Fonc_Face_PolyMAC_CDO) ;
24public:
25 void mettre_a_jour(double) override;
26
27 void interp_valeurs_elem(const DoubleTab& tab_ch, DoubleTab& val) const;
28 DoubleVect& valeur_a_elem(const DoubleVect& position, DoubleVect& result, int poly) const override;
29 double valeur_a_elem_compo(const DoubleVect& position, int poly, int ncomp) const override;
30
31 DoubleTab& valeur_aux_elems(const DoubleTab& positions, const IntVect& polys, DoubleTab& result) const override;
32 DoubleVect& valeur_aux_elems_compo(const DoubleTab& positions, const IntVect& polys, DoubleVect& result, int ncomp) const override;
33 DoubleTab& valeur_aux_sommets(const Domaine& domain, DoubleTab& result) const override;
34 DoubleVect& valeur_aux_sommets_compo(const Domaine& domain, DoubleVect& result, int ncomp) const override;
35 DoubleTab& valeur_aux_faces(DoubleTab& val) const override;
36
37 DoubleTab& remplir_coord_noeuds(DoubleTab& positions) const override;
38 int remplir_coord_noeuds_et_polys(DoubleTab& positions, IntVect& polys) const override;
39 Champ_base& affecter_(const Champ_base& ) override;
40 int fixer_nb_valeurs_nodales(int n) override;
41
42protected:
43 virtual Champ_base& le_champ() { return *this; }
44 virtual const Champ_base& le_champ() const { return *this; }
45};
46
47#endif /* Champ_Fonc_Face_PolyMAC_CDO_included */
DoubleTab & valeur_aux_elems(const DoubleTab &positions, const IntVect &polys, DoubleTab &result) const override
provoque une erreur ! doit etre surchargee par les classes derivees
DoubleVect & valeur_a_elem(const DoubleVect &position, DoubleVect &result, int poly) const override
provoque une erreur ! doit etre surchargee par les classes derivees
DoubleTab & valeur_aux_faces(DoubleTab &val) const override
renvoie la valeur du champ aux faces
void mettre_a_jour(double) override
Mise a jour en temps du champ.
DoubleTab & valeur_aux_sommets(const Domaine &domain, DoubleTab &result) const override
renvoie les valeurs aux sommets du Domaine dom
int remplir_coord_noeuds_et_polys(DoubleTab &positions, IntVect &polys) const override
NE FAIT RIEN A surcharger dans les classes derivees.
Champ_base & affecter_(const Champ_base &) override
Affecte un Champ_base dans un Champ_Fonc_base.
virtual const Champ_base & le_champ() const
void interp_valeurs_elem(const DoubleTab &tab_ch, DoubleTab &val) const
double valeur_a_elem_compo(const DoubleVect &position, int poly, int ncomp) const override
provoque une erreur ! doit etre surchargee par les classes derivees
DoubleVect & valeur_aux_elems_compo(const DoubleTab &positions, const IntVect &polys, DoubleVect &result, int ncomp) const override
provoque une erreur ! doit etre surchargee par les classes derivees
int fixer_nb_valeurs_nodales(int n) override
Fixe le nombre de degres de liberte par composante.
DoubleVect & valeur_aux_sommets_compo(const Domaine &domain, DoubleVect &result, int ncomp) const override
renvoie la compo eme valeur aux sommets de dom.
DoubleTab & remplir_coord_noeuds(DoubleTab &positions) const override
NE FAIT RIEN A surcharger dans les classes derivees.
classe Champ_Fonc_base Classe de base des champs qui sont fonction d'une grandeur calculee
Champ_base()
Constructeur par defaut d'un Champ_base.