My Project
programmer's 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-2019 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 
72 void
74 
75 /*----------------------------------------------------------------------------*/
88 /*----------------------------------------------------------------------------*/
89 
90 void
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 
111 void
113  const char *name,
114  cs_lnum_t n_selected_cells,
115  const cs_lnum_t selected_cell_id[]);
116 
117 /*----------------------------------------------------------------------------*/
129 /*----------------------------------------------------------------------------*/
130 
131 void
133  const char *name,
134  cs_lnum_t n_selected_faces,
135  const cs_lnum_t selected_face_id[]);
136 
137 /*----------------------------------------------------------------------------*/
149 /*----------------------------------------------------------------------------*/
150 
151 void
153  const char *name,
154  cs_lnum_t n_selected_faces,
155  const cs_lnum_t selected_face_id[]);
156 
157 /*----------------------------------------------------------------------------*/
168 /*----------------------------------------------------------------------------*/
169 
170 void
172  const char *name,
173  cs_lnum_t n_selected_cells,
174  const cs_lnum_t selected_cell_id[]);
175 
176 /*----------------------------------------------------------------------------*/
187 /*----------------------------------------------------------------------------*/
188 
189 void
191  const char *name,
192  cs_lnum_t n_selected_faces,
193  const cs_lnum_t selected_face_id[]);
194 
195 /*----------------------------------------------------------------------------*/
206 /*----------------------------------------------------------------------------*/
207 
208 void
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__ */
cs_mesh_group_i_faces_add
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.c:1128
cs_mesh_group_b_faces_set
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.c:1075
END_C_DECLS
#define END_C_DECLS
Definition: cs_defs.h:468
cs_mesh_group_b_faces_add
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.c:1155
BEGIN_C_DECLS
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
cs_mesh_group_clean
void cs_mesh_group_clean(cs_mesh_t *mesh)
Clean mesh group definitions.
Definition: cs_mesh_group.c:720
cs_join_util.h
mesh
Definition: mesh.f90:26
cs_mesh_group_cells_set
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.c:1021
cs_mesh_group_cells_add
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.c:1101
cs_mesh.h
cs_mesh_group_combine_classes
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.c:834
cs_lnum_t
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
cs_join_mesh.h
cs_mesh_group_i_faces_set
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.c:1048
cs_join_set.h
cs_mesh_t
Definition: cs_mesh.h:63
cs_base.h