Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
IMeshGenerator.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/* IMeshGenerator.h (C) 2000-2016 */
9/* */
10/* Interface of the mesh generation service. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_STD_IMESHGENERATOR_H
13#define ARCANE_STD_IMESHGENERATOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/Real3.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
30class ISubDomain;
31class IPrimaryMesh;
32class XmlNode;
33
34/*---------------------------------------------------------------------------*/
35/*---------------------------------------------------------------------------*/
36
37class NodeInfo
38{
39 public:
40
41 NodeInfo()
42 : m_owner(NULL_SUB_DOMAIN_ID)
43 {}
44 NodeInfo(Integer owner, const Real3& coord)
45 : m_owner(owner)
46 , m_coord(coord)
47 {}
48
49 public:
50
51 Integer m_owner;
52 Real3 m_coord;
53};
54
55/*---------------------------------------------------------------------------*/
56/*---------------------------------------------------------------------------*/
57
62{
63 public:
64
65 virtual ~IMeshGenerator() {}
66
67 public:
68
69 virtual IntegerConstArrayView communicatingSubDomains() const = 0;
70 virtual bool readOptions(XmlNode node) = 0;
71 virtual bool generateMesh() = 0;
72};
73
74/*---------------------------------------------------------------------------*/
75/*---------------------------------------------------------------------------*/
76
77} // namespace Arcane
78
79/*---------------------------------------------------------------------------*/
80/*---------------------------------------------------------------------------*/
81
82#endif
Declarations of Arcane's general types.
Declarations of types used in Arcane.
Interface of a mesh generator.
Interface of the subdomain manager.
Definition ISubDomain.h:75
Class managing a 3-dimensional real vector.
Definition Real3.h:132
Node of a DOM tree.
Definition XmlNode.h:51
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
Int32 Integer
Type representing an integer.
ConstArrayView< Integer > IntegerConstArrayView
C equivalent of a 1D array of integers.
Definition UtilsTypes.h:486