7.1
general documentation
cs_balance.h
Go to the documentation of this file.
1 #ifndef __CS_BALANCE_H__
2 #define __CS_BALANCE_H__
3 
4 /*============================================================================
5  * Building of the right hand side for a transport of a field.
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2021 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 #include "cs_parameters.h"
41 
42 /*----------------------------------------------------------------------------*/
44 
45 /*=============================================================================
46  * Public function prototypes
47  *============================================================================*/
48 
49 /*----------------------------------------------------------------------------*/
120 /*----------------------------------------------------------------------------*/
121 
122 void
124  int f_id,
125  int imucpp,
126  int imasac,
127  int inc,
128  int iccocg,
130  cs_real_t pvar[],
131  const cs_real_t pvara[],
132  const cs_real_t coefap[],
133  const cs_real_t coefbp[],
134  const cs_real_t cofafp[],
135  const cs_real_t cofbfp[],
136  const cs_real_t i_massflux[],
137  const cs_real_t b_massflux[],
138  const cs_real_t i_visc[],
139  const cs_real_t b_visc[],
140  cs_real_6_t viscel[],
141  const cs_real_t xcpp[],
142  const cs_real_2_t weighf[],
143  const cs_real_t weighb[],
144  int icvflb,
145  const int icvfli[],
146  cs_real_t smbrp[]);
147 
148 /*----------------------------------------------------------------------------*/
222 /*----------------------------------------------------------------------------*/
223 
224 void
226  int f_id,
227  int imasac,
228  int inc,
229  int ivisep,
231  cs_real_3_t pvar[],
232  const cs_real_3_t pvara[],
233  const cs_real_3_t coefav[],
234  const cs_real_33_t coefbv[],
235  const cs_real_3_t cofafv[],
236  const cs_real_33_t cofbfv[],
237  const cs_real_t i_massflux[],
238  const cs_real_t b_massflux[],
239  const cs_real_t i_visc[],
240  const cs_real_t b_visc[],
241  const cs_real_t secvif[],
242  const cs_real_t secvib[],
243  cs_real_6_t viscel[],
244  const cs_real_2_t weighf[],
245  const cs_real_t weighb[],
246  int icvflb,
247  const int icvfli[],
248  cs_real_3_t smbr[]);
249 
250 /*----------------------------------------------------------------------------*/
309 /*----------------------------------------------------------------------------*/
310 
311 void
313  int f_id,
314  int imasac,
315  int inc,
317  cs_real_6_t pvar[],
318  const cs_real_6_t pvara[],
319  const cs_real_6_t coefa[],
320  const cs_real_66_t coefb[],
321  const cs_real_6_t cofaf[],
322  const cs_real_66_t cofbf[],
323  const cs_real_t i_massflux[],
324  const cs_real_t b_massflux[],
325  const cs_real_t i_visc[],
326  const cs_real_t b_visc[],
327  cs_real_6_t viscel[],
328  const cs_real_2_t weighf[],
329  const cs_real_t weighb[],
330  int icvflb,
331  const int icvfli[],
332  cs_real_6_t smbrp[]);
333 
334 /*----------------------------------------------------------------------------*/
335 
337 
338 #endif /* __CS_BALANCE_H__ */
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:334
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:337
Set of parameters to handle an unsteady convection-diffusion-reaction equation with term sources...
Definition: cs_equation_param.h:177
cs_real_t cs_real_66_t[6][6]
6x6 matrix of floating-point values
Definition: cs_defs.h:343
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
integer(c_int), pointer, save idtvar
option for a variable time step
Definition: optcal.f90:383
integer, dimension(:), allocatable icvfli
boundary convection flux indicator of a Rusanov or an analytical flux (some boundary contributions of...
Definition: cfpoin.f90:52
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
cs_equation_param_t * var_cal_opt
Definition: keywords.h:135
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:335
#define END_C_DECLS
Definition: cs_defs.h:511
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:180
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:342
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:666
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[], const cs_real_t i_visc[], const cs_real_t b_visc[], const cs_real_t secvif[], const cs_real_t secvib[], cs_real_6_t viscel[], const cs_real_2_t weighf[], const cs_real_t weighb[], 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:438