programmer's documentation
cs_mesh_extrude.h
Go to the documentation of this file.
1 #ifndef __CS_MESH_EXTRUDE_H__
2 #define __CS_MESH_EXTRUDE_H__
3 
4 /*============================================================================
5  * Mesh extrusion.
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2016 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_mesh.h"
36 
37 /*----------------------------------------------------------------------------*/
38 
40 
41 /*============================================================================
42  * Macro definitions
43  *============================================================================*/
44 
45 /*============================================================================
46  * Type definitions
47  *============================================================================*/
48 
49 /*=============================================================================
50  * Public function prototypes
51  *============================================================================*/
52 
53 /*----------------------------------------------------------------------------*/
78 /*----------------------------------------------------------------------------*/
79 
80 void
82  bool interior_gc,
83  cs_lnum_t n_faces,
84  cs_lnum_t n_vertices,
85  const cs_lnum_t faces[],
86  const cs_lnum_t vertices[],
87  const cs_lnum_t n_layers[],
88  const cs_coord_3_t coord_shift[],
89  const float distribution[]);
90 
91 /*----------------------------------------------------------------------------*/
106 /*----------------------------------------------------------------------------*/
107 
108 void
110  bool interior_gc,
111  cs_lnum_t n_layers,
112  double thickness,
113  double reason,
114  cs_lnum_t n_faces,
115  const cs_lnum_t faces[]);
116 
117 /*----------------------------------------------------------------------------*/
118 
120 
121 #endif /* __CS_MESH_EXTRUDE_H__ */
#define BEGIN_C_DECLS
Definition: cs_defs.h:448
Definition: cs_mesh.h:62
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:292
#define END_C_DECLS
Definition: cs_defs.h:449
double cs_coord_3_t[3]
Definition: cs_defs.h:304
void cs_mesh_extrude(cs_mesh_t *m, bool interior_gc, cs_lnum_t n_faces, cs_lnum_t n_vertices, const cs_lnum_t faces[], const cs_lnum_t vertices[], const cs_lnum_t n_layers[], const cs_coord_3_t coord_shift[], const float distribution[])
Extrude mesh boundary faces in the normal direction.
Definition: cs_mesh_extrude.c:1474
void cs_mesh_extrude_constant(cs_mesh_t *m, bool interior_gc, cs_lnum_t n_layers, double thickness, double reason, cs_lnum_t n_faces, const cs_lnum_t faces[])
Extrude mesh boundary faces in the normal direction by a constant thickness.
Definition: cs_mesh_extrude.c:1678