7.2
general documentation
cs_lagr_agglo.h
Go to the documentation of this file.
1 #ifndef __CS_LAGR_AGGLO_H__
2 #define __CS_LAGR_AGGLO_H__
3 
4 /*============================================================================
5  * Agglomeration modeling.
6  *============================================================================*/
7 
8 /*
9  This file is part of code_saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2022 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 #include "cs_defs.h"
31 
32 /*----------------------------------------------------------------------------
33  * Standard C library headers
34  *----------------------------------------------------------------------------*/
35 
36 /*----------------------------------------------------------------------------
37  * Local headers
38  *----------------------------------------------------------------------------*/
39 
40 /*----------------------------------------------------------------------------*/
41 
43 
44 /*============================================================================
45  * Public function prototypes
46  *============================================================================*/
47 
48 /*----------------------------------------------------------------------------*/
59 /*----------------------------------------------------------------------------*/
60 
61 void
63  cs_lnum_2_t arr2[],
64  cs_lnum_t n1,
65  cs_lnum_t n2,
66  cs_lnum_2_t arr3[]);
67 
68 /*----------------------------------------------------------------------------*/
102 /*----------------------------------------------------------------------------*/
103 
104 cs_lnum_t
106  cs_real_t dt,
107  cs_real_t minimum_particle_diam,
108  cs_lnum_t start_particle,
109  cs_lnum_t end_particle);
110 
111 /*----------------------------------------------------------------------------*/
112 
114 
115 #endif /* __CS_LAGR_AGGLO_H__*/
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
Definition: cs_field_pointer.h:65
cs_lnum_t cs_lnum_2_t[2]
vector of 2 local mesh-entity ids
Definition: cs_defs.h:328
void cs_lagr_agglo_merge_arrays(cs_lnum_2_t arr1[], cs_lnum_2_t arr2[], cs_lnum_t n1, cs_lnum_t n2, cs_lnum_2_t arr3[])
Merge two sorted arrays in a third sorted array.
Definition: cs_lagr_agglo.c:309
cs_lnum_t cs_lagr_agglomeration(cs_lnum_t cell_id, cs_real_t dt, cs_real_t minimum_particle_diam, cs_lnum_t start_particle, cs_lnum_t end_particle)
Agglomeration algorithm based on algorithms used in rare gas modelling.
Definition: cs_lagr_agglo.c:386
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
#define END_C_DECLS
Definition: cs_defs.h:511