TrioCFD 1.9.8
TrioCFD documentation
Loading...
Searching...
No Matches
Groupes_Faces.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
16#ifndef Groupes_Faces_included
17#define Groupes_Faces_included
18
19#include <TRUST_List.h>
20#include <Groupe_Faces.h>
21
22/*! @brief Class Groupes_Faces Cette classe represente une liste d'objets de type Groupe_Faces
23 *
24 * @sa Groupes_Faces
25 */
26template <typename _SIZE_>
27class Groupes_Faces_32_64 : public LIST(Groupe_Faces_32_64<_SIZE_>)
28{
29 Declare_instanciable_32_64(Groupes_Faces_32_64);
30
31public :
32 using int_t = _SIZE_;
33 using ArrOfInt_t = ArrOfInt_T<_SIZE_>;
35
37 int_t nb_faces() const;
38 inline int nb_groupes_faces() const { return this->size(); }
39 int_t nb_faces(Type_Face type) const;
40 void renumerote(ArrOfInt_t& reverse_index);
41};
42
43using Groupes_Faces = Groupes_Faces_32_64<int>;
44using Groupes_Faces_64 = Groupes_Faces_32_64<trustIdType>;
45
46
47#endif /* Groupes_Faces_included */
classe Domaine_32_64 un Domaine est un maillage compose d'un ensemble d'elements geometriques de meme...
Definition Domaine.h:62
Class Groupes_Faces Cette classe represente une liste d'objets de type Groupe_Faces.
Domaine_32_64< _SIZE_ > Domaine_t
ArrOfInt_T< _SIZE_ > ArrOfInt_t
int nb_groupes_faces() const
void associer_domaine(const Domaine_t &)
Associe un domaine a tous les objets Groupe_Faces de la liste.
int_t nb_faces(Type_Face type) const
Renvoie le nombre total de faces de type specifie contenues dans la liste des Groupe_Faces.
void renumerote(ArrOfInt_t &reverse_index)
int_t nb_faces() const
Renvoie le nombre total de faces contenues dans la liste des Groupe_Faces, i.