TRUST 1.9.8
HPC thermohydraulic platform
Loading...
Searching...
No Matches
Domaine_bord.h
1/****************************************************************************
2* Copyright (c) 2024, 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#ifndef Domaine_bord_included
16#define Domaine_bord_included
17#include <Domaine.h>
18
19/*! @brief Cette classe est un domaine dont les sommets et les elements sont extraits d'un bord d'un domaine source.
20 *
21 * On construit ce domaine par la methode construire_domaine_bord()
22 *
23 */
24template <typename _SIZE_>
25class Domaine_bord_32_64 : public Domaine_32_64<_SIZE_>
26{
27 Declare_instanciable_32_64(Domaine_bord_32_64);
28public:
29 using int_t = _SIZE_;
30 using ArrOfInt_t = ArrOfInt_T<_SIZE_>;
31 using IntTab_t = IntTab_T<_SIZE_>;
32 using DoubleTab_t = DoubleTab_T<_SIZE_>;
33
36
37 virtual void construire_domaine_bord(const Domaine_t& source, const Nom& nom_bord);
38 virtual const Domaine_t& get_domaine_source() const;
39 virtual const Nom& get_nom_bord_source() const;
40 virtual const ArrOfInt_t& get_renum_som() const;
41
42 static void extraire_domaine_bord(const Domaine_t& src,
43 const Nom& nom_bord,
44 Domaine_t& dest,
45 ArrOfInt_t& renum_som);
46protected:
47 // Reference au domaine source:
48 OBS_PTR(Domaine_t) domaine_source_;
49 // Nom du bord dans le domaine source:
51 // Pour chaque sommet de ce domaine, indice du meme sommet dans le domaine source:
53};
54
55using Domaine_bord = Domaine_bord_32_64<int>;
56using Domaine_bord_64 = Domaine_bord_32_64<trustIdType>;
57
58#endif
Cette classe est un domaine dont les sommets et les elements sont extraits d'un bord d'un domaine sou...
virtual void construire_domaine_bord(const Domaine_t &source, const Nom &nom_bord)
construit le domaine en appelant extraire_domaine_bord()
virtual const Domaine_t & get_domaine_source() const
renvoie une reference au domaine source
Frontiere_32_64< _SIZE_ > Frontiere_t
virtual const Nom & get_nom_bord_source() const
renvoie le nom du bord source
static void extraire_domaine_bord(const Domaine_t &src, const Nom &nom_bord, Domaine_t &dest, ArrOfInt_t &renum_som)
remplit le domaine "dest" avec les sommets et les faces du bord "nom_bord" du domaine "src".
virtual const ArrOfInt_t & get_renum_som() const
renvoie renum_som (pour chaque sommet du domaine_bord, indice du meme sommet dans le domaine)
DoubleTab_T< _SIZE_ > DoubleTab_t
Domaine_32_64< _SIZE_ > Domaine_t
IntTab_T< _SIZE_ > IntTab_t
ArrOfInt_T< _SIZE_ > ArrOfInt_t
OBS_PTR(Domaine_t) domaine_source_
Classe Frontiere.
Definition Frontiere.h:32
class Nom Une chaine de caractere pour nommer les objets de TRUST
Definition Nom.h:31