8.3
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-2024 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_defs.h"
39#include "cs_coal.h"
40#include "cs_zone.h"
41
42/*----------------------------------------------------------------------------*/
43
45
46/*============================================================================
47 * Macro definitions
48 *============================================================================*/
49
50/*============================================================================
51 * Local type definitions
52 *============================================================================*/
53
56typedef struct _cs_coal_bc_inlet_state_t cs_coal_bc_inlet_state_t;
57
60typedef struct {
61
62 const cs_zone_t *zone;
64 int ientat;
65 int ientcp;
66 int inmoxy;
76
100 cs_coal_bc_inlet_state_t *state; /* Inlet state (not user-accessible) */
101
103
104/*=============================================================================
105 * Global variables
106 *============================================================================*/
107
108/*============================================================================
109 * Public function prototypes
110 *============================================================================*/
111
112/*----------------------------------------------------------------------------*/
123/*----------------------------------------------------------------------------*/
124
127
128/*----------------------------------------------------------------------------*/
140/*----------------------------------------------------------------------------*/
141
142void
144 (const cs_zone_t *z,
145 cs_real_t q);
146
147/*----------------------------------------------------------------------------*/
148/*
149 * \brief Assign an air mass flow rate to an inlet based on provided function.
150 *
151 * The total mass flow rate will also include that of the pulverized coals.
152 *
153 * This is otherwise similar to
154 * \ref cs_boundary_conditions_open_set_mass_flow_rate_by_func.
155 *
156 * \param[in] z pointer to associated zone
157 * \param[in] func associated scalar (mass flow rate) evaluation function
158 * \param[in] input optional function evaluation input, or NULL
159 */
160/*----------------------------------------------------------------------------*/
161
162void
164 (const cs_zone_t *z,
166 void *input);
167
168/*----------------------------------------------------------------------------*/
174/*----------------------------------------------------------------------------*/
175
176void
177cs_coal_boundary_conditions(int bc_type[]);
178
179/*----------------------------------------------------------------------------*/
186/*----------------------------------------------------------------------------*/
187
188void
190
191/*----------------------------------------------------------------------------*/
192
194
195#endif /* __CS_COAL_BOUNDARY_CONDITIONS_H_ */
#define CS_COMBUSTION_MAX_CLASSES_PER_COAL
Definition: cs_coal.h:62
#define CS_COMBUSTION_MAX_COALS
Definition: cs_coal.h:50
void cs_coal_boundary_conditions(int bc_type[])
Automatic boundary condition for pulverized coal combution.
Definition: cs_coal_boundary_conditions.cpp:388
void cs_coal_boundary_conditions_inlet_density(void)
Compute density at inlets for pulverized coal combustion.
Definition: cs_coal_boundary_conditions.cpp:915
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:365
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:265
struct _cs_coal_bc_inlet_state_t cs_coal_bc_inlet_state_t
Inlet model state data.
Definition: cs_coal_boundary_conditions.h:56
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:336
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
#define END_C_DECLS
Definition: cs_defs.h:543
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:112
Inlet definition for pulverized coal combustion.
Definition: cs_coal_boundary_conditions.h:60
void * qm_air_input
Definition: cs_coal_boundary_conditions.h:95
cs_eval_at_location_t * qm_air_func
Definition: cs_coal_boundary_conditions.h:93
cs_coal_bc_inlet_state_t * state
Definition: cs_coal_boundary_conditions.h:100
cs_real_t qm_air
Definition: cs_coal_boundary_conditions.h:91
cs_real_t t_air
Definition: cs_coal_boundary_conditions.h:77
int ientcp
Definition: cs_coal_boundary_conditions.h:65
int ientat
Definition: cs_coal_boundary_conditions.h:64
int inmoxy
Definition: cs_coal_boundary_conditions.h:66
const cs_zone_t * zone
Definition: cs_coal_boundary_conditions.h:62
Definition: cs_zone.h:55