9.2
general documentation
cs_coal_boundary_conditions.h
Go to the documentation of this file.
1#ifndef CS_COAL_BOUNDARY_CONDITIONS_H
2#define CS_COAL_BOUNDARY_CONDITIONS_H
3
4/*============================================================================
5 * Coal combustion model boundary conditions.
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_defs.h"
39#include "comb/cs_coal.h"
40#include "base/cs_zone.h"
41
42/*============================================================================
43 * Macro definitions
44 *============================================================================*/
45
46/*============================================================================
47 * Local type definitions
48 *============================================================================*/
49
52typedef struct _cs_coal_bc_inlet_state_t cs_coal_bc_inlet_state_t;
53
56typedef struct {
57
58 const cs_zone_t *zone;
60 int ientat;
61 int ientcp;
62 int inmoxy;
72
96 cs_coal_bc_inlet_state_t *state; /* Inlet state (not user-accessible) */
97
99
100/*=============================================================================
101 * Global variables
102 *============================================================================*/
103
104/*============================================================================
105 * Public function prototypes
106 *============================================================================*/
107
108/*----------------------------------------------------------------------------*/
119/*----------------------------------------------------------------------------*/
120
123
124/*----------------------------------------------------------------------------*/
136/*----------------------------------------------------------------------------*/
137
138void
140 (const cs_zone_t *z,
141 cs_real_t q);
142
143/*----------------------------------------------------------------------------*/
144/*
145 * \brief Assign an air mass flow rate to an inlet based on provided function.
146 *
147 * The total mass flow rate will also include that of the pulverized coals.
148 *
149 * This is otherwise similar to
150 * \ref cs_boundary_conditions_open_set_mass_flow_rate_by_func.
151 *
152 * \param[in] z pointer to associated zone
153 * \param[in] func associated scalar (mass flow rate) evaluation function
154 * \param[in] input optional function evaluation input, or NULL
155 */
156/*----------------------------------------------------------------------------*/
157
158void
160 (const cs_zone_t *z,
162 void *input);
163
164/*----------------------------------------------------------------------------*/
170/*----------------------------------------------------------------------------*/
171
172void
173cs_coal_boundary_conditions(int bc_type[]);
174
175/*----------------------------------------------------------------------------*/
182/*----------------------------------------------------------------------------*/
183
184void
186
187/*----------------------------------------------------------------------------*/
188
189#endif /* CS_COAL_BOUNDARY_CONDITIONS_H */
#define CS_COMBUSTION_MAX_CLASSES_PER_COAL
Definition: cs_coal.h:58
#define CS_COMBUSTION_MAX_COALS
Definition: cs_coal.h:46
void cs_coal_boundary_conditions(int bc_type[])
Automatic boundary condition for pulverized coal combustion.
Definition: cs_coal_boundary_conditions.cpp:384
void cs_coal_boundary_conditions_density(void)
Compute density at inlets for pulverized coal combustion.
Definition: cs_coal_boundary_conditions.cpp:911
void cs_coal_boundary_conditions_inlet_set_air_mass_flow_rate_by_func(const cs_zone_t *z, cs_eval_at_location_t *func, void *input)
Definition: cs_coal_boundary_conditions.cpp:361
cs_coal_bc_inlet_t * cs_coal_boundary_conditions_get_inlet(const cs_zone_t *zone)
Return pointer to coal boundary conditions inlet structure.
Definition: cs_coal_boundary_conditions.cpp:261
struct _cs_coal_bc_inlet_state_t cs_coal_bc_inlet_state_t
Inlet model state data.
Definition: cs_coal_boundary_conditions.h:52
void cs_coal_boundary_conditions_inlet_set_air_mass_flow_rate_by_value(const cs_zone_t *z, cs_real_t q)
Assign a constant air mass flow rate to an inlet.
Definition: cs_coal_boundary_conditions.cpp:332
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
void() cs_eval_at_location_t(int location_id, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, void *input, void *vals)
Function pointer for evaluation of local function values.
Definition: cs_function.h:108
Inlet definition for pulverized coal combustion.
Definition: cs_coal_boundary_conditions.h:56
void * qm_air_input
Definition: cs_coal_boundary_conditions.h:91
cs_eval_at_location_t * qm_air_func
Definition: cs_coal_boundary_conditions.h:89
cs_coal_bc_inlet_state_t * state
Definition: cs_coal_boundary_conditions.h:96
cs_real_t qm_air
Definition: cs_coal_boundary_conditions.h:87
cs_real_t t_air
Definition: cs_coal_boundary_conditions.h:73
int ientcp
Definition: cs_coal_boundary_conditions.h:61
int ientat
Definition: cs_coal_boundary_conditions.h:60
int inmoxy
Definition: cs_coal_boundary_conditions.h:62
const cs_zone_t * zone
Definition: cs_coal_boundary_conditions.h:58
Definition: cs_zone.h:51