9.2
general 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-2026 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 "base/cs_base.h"
40
41/*============================================================================
42 * Macro definitions
43 *============================================================================*/
44
45/*============================================================================
46 * Type definitions
47 *============================================================================*/
48
51typedef struct {
52
53 const char *name;
55 int id;
56 int type;
77 cs_real_t cog[3];
79} cs_zone_t;
80
86[[deprecated("Use cs_zone_t instead")]] typedef struct {
87
88 const char *name;
90 int id;
91 int type;
104
110[[deprecated("Use cs_zone_t instead")]] typedef struct {
111
112 const char *name;
114 int id;
115 int type;
128
129/*============================================================================
130 * Public function prototypes
131 *============================================================================*/
132
133/*----------------------------------------------------------------------------*/
134
135#endif /* CS_ZONE_H */
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
unsigned cs_gnum_t
global mesh entity number
Definition: cs_defs.h:317
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
Definition: cs_zone.h:86
const cs_lnum_t * face_ids
Definition: cs_zone.h:96
cs_lnum_t n_faces
Definition: cs_zone.h:95
bool allow_overlay
Definition: cs_zone.h:101
int id
Definition: cs_zone.h:90
int location_id
Definition: cs_zone.h:93
const char * name
Definition: cs_zone.h:88
bool time_varying
Definition: cs_zone.h:99
int type
Definition: cs_zone.h:91
Definition: cs_zone.h:110
bool allow_overlay
Definition: cs_zone.h:125
int id
Definition: cs_zone.h:114
cs_lnum_t n_cells
Definition: cs_zone.h:119
int location_id
Definition: cs_zone.h:117
const char * name
Definition: cs_zone.h:112
const cs_lnum_t * cell_ids
Definition: cs_zone.h:120
bool time_varying
Definition: cs_zone.h:123
int type
Definition: cs_zone.h:115
Definition: cs_zone.h:51
const cs_lnum_t * elt_ids
Definition: cs_zone.h:61
bool allow_overlay
Definition: cs_zone.h:66
int id
Definition: cs_zone.h:55
cs_real_t measure
Definition: cs_zone.h:70
cs_lnum_t n_elts
Definition: cs_zone.h:60
int location_id
Definition: cs_zone.h:58
const char * name
Definition: cs_zone.h:53
cs_real_t f_boundary_measure
Definition: cs_zone.h:75
bool time_varying
Definition: cs_zone.h:63
int type
Definition: cs_zone.h:56
cs_real_t f_measure
Definition: cs_zone.h:71
cs_real_t boundary_measure
Definition: cs_zone.h:73
cs_gnum_t n_g_elts
Definition: cs_zone.h:68