8.0
general documentation
cs_solid_selection.h
Go to the documentation of this file.
1 #ifndef __CS_SOLID_CELLS_H__
2 #define __CS_SOLID_CELLS_H__
3 
4 /*============================================================================
5  * Manage the list of solid cells and associated helper functions
6  *============================================================================*/
7 
8 /*
9  This file is part of code_saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2023 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  * Local headers
30  *----------------------------------------------------------------------------*/
31 
32 #include "cs_defs.h"
33 #include "cs_cdo_connect.h"
34 
35 /*----------------------------------------------------------------------------*/
36 
38 
39 /*============================================================================
40  * Macro definitions
41  *============================================================================*/
42 
43 /*=============================================================================
44  * Structure and type definitions
45  *============================================================================*/
46 
47 typedef struct {
48 
53  bool *cell_is_solid;
54  bool *face_is_solid;
57 
58 /*============================================================================
59  * Public function prototypes
60  *============================================================================*/
61 
62 /*----------------------------------------------------------------------------*/
69 /*----------------------------------------------------------------------------*/
70 
73 
74 /*----------------------------------------------------------------------------*/
80 /*----------------------------------------------------------------------------*/
81 
82 void
84 
85 /*----------------------------------------------------------------------------*/
90 /*----------------------------------------------------------------------------*/
91 
92 void
94 
95 /*----------------------------------------------------------------------------*/
96 
98 
99 #endif /* __CS_SOLID_CELLS_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:509
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:298
#define END_C_DECLS
Definition: cs_defs.h:510
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:313
cs_solid_selection_t * cs_solid_selection_get(void)
Retrieve the information related to the list of solid cells If this structure does not exist,...
Definition: cs_solid_selection.c:104
void cs_solid_selection_sync(const cs_cdo_connect_t *connect)
Synchronize the solid selection.
Definition: cs_solid_selection.c:131
void cs_solid_selection_free(void)
Free the structure storing the information related to the list of solid cells.
Definition: cs_solid_selection.c:205
Definition: cs_cdo_connect.h:61
Definition: cs_solid_selection.h:47
bool * face_is_solid
Definition: cs_solid_selection.h:54
cs_lnum_t n_cells
Definition: cs_solid_selection.h:49
cs_gnum_t n_g_cells
Definition: cs_solid_selection.h:50
bool * cell_is_solid
Definition: cs_solid_selection.h:53
cs_lnum_t * cell_ids
Definition: cs_solid_selection.h:51