Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
SodMeshGenerator.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/* SodMeshGenerator.h (C) 2000-2024 */
9/* */
10/* Service for generating a 'sod'-style mesh. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_STD_SODMESHGENERATOR_H
13#define ARCANE_STD_SODMESHGENERATOR_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/TraceAccessor.h"
18#include "arcane/std/IMeshGenerator.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
46class SodMeshGenerator
47: public TraceAccessor
48, public IMeshGenerator
49{
50 public:
51
52 class Impl;
53
54 public:
55
56 SodMeshGenerator(IPrimaryMesh* tm, bool use_zxy = false);
57 ~SodMeshGenerator();
58
59 public:
60
61 IntegerConstArrayView communicatingSubDomains() const override;
62 bool readOptions(XmlNode node) override;
63 bool generateMesh() override;
64
65 private:
66
67 IPrimaryMesh* m_mesh;
68 bool m_zyx_generate;
69 std::unique_ptr<Impl> m_p;
70};
71
72/*---------------------------------------------------------------------------*/
73/*---------------------------------------------------------------------------*/
74
75} // End namespace Arcane
76
77/*---------------------------------------------------------------------------*/
78/*---------------------------------------------------------------------------*/
79
80#endif
Interface of a mesh generator.
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
Node of a DOM tree.
Definition XmlNode.h:51
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
ConstArrayView< Integer > IntegerConstArrayView
C equivalent of a 1D array of integers.
Definition UtilsTypes.h:486