8.3
general documentation
cs_mesh_group.h
Go to the documentation of this file.
1#ifndef __CS_MESH_GROUP_H__
2#define __CS_MESH_GROUP_H__
3
4/*============================================================================
5 * Management of mesh groups.
6 *===========================================================================*/
7
8/*
9 This file is part of code_saturne, a general-purpose CFD tool.
10
11 Copyright (C) 1998-2024 EDF S.A.
12
13 This program is free software; you can redistribute it and/or modify it under
14 the terms of the GNU General Public License as published by the Free Software
15 Foundation; either version 2 of the License, or (at your option) any later
16 version.
17
18 This program is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
20 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
21 details.
22
23 You should have received a copy of the GNU General Public License along with
24 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
25 Street, Fifth Floor, Boston, MA 02110-1301, USA.
26*/
27
28/*----------------------------------------------------------------------------*/
29
30/*----------------------------------------------------------------------------
31 * Local headers
32 *---------------------------------------------------------------------------*/
33
34#include "cs_base.h"
35#include "cs_join_mesh.h"
36#include "cs_join_set.h"
37#include "cs_join_util.h"
38#include "cs_mesh.h"
39
40/*---------------------------------------------------------------------------*/
41
43
44/*=============================================================================
45 * Local Macro definitions
46 *===========================================================================*/
47
48/*============================================================================
49 * Type definition
50 *===========================================================================*/
51
52/*=============================================================================
53 * Global variables
54 *===========================================================================*/
55
56/*============================================================================
57 * Public function header for Fortran API
58 *===========================================================================*/
59
60/*=============================================================================
61 * Public function prototypes
62 *===========================================================================*/
63
64/*----------------------------------------------------------------------------*/
70/*----------------------------------------------------------------------------*/
71
72void
74
75/*----------------------------------------------------------------------------*/
88/*----------------------------------------------------------------------------*/
89
90void
92 cs_lnum_t n_elts,
93 cs_lnum_t gc_id_idx[],
94 int gc_id[],
95 int gc_id_merged[]);
96
97/*----------------------------------------------------------------------------*/
109/*----------------------------------------------------------------------------*/
110
111void
113 const char *name,
114 cs_lnum_t n_selected_cells,
115 const cs_lnum_t selected_cell_id[]);
116
117/*----------------------------------------------------------------------------*/
129/*----------------------------------------------------------------------------*/
130
131void
133 const char *name,
134 cs_lnum_t n_selected_faces,
135 const cs_lnum_t selected_face_id[]);
136
137/*----------------------------------------------------------------------------*/
149/*----------------------------------------------------------------------------*/
150
151void
153 const char *name,
154 cs_lnum_t n_selected_faces,
155 const cs_lnum_t selected_face_id[]);
156
157/*----------------------------------------------------------------------------*/
168/*----------------------------------------------------------------------------*/
169
170void
172 const char *name,
173 cs_lnum_t n_selected_cells,
174 const cs_lnum_t selected_cell_id[]);
175
176/*----------------------------------------------------------------------------*/
187/*----------------------------------------------------------------------------*/
188
189void
191 const char *name,
192 cs_lnum_t n_selected_faces,
193 const cs_lnum_t selected_face_id[]);
194
195/*----------------------------------------------------------------------------*/
206/*----------------------------------------------------------------------------*/
207
208void
210 const char *name,
211 cs_lnum_t n_selected_faces,
212 const cs_lnum_t selected_face_id[]);
213
214/*---------------------------------------------------------------------------*/
215
217
218#endif /* __CS_MESH_GROUP_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
#define END_C_DECLS
Definition: cs_defs.h:543
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:335
void cs_mesh_group_cells_set(cs_mesh_t *mesh, const char *name, cs_lnum_t n_selected_cells, const cs_lnum_t selected_cell_id[])
Assign a given group to cells, removing those entities from previous groups if present.
Definition: cs_mesh_group.cpp:1022
void cs_mesh_group_cells_add(cs_mesh_t *mesh, const char *name, cs_lnum_t n_selected_cells, const cs_lnum_t selected_cell_id[])
Add selected cells to a given group.
Definition: cs_mesh_group.cpp:1102
void cs_mesh_group_combine_classes(cs_mesh_t *mesh, cs_lnum_t n_elts, cs_lnum_t gc_id_idx[], int gc_id[], int gc_id_merged[])
Combine mesh group classes.
Definition: cs_mesh_group.cpp:835
void cs_mesh_group_b_faces_set(cs_mesh_t *mesh, const char *name, cs_lnum_t n_selected_faces, const cs_lnum_t selected_face_id[])
Assign a given group to boundary faces, removing those entities from previous groups if present.
Definition: cs_mesh_group.cpp:1076
void cs_mesh_group_b_faces_add(cs_mesh_t *mesh, const char *name, cs_lnum_t n_selected_faces, const cs_lnum_t selected_face_id[])
Add selected boundary faces to a given group.
Definition: cs_mesh_group.cpp:1156
void cs_mesh_group_i_faces_set(cs_mesh_t *mesh, const char *name, cs_lnum_t n_selected_faces, const cs_lnum_t selected_face_id[])
Assign a given group to interior faces, removing those entities from previous groups if present.
Definition: cs_mesh_group.cpp:1049
void cs_mesh_group_clean(cs_mesh_t *mesh)
Clean mesh group definitions.
Definition: cs_mesh_group.cpp:721
void cs_mesh_group_i_faces_add(cs_mesh_t *mesh, const char *name, cs_lnum_t n_selected_faces, const cs_lnum_t selected_face_id[])
Add selected interior faces to a given group.
Definition: cs_mesh_group.cpp:1129
Definition: mesh.f90:26
Definition: cs_mesh.h:85