Arcane  v3.15.3.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
MeshKind.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 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/* MeshKind.h (C) 2000-2025 */
9/* */
10/* Caractéristiques d'un maillage. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_MESHKIND_H
13#define ARCANE_CORE_MESHKIND_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
29{
30 Unknown,
31 Unstructured,
32 Cartesian,
33 Polyhedral
34};
35
36extern "C++" ARCANE_CORE_EXPORT std::ostream&
37operator<<(std::ostream& o, eMeshStructure r);
38
40enum class eMeshAMRKind
41{
42 None,
43 Cell,
44 Patch,
45 PatchCartesianMeshOnly
46};
47
48extern "C++" ARCANE_CORE_EXPORT std::ostream&
49operator<<(std::ostream& o, eMeshAMRKind r);
50
51/*---------------------------------------------------------------------------*/
52/*---------------------------------------------------------------------------*/
63class ARCANE_CORE_EXPORT MeshKind
64{
65 public:
66
67 eMeshStructure meshStructure() const { return m_structure; }
68 eMeshAMRKind meshAMRKind() const { return m_amr_kind; }
69 bool isNonManifold() const { return m_is_non_manifold; }
70
71 void setMeshStructure(eMeshStructure v) { m_structure = v; }
72 void setMeshAMRKind(eMeshAMRKind v) { m_amr_kind = v; }
73 void setIsNonManifold(bool v) { m_is_non_manifold = v; }
74
75 private:
76
77 eMeshStructure m_structure = eMeshStructure::Unknown;
78 eMeshAMRKind m_amr_kind = eMeshAMRKind::None;
79 bool m_is_non_manifold = false;
80};
81
82/*---------------------------------------------------------------------------*/
83/*---------------------------------------------------------------------------*/
84
85} // namespace Arcane
86
87/*---------------------------------------------------------------------------*/
88/*---------------------------------------------------------------------------*/
89
90#endif
Déclarations des types généraux de Arcane.
Maille d'un maillage.
Definition Item.h:1191
Caractéristiques d'un maillage.
Definition MeshKind.h:64
std::ostream & operator<<(std::ostream &o, eExecutionPolicy exec_policy)
Affiche le nom de la politique d'exécution.
@ None
Aucune politique d'exécution.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
eMeshStructure
Structure du maillage.
Definition MeshKind.h:29
eMeshAMRKind
Type de maillage AMR.
Definition MeshKind.h:41