My Project
programmer's 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-2019 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 /*----------------------------------------------------------------------------*/
103 /*----------------------------------------------------------------------------*/
104 
105 cs_lnum_t
107  cs_real_t dt,
108  cs_real_t minimum_particle_diam,
109  cs_real_t rho,
110  cs_lnum_t start_particle,
111  cs_lnum_t end_particle);
112 
113 /*----------------------------------------------------------------------------*/
114 
116 
117 #endif /* __CS_LAGR_AGGLO_H__*/
cs_defs.h
rho
Definition: cs_field_pointer.h:103
END_C_DECLS
#define END_C_DECLS
Definition: cs_defs.h:468
cs_real_t
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
BEGIN_C_DECLS
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
cs_lnum_t
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
cs_lagr_agglomeration
cs_lnum_t cs_lagr_agglomeration(cs_lnum_t cell_id, cs_real_t dt, cs_real_t minimum_particle_diam, cs_real_t rho, 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:387
cs_lnum_2_t
int cs_lnum_2_t[2]
vector of 2 local mesh-entity ids
Definition: cs_defs.h:308
cs_lagr_agglo_merge_arrays
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
dt
Definition: cs_field_pointer.h:65