8.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-2023 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 /*----------------------------------------------------------------------------*/
122 /*----------------------------------------------------------------------------*/
123 
124 void
126  int f_id,
127  int imucpp,
128  int imasac,
129  int inc,
131  cs_real_t pvar[],
132  const cs_real_t pvara[],
133  const cs_real_t coefap[],
134  const cs_real_t coefbp[],
135  const cs_real_t cofafp[],
136  const cs_real_t cofbfp[],
137  const cs_real_t i_massflux[],
138  const cs_real_t b_massflux[],
139  const cs_real_t i_visc[],
140  const cs_real_t b_visc[],
141  cs_real_6_t viscel[],
142  const cs_real_t xcpp[],
143  const cs_real_2_t weighf[],
144  const cs_real_t weighb[],
145  int icvflb,
146  const int icvfli[],
147  cs_real_t smbrp[]);
148 
149 /*----------------------------------------------------------------------------*/
226 /*----------------------------------------------------------------------------*/
227 
228 void
230  int f_id,
231  int imasac,
232  int inc,
233  int ivisep,
235  cs_real_3_t pvar[],
236  const cs_real_3_t pvara[],
237  const cs_real_3_t coefav[],
238  const cs_real_33_t coefbv[],
239  const cs_real_3_t cofafv[],
240  const cs_real_33_t cofbfv[],
241  const cs_real_t i_massflux[],
242  const cs_real_t b_massflux[],
243  const cs_real_t i_visc[],
244  const cs_real_t b_visc[],
245  const cs_real_t secvif[],
246  const cs_real_t secvib[],
247  cs_real_6_t viscel[],
248  const cs_real_2_t weighf[],
249  const cs_real_t weighb[],
250  int icvflb,
251  const int icvfli[],
252  cs_real_3_t i_pvar[],
253  cs_real_3_t b_pvar[],
254  cs_real_3_t smbr[]);
255 
256 /*----------------------------------------------------------------------------*/
318 /*----------------------------------------------------------------------------*/
319 
320 void
322  int f_id,
323  int imasac,
324  int inc,
326  cs_real_6_t pvar[],
327  const cs_real_6_t pvara[],
328  const cs_real_6_t coefa[],
329  const cs_real_66_t coefb[],
330  const cs_real_6_t cofaf[],
331  const cs_real_66_t cofbf[],
332  const cs_real_t i_massflux[],
333  const cs_real_t b_massflux[],
334  const cs_real_t i_visc[],
335  const cs_real_t b_visc[],
336  cs_real_6_t viscel[],
337  const cs_real_2_t weighf[],
338  const cs_real_t weighb[],
339  int icvflb,
340  const int icvfli[],
341  cs_real_6_t smbrp[]);
342 
343 /*----------------------------------------------------------------------------*/
344 
346 
347 #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[], 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 i_pvar[], cs_real_3_t b_pvar[], 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:428
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:662
void cs_balance_scalar(int idtvar, int f_id, int imucpp, int imasac, int inc, 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:176
#define BEGIN_C_DECLS
Definition: cs_defs.h:514
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
cs_real_t cs_real_66_t[6][6]
6x6 matrix of floating-point values
Definition: cs_defs.h:344
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:334
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:333
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:336
#define END_C_DECLS
Definition: cs_defs.h:515
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:343
integer, dimension(:), allocatable, target icvfli
boundary convection flux indicator of a Rusanov or an analytical flux (some boundary contributions of...
Definition: cfpoin.f90:52
cs_equation_param_t * var_cal_opt
Definition: keywords.h:135
integer(c_int), pointer, save idtvar
option for a variable time step
Definition: optcal.f90:260
Set of parameters to handle an unsteady convection-diffusion-reaction equation with term sources.
Definition: cs_equation_param.h:192