Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
CellMerger.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2023 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* CellMerger.h (C) 2000-2023 */
9/* */
10/* Fusionne deux mailles. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_MESH_CELLMERGER_H
13#define ARCANE_MESH_CELLMERGER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/mesh/MeshGlobal.h"
18
19#include "arcane/utils/String.h"
20#include "arcane/ItemTypes.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25namespace Arcane::mesh
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
33class ARCANE_MESH_EXPORT CellMerger
34{
35 public:
36
39
41 ~CellMerger() = default;
42
43 public:
44
54 void merge(Cell i_cell_1, Cell i_cell_2);
55
67 ARCANE_DEPRECATED_REASON("Y2022: Use getCell() instead")
69
81 Cell getCell(Cell i_cell_1, Cell i_cell_2);
82
83 private:
84
90 {
91 NotMergeable = 0,
92 Hexahedron = 1,
93 Pyramid = 2,
94 Pentahedron = 3,
95 Quadrilateral = 10,
96 Triangle = 11
97 };
98
106 String _typeName(const _Type& t) const;
107
115 _Type _getCellType(const Integer& internal_cell_type) const;
116
126 _Type _promoteType(const _Type& t1, const _Type& t2) const;
127};
128
129/*---------------------------------------------------------------------------*/
130/*---------------------------------------------------------------------------*/
131
132} // End namespace Arcane::mesh
133
134/*---------------------------------------------------------------------------*/
135/*---------------------------------------------------------------------------*/
136
137#endif // CELL_MERGER_H
Maille d'un maillage.
Definition Item.h:1178
Structure interne d'une entité de maillage.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Classe d'aide pour fusionner deux mailles.
Definition CellMerger.h:34
~CellMerger()=default
Destructeur.
CellMerger(ITraceMng *)
Constructeur.
Definition CellMerger.h:38
Interface du gestionnaire de traces.
Chaîne de caractères unicode.