8.0
general documentation
Loading...
Searching...
No Matches
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
124void
125cs_balance_scalar(int idtvar,
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
228void
229cs_balance_vector(int idtvar,
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 smbr[]);
253
254/*----------------------------------------------------------------------------*/
316/*----------------------------------------------------------------------------*/
317
318void
319cs_balance_tensor(int idtvar,
320 int f_id,
321 int imasac,
322 int inc,
324 cs_real_6_t pvar[],
325 const cs_real_6_t pvara[],
326 const cs_real_6_t coefa[],
327 const cs_real_66_t coefb[],
328 const cs_real_6_t cofaf[],
329 const cs_real_66_t cofbf[],
330 const cs_real_t i_massflux[],
331 const cs_real_t b_massflux[],
332 const cs_real_t i_visc[],
333 const cs_real_t b_visc[],
334 cs_real_6_t viscel[],
335 const cs_real_2_t weighf[],
336 const cs_real_t weighb[],
337 int icvflb,
338 const int icvfli[],
339 cs_real_6_t smbrp[]);
340
341/*----------------------------------------------------------------------------*/
342
344
345#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 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:656
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
cs_real_t cs_real_66_t[6][6]
6x6 matrix of floating-point values
Definition cs_defs.h:342
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition cs_defs.h:341
#define BEGIN_C_DECLS
Definition cs_defs.h:509
double cs_real_t
Floating-point value.
Definition cs_defs.h:319
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition cs_defs.h:331
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition cs_defs.h:334
#define END_C_DECLS
Definition cs_defs.h:510
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition cs_defs.h:332
cs_equation_param_t cs_var_cal_opt_t
Definition cs_parameters.h:62
cs_equation_param_t * var_cal_opt
Definition keywords.h:135