My Project
programmer's documentation
cs_zone.h
Go to the documentation of this file.
1 #ifndef __CS_ZONE_H__
2 #define __CS_ZONE_H__
3 
4 /*============================================================================
5  * Base zones handling.
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  * Standard C library headers
32  *----------------------------------------------------------------------------*/
33 
34 /*----------------------------------------------------------------------------
35  * Local headers
36  *----------------------------------------------------------------------------*/
37 
38 #include "cs_base.h"
39 #include "cs_mesh_location.h"
40 
41 /*----------------------------------------------------------------------------*/
42 
44 
45 /*============================================================================
46  * Macro definitions
47  *============================================================================*/
48 
49 /*============================================================================
50  * Type definitions
51  *============================================================================*/
52 
55 typedef struct {
56 
57  const char *name;
59  int id;
60  int type;
65  const cs_lnum_t *elt_ids;
67  bool time_varying;
82 } cs_zone_t;
83 
89 typedef struct {
90 
91  const char *name;
93  int id;
94  int type;
107 
113 typedef struct {
114 
115  const char *name;
117  int id;
118  int type;
131 
132 /*============================================================================
133  * Public function prototypes
134  *============================================================================*/
135 
136 /*----------------------------------------------------------------------------*/
137 
139 
140 #endif /* __CS_ZONE_H__ */
cs_boundary_zone_t::name
const char * name
Definition: cs_zone.h:91
cs_volume_zone_t::id
int id
Definition: cs_zone.h:117
cs_volume_zone_t::type
int type
Definition: cs_zone.h:118
cs_zone_t
Definition: cs_zone.h:55
cs_boundary_zone_t::time_varying
bool time_varying
Definition: cs_zone.h:102
cs_volume_zone_t::n_cells
cs_lnum_t n_cells
Definition: cs_zone.h:122
cs_boundary_zone_t::id
int id
Definition: cs_zone.h:93
cs_zone_t::measure
cs_real_t measure
Definition: cs_zone.h:74
cs_zone_t::f_boundary_measure
cs_real_t f_boundary_measure
Definition: cs_zone.h:79
END_C_DECLS
#define END_C_DECLS
Definition: cs_defs.h:468
cs_real_t
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
BEGIN_C_DECLS
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
cs_volume_zone_t::allow_overlay
bool allow_overlay
Definition: cs_zone.h:128
cs_volume_zone_t::cell_ids
const cs_lnum_t * cell_ids
Definition: cs_zone.h:123
cs_boundary_zone_t
Definition: cs_zone.h:89
cs_zone_t::f_measure
cs_real_t f_measure
Definition: cs_zone.h:75
cs_boundary_zone_t::allow_overlay
bool allow_overlay
Definition: cs_zone.h:104
cs_volume_zone_t::name
const char * name
Definition: cs_zone.h:115
cs_boundary_zone_t::face_ids
const cs_lnum_t * face_ids
Definition: cs_zone.h:99
cs_volume_zone_t
Definition: cs_zone.h:113
cs_gnum_t
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:286
cs_zone_t::name
const char * name
Definition: cs_zone.h:57
cs_volume_zone_t::time_varying
bool time_varying
Definition: cs_zone.h:126
cs_boundary_zone_t::type
int type
Definition: cs_zone.h:94
cs_zone_t::location_id
int location_id
Definition: cs_zone.h:62
cs_lnum_t
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
cs_boundary_zone_t::location_id
int location_id
Definition: cs_zone.h:96
cs_zone_t::id
int id
Definition: cs_zone.h:59
cs_zone_t::type
int type
Definition: cs_zone.h:60
cs_zone_t::elt_ids
const cs_lnum_t * elt_ids
Definition: cs_zone.h:65
cs_zone_t::n_elts
cs_lnum_t n_elts
Definition: cs_zone.h:64
cs_zone_t::boundary_measure
cs_real_t boundary_measure
Definition: cs_zone.h:77
cs_mesh_location.h
cs_zone_t::n_g_elts
cs_gnum_t n_g_elts
Definition: cs_zone.h:72
cs_zone_t::allow_overlay
bool allow_overlay
Definition: cs_zone.h:70
cs_base.h
cs_zone_t::time_varying
bool time_varying
Definition: cs_zone.h:67
cs_volume_zone_t::location_id
int location_id
Definition: cs_zone.h:120
cs_boundary_zone_t::n_faces
cs_lnum_t n_faces
Definition: cs_zone.h:98