Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
ICaseMeshService.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/* ICaseMeshService.h (C) 2000-2024 */
9/* */
10/* Interface of the service managing a dataset mesh. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_CORE_ICASEMESHSERVICE_H
13#define ARCANE_CORE_ICASEMESHSERVICE_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
18
19/*---------------------------------------------------------------------------*/
20/*---------------------------------------------------------------------------*/
21
22namespace Arcane
23{
24
25/*---------------------------------------------------------------------------*/
26/*---------------------------------------------------------------------------*/
27
28/*!
29 * \brief Interface of the service managing dataset meshes.
30 *
31 * Creation and initialization happen in 3 phases:
32 * - a first phase when calling createMesh() where the mesh is created. In
33 * this phase, only the class managing the mesh is created, but they are not
34 * yet usable.
35 * - a second phase when calling allocateMeshItems() where the mesh is
36 * allocated and initialized. This corresponds either to reading the mesh
37 * or dynamically creating the entities.
38 * - a third phase which consists of partitioning the mesh if the code runs in
39 * parallel.
40 * - a fourth phase that allows processing on the created mesh, such as a
41 * sub-division.
42 */
44{
45 public:
46
47 virtual ~ICaseMeshService() = default;
48
49 public:
50
51 //! Creates the mesh with the name \a name
52 virtual void createMesh(const String& name) = 0;
53
54 //! Allocates the mesh items
55 virtual void allocateMeshItems() = 0;
56
57 //! Partitions the mesh.
58 virtual void partitionMesh() = 0;
59
60 //! Applies operations after everything else.
61 virtual void applyAdditionalOperations() {}
62};
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
67} // End namespace Arcane
68
69/*---------------------------------------------------------------------------*/
70/*---------------------------------------------------------------------------*/
71
72#endif
Declarations of Arcane's general types.
Interface of the service managing dataset meshes.
virtual void applyAdditionalOperations()
Applies operations after everything else.
virtual void createMesh(const String &name)=0
Creates the mesh with the name name.
virtual void partitionMesh()=0
Partitions the mesh.
virtual void allocateMeshItems()=0
Allocates the mesh items.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --