Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
MeshKind.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2024 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-2024 */
9/* */
10/* Caractéristiques d'un maillage. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_MESHKIND_H
13#define ARCANE_MESHKIND_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27//! Structure du maillage
29{
30 Unknown,
31 Unstructured,
32 Cartesian,
33 Polyhedral
34};
35extern "C++" ARCANE_CORE_EXPORT std::ostream&
36operator<<(std::ostream& o, eMeshStructure r);
37
38//! Type de maillage AMR
39enum class eMeshAMRKind
40{
41 None,
42 Cell,
43 Patch,
44 PatchCartesianMeshOnly
45};
46extern "C++" ARCANE_CORE_EXPORT std::ostream&
47operator<<(std::ostream& o, eMeshAMRKind r);
48
49/*---------------------------------------------------------------------------*/
50/*---------------------------------------------------------------------------*/
51/*!
52 * \brief Caractéristiques d'un maillage.
53 *
54 * Pour l'instant les caractéristiques sont:
55 * - la structure du maillage (eMeshStructure)
56 * - le type d'AMR
57 */
58class ARCANE_CORE_EXPORT MeshKind
59{
60 public:
61
62 eMeshStructure meshStructure() const { return m_structure; }
63 eMeshAMRKind meshAMRKind() const { return m_amr_kind; }
64 void setMeshStructure(eMeshStructure v) { m_structure = v; }
65 void setMeshAMRKind(eMeshAMRKind v) { m_amr_kind = v; }
66
67 private:
68
69 eMeshStructure m_structure = eMeshStructure::Unknown;
70 eMeshAMRKind m_amr_kind = eMeshAMRKind::None;
71};
72
73/*---------------------------------------------------------------------------*/
74/*---------------------------------------------------------------------------*/
75
76} // namespace Arcane
77
78/*---------------------------------------------------------------------------*/
79/*---------------------------------------------------------------------------*/
80
81#endif
Déclarations des types généraux de Arcane.
Maille d'un maillage.
Definition Item.h:1178
Caractéristiques d'un maillage.
Definition MeshKind.h:59
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
eMeshStructure
Structure du maillage.
Definition MeshKind.h:29
std::ostream & operator<<(std::ostream &ostr, eItemKind item_kind)
Opérateur de sortie sur un flot.
eMeshAMRKind
Type de maillage AMR.
Definition MeshKind.h:40