9.0
general documentation
Loading...
Searching...
No Matches
cs_porous_model.h
Go to the documentation of this file.
1#ifndef __CS_POROUS_MODEL_H__
2#define __CS_POROUS_MODEL_H__
3
4/*============================================================================
5 * Porous model management
6 *============================================================================*/
7
8/*
9 This file is part of code_saturne, a general-purpose CFD tool.
10
11 Copyright (C) 1998-2025 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 "base/cs_base.h"
35#include "mesh/cs_mesh.h"
37
38/*----------------------------------------------------------------------------*/
39
41
42/*=============================================================================
43 * Macro definitions
44 *============================================================================*/
45
46/*============================================================================
47 * Type definition
48 *============================================================================*/
49
50/*============================================================================
51 * Global variables
52 *============================================================================*/
53
54/* Choice of the porous model */
55extern int cs_glob_porous_model;
56
57/* Specific mesh quantities associated with porous model */
59
60/*=============================================================================
61 * Public function prototypes
62 *============================================================================*/
63
64/*----------------------------------------------------------------------------*/
68/*----------------------------------------------------------------------------*/
69
70void
72
73/*----------------------------------------------------------------------------
74 * Compute fluid volumes and fluid surfaces in addition to cell volumes
75 * and surfaces.
76 *
77 * parameters:
78 * porous_model <-- porous model option (> 0 for porosity)
79 *----------------------------------------------------------------------------*/
80
81void
82cs_porous_model_set_model(int porous_model);
83
84/*----------------------------------------------------------------------------*/
88/*----------------------------------------------------------------------------*/
89
90void
92
93/*----------------------------------------------------------------------------*/
99/*----------------------------------------------------------------------------*/
100
101void
103
104/*----------------------------------------------------------------------------*/
108/*----------------------------------------------------------------------------*/
109
110void
112
113/*----------------------------------------------------------------------------*/
117/*----------------------------------------------------------------------------*/
118
119void
121
122/*----------------------------------------------------------------------------*/
128/*----------------------------------------------------------------------------*/
129
130void
132
133/*----------------------------------------------------------------------------*/
134/*
135 * \brief Preprocess the fluid surfaces.
136 */
137/*----------------------------------------------------------------------------*/
138
139void
141
142/*----------------------------------------------------------------------------*/
143/*
144 * \brief Penalize porosity and fluid surfaces.
145 */
146/*----------------------------------------------------------------------------*/
147
148void
150
151/*----------------------------------------------------------------------------*/
152
154
155#endif /* __CS_POROUS_MODEL_H__ */
#define BEGIN_C_DECLS
Definition cs_defs.h:542
#define END_C_DECLS
Definition cs_defs.h:543
void cs_porous_model_set_model(int porous_model)
Definition cs_porous_model.cpp:223
cs_mesh_quantities_t * cs_glob_mesh_quantities_f
void cs_porous_model_mesh_quantities_update(void)
Compute solid quantities.
Definition cs_porous_model.cpp:327
void cs_porous_model_fluid_surfaces_preprocessing(void)
Preprocess the fluid surfaces.
Definition cs_porous_model.cpp:523
void cs_porous_map_mesh_quantites_f_and_compute(void)
Map fluid mesh quantities.
Definition cs_porous_model.cpp:162
void cs_porous_model_set_has_disable_flag(int flag)
Set (unset) has_disable_flag.
Definition cs_porous_model.cpp:282
int cs_glob_porous_model
void cs_porous_model_clip(void)
Definition cs_porous_model.cpp:447
void cs_porous_model_init_disable_flag(void)
Initialize disable_flag.
Definition cs_porous_model.cpp:235
void cs_porous_model_init_fluid_quantities(void)
Init fluid quantities.
Definition cs_porous_model.cpp:313
void cs_porous_model_auto_face_porosity(void)
Automatic computation of the face porosity and factors.
Definition cs_porous_model.cpp:352
Definition cs_mesh_quantities.h:92