Arcane
v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
MeshAreaAccessor.cc
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
/* MeshArea.h (C) 2000-2006 */
9
/* */
10
/* Accès aux informations d'un maillage. */
11
/*---------------------------------------------------------------------------*/
12
/*---------------------------------------------------------------------------*/
13
14
#include "arcane/utils/ArcanePrecomp.h"
15
16
#include "arcane/IMeshArea.h"
17
#include "arcane/ItemGroup.h"
18
#include "arcane/MeshAreaAccessor.h"
19
20
/*---------------------------------------------------------------------------*/
21
/*---------------------------------------------------------------------------*/
22
23
ARCANE_BEGIN_NAMESPACE
24
25
/*---------------------------------------------------------------------------*/
26
/*---------------------------------------------------------------------------*/
27
28
MeshAreaAccessor::
29
MeshAreaAccessor(IMeshArea* mesh_area)
30
: m_mesh_area(mesh_area)
31
{
32
}
33
34
/*---------------------------------------------------------------------------*/
35
/*---------------------------------------------------------------------------*/
36
37
MeshAreaAccessor::
38
~MeshAreaAccessor()
39
{
40
}
41
42
/*---------------------------------------------------------------------------*/
43
/*---------------------------------------------------------------------------*/
44
45
void
MeshAreaAccessor::
46
setMeshArea(
IMeshArea
* area)
47
{
48
m_mesh_area = area;
49
}
50
51
IMeshArea
* MeshAreaAccessor::
52
meshArea()
53
{
54
return
m_mesh_area;
55
}
56
57
/*---------------------------------------------------------------------------*/
58
/*---------------------------------------------------------------------------*/
59
60
Integer MeshAreaAccessor::
61
nbNode()
62
{
63
return
m_mesh_area->nbNode();
64
}
65
66
Integer MeshAreaAccessor::
67
nbCell()
68
{
69
return
m_mesh_area->nbCell();
70
}
71
72
/*---------------------------------------------------------------------------*/
73
/*---------------------------------------------------------------------------*/
74
75
NodeGroup
MeshAreaAccessor::
76
allNodes()
77
{
78
return
m_mesh_area->allNodes();
79
}
80
81
CellGroup
MeshAreaAccessor::
82
allCells()
83
{
84
return
m_mesh_area->allCells();
85
}
86
87
/*---------------------------------------------------------------------------*/
88
/*---------------------------------------------------------------------------*/
89
90
NodeGroup
MeshAreaAccessor::
91
ownNodes()
92
{
93
return
m_mesh_area->ownNodes();
94
}
95
96
CellGroup
MeshAreaAccessor::
97
ownCells()
98
{
99
return
m_mesh_area->ownCells();
100
}
101
102
/*---------------------------------------------------------------------------*/
103
/*---------------------------------------------------------------------------*/
104
105
ARCANE_END_NAMESPACE
106
107
/*---------------------------------------------------------------------------*/
108
/*---------------------------------------------------------------------------*/
109
Arcane::IMeshArea
Interface d'une zone du maillage.
Definition
IMeshArea.h:41
Arcane::ItemGroupT< Node >
arcane
core
MeshAreaAccessor.cc
Généré le Lundi 18 Novembre 2024 02:56:49 pour Arcane par
1.9.8