TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Champ_implementation_sommet.h
1/****************************************************************************
2* Copyright (c) 2022, 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_implementation_sommet_included
17#define Champ_implementation_sommet_included
18
19#include <Champ_implementation.h>
20#include <Frontiere_dis_base.h>
21#include <Frontiere.h>
22
23/*! @brief : class Champ_implementation_sommet
24 *
25 * Decrire ici la classe Champ_implementation_sommet
26 *
27 */
29{
30public:
32 DoubleVect& valeur_a_elem(const DoubleVect& position, DoubleVect& result, int poly) const override;
33 double valeur_a_elem_compo(const DoubleVect& position, int poly, int ncomp) const override;
34 DoubleTab& valeur_aux_elems(const DoubleTab& positions, const IntVect& polys, DoubleTab& result) const override;
35 DoubleVect& valeur_aux_elems_compo(const DoubleTab& positions, const IntVect& polys, DoubleVect& result, int ncomp) const override;
36 DoubleTab valeur_aux_bords() const;
37 DoubleTab& remplir_coord_noeuds(DoubleTab& positions) const override;
38 int remplir_coord_noeuds_et_polys(DoubleTab& positions, IntVect& polys) const override;
39
40protected:
41 DoubleTab& valeur_aux_sommets_impl(DoubleTab& result) const override;
42 DoubleVect& valeur_aux_sommets_compo_impl(DoubleVect& result, int ncomp) const override;
43 inline DoubleTab& trace(const Frontiere_dis_base& fr, const DoubleTab& y, DoubleTab& x, int distant) const;
44 virtual void value_interpolation(const DoubleTab& positions, const ArrOfInt& cells, const DoubleTab& values, DoubleTab& resu, int ncomp = -1) const =0;
45};
46
47inline DoubleTab& Champ_implementation_sommet::trace(const Frontiere_dis_base& fr, const DoubleTab& y, DoubleTab& x,int distant) const
48{
49 if (distant)
51 else
52 fr.frontiere().trace_som_local(y, x);
53 // useless ? x.echange_espace_virtuel();
54 return x;
55}
56
57#endif /* Champ_implementation_sommet_inclus */
: class Champ_implementation_sommet
DoubleTab & valeur_aux_elems(const DoubleTab &positions, const IntVect &polys, DoubleTab &result) const override
DoubleTab & valeur_aux_sommets_impl(DoubleTab &result) const override
DoubleVect & valeur_aux_elems_compo(const DoubleTab &positions, const IntVect &polys, DoubleVect &result, int ncomp) const override
virtual void value_interpolation(const DoubleTab &positions, const ArrOfInt &cells, const DoubleTab &values, DoubleTab &resu, int ncomp=-1) const =0
DoubleTab & remplir_coord_noeuds(DoubleTab &positions) const override
double valeur_a_elem_compo(const DoubleVect &position, int poly, int ncomp) const override
DoubleVect & valeur_a_elem(const DoubleVect &position, DoubleVect &result, int poly) const override
DoubleVect & valeur_aux_sommets_compo_impl(DoubleVect &result, int ncomp) const override
int remplir_coord_noeuds_et_polys(DoubleTab &positions, IntVect &polys) const override
DoubleTab & trace(const Frontiere_dis_base &fr, const DoubleTab &y, DoubleTab &x, int distant) const
virtual void trace_som_distant(const DoubleTab &, DoubleTab &) const
virtual void trace_som_local(const DoubleTab &y, DoubleTab &x) const
classe Frontiere_dis_base Classe representant une frontiere discretisee.
const Frontiere & frontiere() const
Renvoie la frontiere geometrique associee.