Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
MeshAreaAccessor.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 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/* MeshAreaAccessor.h (C) 2000-2025 */
9/* */
10/* Access to information about a mesh area. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_MESHAREAACCESSOR_H
13#define ARCANE_CORE_MESHAREAACCESSOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
29/*!
30 * \brief Access to information about a mesh area.
31 */
32class ARCANE_CORE_EXPORT MeshAreaAccessor
33{
34 public:
35
36 explicit MeshAreaAccessor(IMeshArea* mesh_area);
37 ~MeshAreaAccessor();
38
39 public:
40
41 //! Mesh area accessed by this accessor
43
44 //! Sets the mesh area accessed by this accessor to \a mesh_area
45 void setMeshArea(IMeshArea* mesh_area);
46
47 public:
48
49 //! Number of nodes in the mesh
51
52 //! Number of cells in the mesh
54
55 public:
56
57 //! Group of all nodes in the area
59
60 //! Group of all cells in the area
62
63 //! Group of all own nodes in the area
65
66 //! Group of all own cells in the area
68
69 private:
70
71 IMeshArea* m_mesh_area = nullptr;
72};
73
74/*---------------------------------------------------------------------------*/
75/*---------------------------------------------------------------------------*/
76
77} // namespace Arcane
78
79/*---------------------------------------------------------------------------*/
80/*---------------------------------------------------------------------------*/
81
82#endif
Declarations of Arcane's general types.
Declarations of types on entities.
Interface of a mesh area.
Definition IMeshArea.h:38
NodeGroup allNodes()
Group of all nodes in the area.
CellGroup allCells()
Group of all cells in the area.
Integer nbNode()
Number of nodes in the mesh.
void setMeshArea(IMeshArea *mesh_area)
Sets the mesh area accessed by this accessor to mesh_area.
NodeGroup ownNodes()
Group of all own nodes in the area.
CellGroup ownCells()
Group of all own cells in the area.
IMeshArea * meshArea()
Mesh area accessed by this accessor.
Integer nbCell()
Number of cells in the mesh.
ItemGroupT< Cell > CellGroup
Group of cells.
Definition ItemTypes.h:184
ItemGroupT< Node > NodeGroup
Group of nodes.
Definition ItemTypes.h:168
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.