Arcane  v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MeshAccessor.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2022 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/* MeshAccessor.h (C) 2000-2020 */
9/* */
10/* Accès aux informations d'un maillage. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_MESHACCESSOR_H
13#define ARCANE_MESHACCESSOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/ItemTypes.h"
18#include "arcane/VariableTypedef.h"
19#include "arcane/MeshHandle.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
30class ISubDomain;
31class IMesh;
32
33/*---------------------------------------------------------------------------*/
34/*---------------------------------------------------------------------------*/
39class ARCANE_CORE_EXPORT MeshAccessor
40{
41 public:
42
43 ARCCORE_DEPRECATED_2020("Use constructor with MeshHande")
45 MeshAccessor(IMesh* mesh);
47
48 public:
49
51 Integer nbCell() const;
53 Integer nbFace() const;
55 Integer nbEdge() const;
57 Integer nbNode() const;
58
60 VariableNodeReal3& nodesCoordinates() const;
61
63 NodeGroup allNodes() const;
65 EdgeGroup allEdges() const;
67 FaceGroup allFaces() const;
69 CellGroup allCells() const;
71 FaceGroup outerFaces() const;
79 NodeGroup ownNodes() const;
87 CellGroup ownCells() const;
95 FaceGroup ownFaces() const;
103 EdgeGroup ownEdges() const;
104
105
106 public:
107
108 inline IMesh* mesh() const { return m_mesh_handle.mesh(); }
109 inline const MeshHandle& meshHandle() const { return m_mesh_handle; }
110
111 private:
112
113 MeshHandle m_mesh_handle;
114};
115
116/*---------------------------------------------------------------------------*/
117/*---------------------------------------------------------------------------*/
118
119} // End namespace Arcane
120
121/*---------------------------------------------------------------------------*/
122/*---------------------------------------------------------------------------*/
123
124#endif
Interface du gestionnaire d'un sous-domaine.
Definition ISubDomain.h:74
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:120
Accès aux informations d'un maillage.
Handle sur un maillage.
Definition MeshHandle.h:47
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-