8.3
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/*----------------------------------------------------------------------------*/
53/*----------------------------------------------------------------------------*/
54
55void
57
58/*----------------------------------------------------------------------------*/
124/*----------------------------------------------------------------------------*/
125
126void
128 int f_id,
129 int imucpp,
130 int imasac,
131 int inc,
133 cs_real_t pvar[],
134 const cs_real_t pvara[],
135 const cs_field_bc_coeffs_t *bc_coeffs,
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/*----------------------------------------------------------------------------*/
218/*----------------------------------------------------------------------------*/
219
220void
222 int f_id,
223 int imasac,
224 int inc,
225 int ivisep,
227 cs_real_3_t pvar[],
228 const cs_real_3_t pvara[],
229 const cs_field_bc_coeffs_t *bc_coeffs_v,
230 const cs_real_t i_massflux[],
231 const cs_real_t b_massflux[],
232 const cs_real_t i_visc[],
233 const cs_real_t b_visc[],
234 const cs_real_t secvif[],
235 const cs_real_t secvib[],
236 cs_real_6_t viscel[],
237 const cs_real_2_t weighf[],
238 const cs_real_t weighb[],
239 int icvflb,
240 const int icvfli[],
241 cs_real_3_t i_pvar[],
242 cs_real_3_t b_pvar[],
243 cs_real_3_t smbr[]);
244
245/*----------------------------------------------------------------------------*/
300/*----------------------------------------------------------------------------*/
301
302void
304 int f_id,
305 int imasac,
306 int inc,
308 cs_real_6_t pvar[],
309 const cs_real_6_t pvara[],
310 const cs_field_bc_coeffs_t *bc_coeffs_ts,
311 const cs_real_t i_massflux[],
312 const cs_real_t b_massflux[],
313 const cs_real_t i_visc[],
314 const cs_real_t b_visc[],
315 cs_real_6_t viscel[],
316 const cs_real_2_t weighf[],
317 const cs_real_t weighb[],
318 int icvflb,
319 const int icvfli[],
320 cs_real_6_t smbrp[]);
321
322/*----------------------------------------------------------------------------*/
323
325
326#endif /* __CS_BALANCE_H__ */
void cs_balance_initialize(void)
Initialize balance timers.
Definition: cs_balance.cpp:116
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:430
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:649
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:196
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:359
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:358
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:361
#define END_C_DECLS
Definition: cs_defs.h:543
integer(c_int), pointer, save idtvar
option for a variable time step
Definition: optcal.f90:193
Set of parameters to handle an unsteady convection-diffusion-reaction equation with term sources.
Definition: cs_equation_param.h:192
Field boundary condition descriptor (for variables)
Definition: cs_field.h:104