Code_Saturne
CFD tool
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
cs_lagr_tracking.h
Go to the documentation of this file.
1 /*============================================================================
2  *
3  * This file is part of the Code_Saturne Kernel, element of the
4  * Code_Saturne CFD tool.
5  *
6  * Copyright (C) 1998-2008 EDF S.A., France
7  *
8  * contact: saturne-support@edf.fr
9  *
10  * The Code_Saturne Kernel is free software; you can redistribute it
11  * and/or modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2 of
13  * the License, or (at your option) any later version.
14  *
15  * The Code_Saturne Kernel is distributed in the hope that it will be
16  * useful, but WITHOUT ANY WARRANTY; without even the implied warranty
17  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with the Code_Saturne Kernel; if not, write to the
22  * Free Software Foundation, Inc.,
23  * 51 Franklin St, Fifth Floor,
24  * Boston, MA 02110-1301 USA
25  *
26  *============================================================================*/
27 
28 #ifndef __CS_LAGRANG_TRACKING_H__
29 #define __CS_LAGRANG_TRACKING_H__
30 
31 /*============================================================================
32  * Utilitarian functions for the diphasic lagrangian module
33  *============================================================================*/
34 
35 /*----------------------------------------------------------------------------
36  * Local headers
37  *----------------------------------------------------------------------------*/
38 
39 #include "cs_base.h"
40 
41 /*----------------------------------------------------------------------------*/
42 
44 
45 /*============================================================================
46  * Public function definitions
47  *============================================================================*/
48 
49 /*----------------------------------------------------------------------------
50  * Allocate cs_lagr_particle_set_t structure and initialize useful buffers.
51  *
52  * parameters:
53  * n_particles_max --> local max. number of particles
54  *----------------------------------------------------------------------------*/
55 
56 void
57 CS_PROCF (lagbeg, LAGBEG)(const cs_int_t *const n_particles_max,
58  const cs_int_t *const iphyla,
59  const cs_int_t *const nvls,
60  const cs_int_t *const nbclst);
61 
62 /*----------------------------------------------------------------------------
63  * Delete cs_lagr_particle_set_t structure and delete other useful buffers.
64  *----------------------------------------------------------------------------*/
65 
66 void
67 cs_lagr_destroy(void);
68 
69 /*----------------------------------------------------------------------------
70  * Get variables and parameters associated to each particles and keep it in
71  * a new structure
72  *
73  * parameters:
74  *
75  *----------------------------------------------------------------------------*/
76 
77 void
78 CS_PROCF (prtget, PRTGET)(const cs_int_t *const nbpmax, /* n_particles max. */
79  const cs_int_t *const nbpart, /* number of current particles */
80  const cs_real_t *dnbpar, /* particle total weight */
81  cs_int_t liste[],
82  cs_int_t *nbvis,
83  const cs_real_t ettp[],
84  const cs_real_t ettpa[],
85  const cs_int_t itepa[],
86  const cs_real_t tepa[],
87  const cs_int_t ibord[],
88  const cs_int_t indep[],
89  const cs_int_t *const jisor,
90  const cs_int_t *const jrpoi,
91  const cs_int_t *const jrtsp,
92  const cs_int_t *const jdp,
93  const cs_int_t *const jmp,
94  const cs_int_t *const jxp,
95  const cs_int_t *const jyp,
96  const cs_int_t *const jzp,
97  const cs_int_t *const jup,
98  const cs_int_t *const jvp,
99  const cs_int_t *const jwp,
100  const cs_int_t *const juf,
101  const cs_int_t *const jvf,
102  const cs_int_t *const jwf,
103  const cs_int_t *const jtaux,
104  const cs_int_t *const jryplu,
105  const cs_int_t *const jdfac,
106  const cs_int_t *const jimark,
107  cs_int_t *idepst
108 );
109 
110 /*----------------------------------------------------------------------------
111  * Put variables and parameters associated to each particles into FORTRAN
112  * arrays.
113  *
114  * parameters:
115  *
116  *----------------------------------------------------------------------------*/
117 
118 void
119 CS_PROCF (prtput, PRTPUT)(const cs_int_t *const nbpmax, /* n_particles max. */
120  cs_int_t *nbpart, /* number of current particles */
121  cs_real_t *dnbpar, /* particle total weight */
122  cs_int_t *nbpout, /* number of outgoing particles */
123  cs_real_t *dnbpou, /* outgoing particle total weight */
124  cs_int_t *nbperr, /* number of failed particles */
125  cs_real_t *dnbper, /* failed particles total weight */
126  cs_int_t liste[],
127  cs_int_t *nbvis,
128  cs_real_t ettp[],
129  cs_real_t ettpa[],
130  cs_int_t itepa[],
131  cs_real_t tepa[],
132  cs_int_t ibord[],
133  const cs_int_t *const jisor,
134  const cs_int_t *const jrpoi,
135  const cs_int_t *const jrtsp,
136  const cs_int_t *const jdp,
137  const cs_int_t *const jmp,
138  const cs_int_t *const jxp,
139  const cs_int_t *const jyp,
140  const cs_int_t *const jzp,
141  const cs_int_t *const jup,
142  const cs_int_t *const jvp,
143  const cs_int_t *const jwp,
144  const cs_int_t *const juf,
145  const cs_int_t *const jvf,
146  const cs_int_t *const jwf,
147  const cs_int_t *const jtaux,
148  const cs_int_t *const jryplu,
149  const cs_int_t *const jdfac,
150  const cs_int_t *const jimark,
151  cs_int_t *idepst
152 );
153 
154 /*----------------------------------------------------------------------------
155  * Get variables and parameters associated to each particles and keep it in
156  * a new structure
157  *
158  * parameters:
159  *
160  *----------------------------------------------------------------------------*/
161 
162 void
163 CS_PROCF (getbdy, GETBDY)(const cs_int_t *const nflagm,
164  const cs_int_t *const nfrlag,
165  const cs_int_t *const injcon,
166  const cs_int_t ilflag[],
167  const cs_int_t iusncl[],
168  const cs_int_t iusclb[],
169  const cs_int_t iusmoy[],
170  const cs_int_t iuslag[],
171  const cs_real_t deblag[],
172  const cs_int_t ifrlag[]);
173 
174 /*----------------------------------------------------------------------------
175  * Displacement of particles.
176  *
177  * parameters:
178  * p_n_particles <-> pointer to the number of particles
179  * scheme_order --> current order of the scheme used for Lagragian
180  *
181  *
182  *
183  *----------------------------------------------------------------------------*/
184 
185 void
186 CS_PROCF (dplprt, DPLPRT)(cs_int_t *p_n_particles,
187  cs_real_t *p_parts_weight,
188  cs_int_t *p_scheme_order,
189  cs_real_t boundary_stat[],
190  const cs_int_t *const iensi3,
191  const cs_int_t *const nvisbr,
192  const cs_int_t *const inbr,
193  const cs_int_t *const inbrbd,
194  const cs_int_t *const iflm,
195  const cs_int_t *const iflmbd,
196  const cs_int_t *const iang,
197  const cs_int_t *const iangbd,
198  const cs_int_t *const ivit,
199  const cs_int_t *const ivitbd,
200  const cs_int_t *const nusbor,
201  cs_int_t iusb[],
202  cs_real_t visc_length[],
203  cs_real_t dlgeo[],
204  cs_real_t rtp[],
205  const cs_int_t *const iu,
206  const cs_int_t *const iv,
207  const cs_int_t *const iw,
208  cs_int_t *idepst);
209 
210 /*----------------------------------------------------------------------------*/
211 
213 
214 #endif /* __CS_LAGRANG_TRACKING_H__ */
void prtput(const cs_int_t *const nbpmax, cs_int_t *nbpart, cs_real_t *dnbpar, cs_int_t *nbpout, cs_real_t *dnbpou, cs_int_t *nbperr, cs_real_t *dnbper, cs_int_t liste[], cs_int_t *nbvis, cs_real_t ettp[], cs_real_t ettpa[], cs_int_t itepa[], cs_real_t tepa[], cs_int_t ibord[], const cs_int_t *const jisor, const cs_int_t *const jrpoi, const cs_int_t *const jrtsp, const cs_int_t *const jdp, const cs_int_t *const jmp, const cs_int_t *const jxp, const cs_int_t *const jyp, const cs_int_t *const jzp, const cs_int_t *const jup, const cs_int_t *const jvp, const cs_int_t *const jwp, const cs_int_t *const juf, const cs_int_t *const jvf, const cs_int_t *const jwf, const cs_int_t *const jtaux, const cs_int_t *const jryplu, const cs_int_t *const jdfac, const cs_int_t *const jimark, cs_int_t *idepst)
void dplprt(cs_int_t *p_n_particles, cs_real_t *p_parts_weight, cs_int_t *p_scheme_order, cs_real_t boundary_stat[], const cs_int_t *const iensi3, const cs_int_t *const nvisbr, const cs_int_t *const inbr, const cs_int_t *const inbrbd, const cs_int_t *const iflm, const cs_int_t *const iflmbd, const cs_int_t *const iang, const cs_int_t *const iangbd, const cs_int_t *const ivit, const cs_int_t *const ivitbd, const cs_int_t *const nusbor, cs_int_t iusb[], cs_real_t visc_length[], cs_real_t dlgeo[], cs_real_t rtp[], const cs_int_t *const iu, const cs_int_t *const iv, const cs_int_t *const iw, cs_int_t *idepst)
#define BEGIN_C_DECLS
Definition: cs_defs.h:365
int cs_int_t
Definition: cs_defs.h:263
BEGIN_C_DECLS void lagbeg(const cs_int_t *const n_particles_max, const cs_int_t *const iphyla, const cs_int_t *const nvls, const cs_int_t *const nbclst)
void cs_lagr_destroy(void)
Definition: cs_lagr_tracking.c:3335
void getbdy(const cs_int_t *const nflagm, const cs_int_t *const nfrlag, const cs_int_t *const injcon, const cs_int_t ilflag[], const cs_int_t iusncl[], const cs_int_t iusclb[], const cs_int_t iusmoy[], const cs_int_t iuslag[], const cs_real_t deblag[], const cs_int_t ifrlag[])
#define END_C_DECLS
Definition: cs_defs.h:366
double cs_real_t
Definition: cs_defs.h:264
#define CS_PROCF(x, y)
Definition: cs_defs.h:379
void prtget(const cs_int_t *const nbpmax, const cs_int_t *const nbpart, const cs_real_t *dnbpar, cs_int_t liste[], cs_int_t *nbvis, const cs_real_t ettp[], const cs_real_t ettpa[], const cs_int_t itepa[], const cs_real_t tepa[], const cs_int_t ibord[], const cs_int_t indep[], const cs_int_t *const jisor, const cs_int_t *const jrpoi, const cs_int_t *const jrtsp, const cs_int_t *const jdp, const cs_int_t *const jmp, const cs_int_t *const jxp, const cs_int_t *const jyp, const cs_int_t *const jzp, const cs_int_t *const jup, const cs_int_t *const jvp, const cs_int_t *const jwp, const cs_int_t *const juf, const cs_int_t *const jvf, const cs_int_t *const jwf, const cs_int_t *const jtaux, const cs_int_t *const jryplu, const cs_int_t *const jdfac, const cs_int_t *const jimark, cs_int_t *idepst)