My Project
programmer's documentation
cs_lagr_tracking.h
Go to the documentation of this file.
1 #ifndef __CS_LAGR_TRACKING_H__
2 #define __CS_LAGR_TRACKING_H__
3 
4 /*============================================================================
5  * Functions and types for the Lagrangian module
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  * Local headers
34  *----------------------------------------------------------------------------*/
35 
36 #include "cs_lagr_particle.h"
37 
38 /*----------------------------------------------------------------------------*/
39 
41 
42 /*=============================================================================
43  * Macro definitions
44  *============================================================================*/
45 
46 /*============================================================================
47  * Type definitions
48  *============================================================================*/
49 
50 /* State where a particle can be.
51  (order is chosen so as to make tests simpler;
52  inside domain first, outside after) */
53 
54 typedef enum {
63 
64 /*=============================================================================
65  * Global variables
66  *============================================================================*/
67 
68 /*============================================================================
69  * Public function prototypes
70  *============================================================================*/
71 
72 /*----------------------------------------------------------------------------*/
76 /*----------------------------------------------------------------------------*/
77 
78 void
80 
81 /*----------------------------------------------------------------------------*/
87 /*----------------------------------------------------------------------------*/
88 
89 void
91 
92 /*----------------------------------------------------------------------------*/
96 /*----------------------------------------------------------------------------*/
97 
98 void
100 
101 /*----------------------------------------------------------------------------*/
114 /*----------------------------------------------------------------------------*/
115 
116 void
117 cs_lagr_test_wall_cell(const void *particle,
118  const cs_lagr_attribute_map_t *p_am,
119  const cs_real_t visc_length[],
120  cs_real_t *yplus,
121  cs_lnum_t *face_id);
122 
123 /*----------------------------------------------------------------------------*/
132 /*----------------------------------------------------------------------------*/
133 
134 void
136  cs_lnum_t **cell_face_lst);
137 
138 /*----------------------------------------------------------------------------*/
139 
140 
142 
143 #endif /* __CS_LAGR_TRACKING_H__ */
cs_lagr_attribute_map_t
Definition: cs_lagr_particle.h:176
cs_defs.h
CS_LAGR_PART_STUCK
Definition: cs_lagr_tracking.h:58
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_lagr_tracking_initialize
void cs_lagr_tracking_initialize(void)
Initialize particle tracking subsystem.
Definition: cs_lagr_tracking.c:3045
CS_LAGR_PART_TREATED
Definition: cs_lagr_tracking.h:57
cs_lagr_particle.h
CS_LAGR_PART_TO_SYNC_NEXT
Definition: cs_lagr_tracking.h:56
CS_LAGR_PART_OUT
Definition: cs_lagr_tracking.h:60
CS_LAGR_PART_ERR
Definition: cs_lagr_tracking.h:61
cs_lagr_test_wall_cell
void cs_lagr_test_wall_cell(const void *particle, const cs_lagr_attribute_map_t *p_am, const cs_real_t visc_length[], cs_real_t *yplus, cs_lnum_t *face_id)
Determine the number of the closest wall face from the particle as well as the corresponding wall nor...
Definition: cs_lagr_tracking.c:3403
cs_lnum_t
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:298
CS_LAGR_PART_TO_SYNC
Definition: cs_lagr_tracking.h:55
cs_lagr_tracking_finalize
void cs_lagr_tracking_finalize(void)
Finalize Lagrangian module.
Definition: cs_lagr_tracking.c:3345
cs_lagr_tracking_particle_movement
void cs_lagr_tracking_particle_movement(const cs_real_t visc_length[])
Apply one particle movement step.
Definition: cs_lagr_tracking.c:3081
CS_LAGR_PART_MERGED
Definition: cs_lagr_tracking.h:59
cs_lagr_get_cell_face_connectivity
void cs_lagr_get_cell_face_connectivity(cs_lnum_t **cell_face_idx, cs_lnum_t **cell_face_lst)
Get pointers to cell face connectivity used in particle tracking.
Definition: cs_lagr_tracking.c:3470
cs_lagr_tracking_state_t
cs_lagr_tracking_state_t
Definition: cs_lagr_tracking.h:54
yplus
Definition: cs_field_pointer.h:237