programmer's documentation
cs_balance.h
Go to the documentation of this file.
1 #ifndef __CS_BALANCE_H__
2 #define __CS_BALANCE_H__
3 
4 /*
5  This file is part of Code_Saturne, a general-purpose CFD tool.
6 
7  Copyright (C) 1998-2016 EDF S.A.
8 
9  This program is free software; you can redistribute it and/or modify it under
10  the terms of the GNU General Public License as published by the Free Software
11  Foundation; either version 2 of the License, or (at your option) any later
12  version.
13 
14  This program is distributed in the hope that it will be useful, but WITHOUT
15  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16  FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17  details.
18 
19  You should have received a copy of the GNU General Public License along with
20  this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
21  Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 */
23 
24 /*----------------------------------------------------------------------------*/
25 
26 #include "cs_defs.h"
27 
29 
30 /*----------------------------------------------------------------------------*/
104 /*----------------------------------------------------------------------------*/
105 
106 void
108  int f_id,
109  int imucpp,
110  int imasac,
111  int inc,
112  int iccocg,
113  cs_var_cal_opt_t *var_cal_opt,
114  cs_real_t pvar[],
115  const cs_real_t pvara[],
116  const cs_real_t coefap[],
117  const cs_real_t coefbp[],
118  const cs_real_t cofafp[],
119  const cs_real_t cofbfp[],
120  const cs_real_t i_massflux[],
121  const cs_real_t b_massflux[],
122  const cs_real_t i_visc[],
123  const cs_real_t b_visc[],
124  cs_real_6_t viscel[],
125  const cs_real_t xcpp[],
126  const cs_real_2_t weighf[],
127  const cs_real_t weighb[],
128  int icvflb,
129  const int icvfli[],
130  cs_real_t smbrp[]);
131 
132 /*----------------------------------------------------------------------------*/
204 /*----------------------------------------------------------------------------*/
205 
206 void
208  int f_id,
209  int imasac,
210  int inc,
211  int ivisep,
212  cs_var_cal_opt_t *var_cal_opt,
213  cs_real_3_t pvar[],
214  const cs_real_3_t pvara[],
215  const cs_real_3_t coefav[],
216  const cs_real_33_t coefbv[],
217  const cs_real_3_t cofafv[],
218  const cs_real_33_t cofbfv[],
219  const cs_real_t i_massflux[],
220  const cs_real_t b_massflux[],
221  cs_real_t i_visc[],
222  const cs_real_t b_visc[],
223  const cs_real_t secvif[],
224  const cs_real_t secvib[],
225  int icvflb,
226  const int icvfli[],
227  cs_real_3_t smbr[]);
228 
229 /*----------------------------------------------------------------------------*/
292 /*----------------------------------------------------------------------------*/
293 
294 void
296  int f_id,
297  int imasac,
298  int inc,
299  cs_var_cal_opt_t *var_cal_opt,
300  cs_real_6_t pvar[],
301  const cs_real_6_t pvara[],
302  const cs_real_6_t coefa[],
303  const cs_real_66_t coefb[],
304  const cs_real_6_t cofaf[],
305  const cs_real_66_t cofbf[],
306  const cs_real_t i_massflux[],
307  const cs_real_t b_massflux[],
308  const cs_real_t i_visc[],
309  const cs_real_t b_visc[],
310  cs_real_6_t viscel[],
311  const cs_real_2_t weighf[],
312  const cs_real_t weighb[],
313  int icvflb,
314  const int icvfli[],
315  cs_real_6_t smbrp[]);
316 
317 /*----------------------------------------------------------------------------*/
318 
320 
321 #endif /* __CS_BALANCE_H__ */
void cs_balance_vector(int idtvar, int f_id, int imasac, int inc, int ivisep, cs_var_cal_opt_t *var_cal_opt, cs_real_3_t pvar[], const cs_real_3_t pvara[], const cs_real_3_t coefav[], const cs_real_33_t coefbv[], const cs_real_3_t cofafv[], const cs_real_33_t cofbfv[], const cs_real_t i_massflux[], const cs_real_t b_massflux[], cs_real_t i_visc[], const cs_real_t b_visc[], const cs_real_t secvif[], const cs_real_t secvib[], int icvflb, const int icvfli[], cs_real_3_t smbr[])
Wrapper to the function which adds the explicit part of the convection/diffusion terms of a transport...
Definition: cs_balance.c:430
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:307
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:310
integer, dimension(:), allocatable icvfli
Definition: cfpoin.f90:48
cs_real_t cs_real_66_t[6][6]
6x6 matrix of floating-point values
Definition: cs_defs.h:315
#define BEGIN_C_DECLS
Definition: cs_defs.h:448
integer(c_int), pointer, save idtvar
option for a variable time step
Definition: optcal.f90:431
double cs_real_t
Floating-point value.
Definition: cs_defs.h:296
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:308
Definition: cs_parameters.h:69
#define END_C_DECLS
Definition: cs_defs.h:449
void cs_balance_scalar(int idtvar, int f_id, int imucpp, int imasac, int inc, int iccocg, cs_var_cal_opt_t *var_cal_opt, cs_real_t pvar[], const cs_real_t pvara[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_massflux[], const cs_real_t b_massflux[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_6_t viscel[], const cs_real_t xcpp[], const cs_real_2_t weighf[], const cs_real_t weighb[], int icvflb, const int icvfli[], cs_real_t smbrp[])
Wrapper to the function which adds the explicit part of the convection/diffusion terms of a transport...
Definition: cs_balance.c:179
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:314
void cs_balance_tensor(int idtvar, int f_id, int imasac, int inc, cs_var_cal_opt_t *var_cal_opt, cs_real_6_t pvar[], const cs_real_6_t pvara[], const cs_real_6_t coefa[], const cs_real_66_t coefb[], const cs_real_6_t cofaf[], const cs_real_66_t cofbf[], const cs_real_t i_massflux[], const cs_real_t b_massflux[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_6_t viscel[], const cs_real_2_t weighf[], const cs_real_t weighb[], int icvflb, const int icvfli[], cs_real_6_t smbrp[])
Wrapper to the function which adds the explicit part of the convection/diffusion terms of a transport...
Definition: cs_balance.c:628