Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
ICartesianMeshGenerationInfo.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/* ICartesianMeshGenerationInfo.h (C) 2000-2025 */
9/* */
10/* Cartesian mesh generation information. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_ICARTESIANMESHGENERATIONINFO_H
13#define ARCANE_CORE_ICARTESIANMESHGENERATIONINFO_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28/*!
29 * \internal
30 * \brief Brief: Cartesian mesh generation information.
31 */
32class ARCANE_CORE_EXPORT ICartesianMeshGenerationInfo
33{
34 public:
35
36 static ICartesianMeshGenerationInfo* getReference(IMesh* mesh, bool create);
37
38 public:
39
40 virtual ~ICartesianMeshGenerationInfo() = default;
41
42 public:
43
44 virtual Int64 globalNbCell() const = 0;
45 virtual Int64ConstArrayView globalNbCells() const = 0;
46 virtual Int32ConstArrayView subDomainOffsets() const = 0;
47 virtual Int32ConstArrayView nbSubDomains() const = 0;
48 virtual Int32ConstArrayView ownNbCells() const = 0;
49 virtual Int64ConstArrayView ownCellOffsets() const = 0;
50 virtual Int64 firstOwnCellUniqueId() const = 0;
51 virtual Real3 globalOrigin() const = 0;
52 virtual Real3 globalLength() const = 0;
53
54 virtual void setOwnCellOffsets(Int64 x, Int64 y, Int64 z) = 0;
55 virtual void setGlobalNbCells(Int64 x, Int64 y, Int64 z) = 0;
56 virtual void setSubDomainOffsets(Int32 x, Int32 y, Int32 z) = 0;
57 virtual void setNbSubDomains(Int32 x, Int32 y, Int32 z) = 0;
58 virtual void setOwnNbCells(Int32 x, Int32 y, Int32 z) = 0;
59 virtual void setFirstOwnCellUniqueId(Int64 uid) = 0;
60 virtual void setGlobalOrigin(Real3 pos) = 0;
61 virtual void setGlobalLength(Real3 length) = 0;
62};
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
67} // End namespace Arcane
68
69/*---------------------------------------------------------------------------*/
70/*---------------------------------------------------------------------------*/
71
72#endif
Declarations of Arcane's general types.
Class managing a 3-dimensional real vector.
Definition Real3.h:132
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
std::int64_t Int64
Signed integer type of 64 bits.
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
Definition UtilsTypes.h:482
ConstArrayView< Int64 > Int64ConstArrayView
C equivalent of a 1D array of 64-bit integers.
Definition UtilsTypes.h:480
std::int32_t Int32
Signed integer type of 32 bits.