8.2
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-2024 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 /*----------------------------------------------------------------------------*/
115 /*----------------------------------------------------------------------------*/
116 
117 void
119  int f_id,
120  int imucpp,
121  int imasac,
122  int inc,
123  cs_equation_param_t *eqp,
124  cs_real_t pvar[],
125  const cs_real_t pvara[],
126  const cs_field_bc_coeffs_t *bc_coeffs,
127  const cs_real_t i_massflux[],
128  const cs_real_t b_massflux[],
129  const cs_real_t i_visc[],
130  const cs_real_t b_visc[],
131  cs_real_6_t viscel[],
132  const cs_real_t xcpp[],
133  const cs_real_2_t weighf[],
134  const cs_real_t weighb[],
135  int icvflb,
136  const int icvfli[],
137  cs_real_t smbrp[]);
138 
139 /*----------------------------------------------------------------------------*/
209 /*----------------------------------------------------------------------------*/
210 
211 void
213  int f_id,
214  int imasac,
215  int inc,
216  int ivisep,
217  cs_equation_param_t *eqp,
218  cs_real_3_t pvar[],
219  const cs_real_3_t pvara[],
220  const cs_field_bc_coeffs_t *bc_coeffs_v,
221  const cs_real_t i_massflux[],
222  const cs_real_t b_massflux[],
223  const cs_real_t i_visc[],
224  const cs_real_t b_visc[],
225  const cs_real_t secvif[],
226  const cs_real_t secvib[],
227  cs_real_6_t viscel[],
228  const cs_real_2_t weighf[],
229  const cs_real_t weighb[],
230  int icvflb,
231  const int icvfli[],
232  cs_real_3_t i_pvar[],
233  cs_real_3_t b_pvar[],
234  cs_real_3_t smbr[]);
235 
236 /*----------------------------------------------------------------------------*/
291 /*----------------------------------------------------------------------------*/
292 
293 void
295  int f_id,
296  int imasac,
297  int inc,
298  cs_equation_param_t *eqp,
299  cs_real_6_t pvar[],
300  const cs_real_6_t pvara[],
301  const cs_field_bc_coeffs_t *bc_coeffs_ts,
302  const cs_real_t i_massflux[],
303  const cs_real_t b_massflux[],
304  const cs_real_t i_visc[],
305  const cs_real_t b_visc[],
306  cs_real_6_t viscel[],
307  const cs_real_2_t weighf[],
308  const cs_real_t weighb[],
309  int icvflb,
310  const int icvfli[],
311  cs_real_6_t smbrp[]);
312 
313 /*----------------------------------------------------------------------------*/
314 
316 
317 #endif /* __CS_BALANCE_H__ */
void cs_balance_vector(int idtvar, int f_id, int imasac, int inc, int ivisep, cs_equation_param_t *eqp, cs_real_3_t pvar[], const cs_real_3_t pvara[], const cs_field_bc_coeffs_t *bc_coeffs_v, 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.cpp:396
void cs_balance_tensor(int idtvar, int f_id, int imasac, int inc, cs_equation_param_t *eqp, cs_real_6_t pvar[], const cs_real_6_t pvara[], const cs_field_bc_coeffs_t *bc_coeffs_ts, 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.cpp:608
void cs_balance_scalar(int idtvar, int f_id, int imucpp, int imasac, int inc, cs_equation_param_t *eqp, cs_real_t pvar[], const cs_real_t pvara[], const cs_field_bc_coeffs_t *bc_coeffs, 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.cpp:169
#define BEGIN_C_DECLS
Definition: cs_defs.h:528
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:347
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:346
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:349
#define END_C_DECLS
Definition: cs_defs.h:529
integer, dimension(:), allocatable, target icvfli
boundary convection flux indicator of a Rusanov or an analytical flux (some boundary contributions of...
Definition: cfpoin.f90:55
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:193
Field boundary condition descriptor (for variables)
Definition: cs_field.h:104