Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
SodStandardGroupsBuilder.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/* SodStandardGroupsBuilder.h (C) 2000-2025 */
9/* */
10/* Creation of groups for Sod shock tube test cases. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_STD_INTERNAL_SODSTANDARDGROUPSBUILDER_H
13#define ARCANE_STD_INTERNAL_SODSTANDARDGROUPSBUILDER_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arcane/utils/TraceAccessor.h"
19
20/*---------------------------------------------------------------------------*/
21/*---------------------------------------------------------------------------*/
22
23namespace Arcane
24{
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28
39class SodStandardGroupsBuilder
40: public TraceAccessor
41{
42 public:
43
44 explicit SodStandardGroupsBuilder(ITraceMng* tm)
45 : TraceAccessor(tm)
46 {}
47
48 public:
49
57 void generateGroups(IMesh* mesh, Real3 min_pos, Real3 max_pos,
58 Real middle_x, Real middle_height, bool do_zg_and_zd);
59
60 private:
61
62 void _createFaceGroup(IMesh* mesh, const String& name, Int32ConstArrayView faces_lid);
63};
64
65/*---------------------------------------------------------------------------*/
66/*---------------------------------------------------------------------------*/
67
68} // End namespace Arcane
69
70/*---------------------------------------------------------------------------*/
71/*---------------------------------------------------------------------------*/
72
73#endif
Declarations of Arcane's general types.
Class managing a 3-dimensional real vector.
Definition Real3.h:132
void generateGroups(IMesh *mesh, Real3 min_pos, Real3 max_pos, Real middle_x, Real middle_height, bool do_zg_and_zd)
Creates the groups for initializing a Sod shock tube.
TraceAccessor(ITraceMng *m)
Constructs an accessor via the trace manager m.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --
ConstArrayView< Int32 > Int32ConstArrayView
C equivalent of a 1D array of 32-bit integers.
Definition UtilsTypes.h:482
double Real
Type representing a real number.