9.2
general documentation
cs_lagr_clogging.h
Go to the documentation of this file.
1#ifndef CS_LAGR_CLOGGING_H
2#define CS_LAGR_CLOGGING_H
3
4/*============================================================================
5 * Clogging modeling.
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 * Local headers
32 *----------------------------------------------------------------------------*/
33
34#include "base/cs_defs.h"
36
37/*============================================================================
38 * Type definitions
39 *============================================================================*/
40
41typedef struct {
42
51
57
59
60/*============================================================================
61 * Public function definitions
62 *============================================================================*/
63
64/*----------------------------------------------------------------------------
65 * Clogging initialization.
66 *
67 * - Retrieve various parameters for storing in global structure.
68 * - Compute and store the Debye screening length
69 *----------------------------------------------------------------------------*/
70
71void
72cs_lagr_clogging_initialize(const cs_real_t *water_permit,
73 const cs_real_t *ionic_strength,
74 const cs_real_t *jamming_limit,
75 const cs_real_t *min_porosity,
76 const cs_real_t *diam_mean,
77 const cs_real_t temperature[],
78 const cs_real_t *valen,
79 const cs_real_t *phi_p,
80 const cs_real_t *phi_s,
81 const cs_real_t *cstham,
82 const cs_real_t *csthpp,
83 const cs_real_t *lambda_vdw);
84
85/*----------------------------------------------------------------------------
86 * Clogging finalization.
87 *
88 * Deallocate the arrays storing temperature and Debye length.
89 *----------------------------------------------------------------------------*/
90
91void
93
94/*=============================================================================
95 * C++ Function definitions
96 *============================================================================*/
97
98#if defined(__cplusplus)
99
100/*----------------------------------------------------------------------------
101 * Clogging:
102 *
103 * - Compute the number of deposited particles in contact with the depositing
104 * particle
105 * - Re-compute the energy barrier if this number is greater than zero
106 *
107 * parameters:
108 * p_set <-- reference to particle set
109 * p_id <-- particle id
110 * c_id <-- id of cell where the particle is
111 * face_area <-- area of face
112 * energy_barrier <-> energy barrier
113 * surface_coverage <-> surface coverage
114 * limit <-> jamming limit
115 * mporos <-> minimum porosity
116 *
117 * returns:
118 * number of deposited particles in contact with the depositing particle
119 *----------------------------------------------------------------------------*/
120int
122 cs_lnum_t p_id,
123 cs_lnum_t c_id,
124 cs_real_t *energy_barrier,
125 cs_real_t *surface_coverage,
126 cs_real_t *limit,
127 cs_real_t *mporos);
128
129#endif /* __cplusplus */
130
131/*----------------------------------------------------------------------------*/
132
133#endif /* CS_LAGR_CLOGGING_H */
134
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
void cs_lagr_clogging_initialize(const cs_real_t *water_permit, const cs_real_t *ionic_strength, const cs_real_t *jamming_limit, const cs_real_t *min_porosity, const cs_real_t *diam_mean, const cs_real_t temperature[], const cs_real_t *valen, const cs_real_t *phi_p, const cs_real_t *phi_s, const cs_real_t *cstham, const cs_real_t *csthpp, const cs_real_t *lambda_vdw)
Definition: cs_lagr_clogging.cpp:109
void cs_lagr_clogging_finalize(void)
Definition: cs_lagr_clogging.cpp:185
int cs_lagr_clogging_barrier(cs_lagr_particle_set_t &p_set, cs_lnum_t p_id, cs_lnum_t c_id, cs_real_t *energy_barrier, cs_real_t *surface_coverage, cs_real_t *limit, cs_real_t *mporos)
Definition: cs_lagr_clogging.cpp:212
Definition: cs_lagr_clogging.h:41
cs_real_t ionic_strength
Definition: cs_lagr_clogging.h:44
cs_real_t diam_mean
Definition: cs_lagr_clogging.h:47
cs_real_t cstham
Definition: cs_lagr_clogging.h:54
cs_real_t * temperature
Definition: cs_lagr_clogging.h:52
cs_real_t min_porosity
Definition: cs_lagr_clogging.h:46
cs_real_t * debye_length
Definition: cs_lagr_clogging.h:53
cs_real_t phi_s
Definition: cs_lagr_clogging.h:50
cs_real_t jamming_limit
Definition: cs_lagr_clogging.h:45
cs_real_t lambda_vdw
Definition: cs_lagr_clogging.h:56
cs_real_t water_permit
Definition: cs_lagr_clogging.h:43
cs_real_t csthpp
Definition: cs_lagr_clogging.h:55
cs_real_t phi_p
Definition: cs_lagr_clogging.h:49
cs_real_t valen
Definition: cs_lagr_clogging.h:48
Definition: cs_lagr_particle.h:324