7.0
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 /*----------------------------------------------------------------------------*/
119 /*----------------------------------------------------------------------------*/
120 
121 void
123  int f_id,
124  int imucpp,
125  int imasac,
126  int inc,
127  int iccocg,
129  cs_real_t pvar[],
130  const cs_real_t pvara[],
131  const cs_real_t coefap[],
132  const cs_real_t coefbp[],
133  const cs_real_t cofafp[],
134  const cs_real_t cofbfp[],
135  const cs_real_t i_massflux[],
136  const cs_real_t b_massflux[],
137  const cs_real_t i_visc[],
138  const cs_real_t b_visc[],
139  cs_real_6_t viscel[],
140  const cs_real_t xcpp[],
141  const cs_real_2_t weighf[],
142  const cs_real_t weighb[],
143  int icvflb,
144  const int icvfli[],
145  cs_real_t smbrp[]);
146 
147 /*----------------------------------------------------------------------------*/
220 /*----------------------------------------------------------------------------*/
221 
222 void
224  int f_id,
225  int imasac,
226  int inc,
227  int ivisep,
229  cs_real_3_t pvar[],
230  const cs_real_3_t pvara[],
231  const cs_real_3_t coefav[],
232  const cs_real_33_t coefbv[],
233  const cs_real_3_t cofafv[],
234  const cs_real_33_t cofbfv[],
235  const cs_real_t i_massflux[],
236  const cs_real_t b_massflux[],
237  const cs_real_t i_visc[],
238  const cs_real_t b_visc[],
239  const cs_real_t secvif[],
240  const cs_real_t secvib[],
241  cs_real_6_t viscel[],
242  const cs_real_2_t weighf[],
243  const cs_real_t weighb[],
244  int icvflb,
245  const int icvfli[],
246  cs_real_3_t smbr[]);
247 
248 /*----------------------------------------------------------------------------*/
307 /*----------------------------------------------------------------------------*/
308 
309 void
311  int f_id,
312  int imasac,
313  int inc,
315  cs_real_6_t pvar[],
316  const cs_real_6_t pvara[],
317  const cs_real_6_t coefa[],
318  const cs_real_66_t coefb[],
319  const cs_real_6_t cofaf[],
320  const cs_real_66_t cofbf[],
321  const cs_real_t i_massflux[],
322  const cs_real_t b_massflux[],
323  const cs_real_t i_visc[],
324  const cs_real_t b_visc[],
325  cs_real_6_t viscel[],
326  const cs_real_2_t weighf[],
327  const cs_real_t weighb[],
328  int icvflb,
329  const int icvfli[],
330  cs_real_6_t smbrp[]);
331 
332 /*----------------------------------------------------------------------------*/
333 
335 
336 #endif /* __CS_BALANCE_H__ */
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:319
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:322
Set of parameters to handle an unsteady convection-diffusion-reaction equation with term sources...
Definition: cs_equation_param.h:202
cs_real_t cs_real_66_t[6][6]
6x6 matrix of floating-point values
Definition: cs_defs.h:328
#define BEGIN_C_DECLS
Definition: cs_defs.h:495
integer(c_int), pointer, save idtvar
option for a variable time step
Definition: optcal.f90:374
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:307
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:320
#define END_C_DECLS
Definition: cs_defs.h:496
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:327
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:667
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