My Project
programmer's 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 This file is part of Code_Saturne, a general-purpose CFD tool.
6
7 Copyright (C) 1998-2019 EDF S.A.
8
9 This program is free software; you can redistribute it and/or modify it under
10 the terms of the GNU General Public License as published by the Free Software
11 Foundation; either version 2 of the License, or (at your option) any later
12 version.
13
14 This program is distributed in the hope that it will be useful, but WITHOUT
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 details.
18
19 You should have received a copy of the GNU General Public License along with
20 this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
21 Street, Fifth Floor, Boston, MA 02110-1301, USA.
22*/
23
24/*----------------------------------------------------------------------------*/
25
26#include "cs_defs.h"
27
29
30/*----------------------------------------------------------------------------*/
100/*----------------------------------------------------------------------------*/
101
102void
103cs_balance_scalar(int idtvar,
104 int f_id,
105 int imucpp,
106 int imasac,
107 int inc,
108 int iccocg,
109 cs_var_cal_opt_t *var_cal_opt,
110 cs_real_t pvar[],
111 const cs_real_t pvara[],
112 const cs_real_t coefap[],
113 const cs_real_t coefbp[],
114 const cs_real_t cofafp[],
115 const cs_real_t cofbfp[],
116 const cs_real_t i_massflux[],
117 const cs_real_t b_massflux[],
118 const cs_real_t i_visc[],
119 const cs_real_t b_visc[],
120 cs_real_6_t viscel[],
121 const cs_real_t xcpp[],
122 const cs_real_2_t weighf[],
123 const cs_real_t weighb[],
124 int icvflb,
125 const int icvfli[],
126 cs_real_t smbrp[]);
127
128/*----------------------------------------------------------------------------*/
201/*----------------------------------------------------------------------------*/
202
203void
204cs_balance_vector(int idtvar,
205 int f_id,
206 int imasac,
207 int inc,
208 int ivisep,
209 cs_var_cal_opt_t *var_cal_opt,
210 cs_real_3_t pvar[],
211 const cs_real_3_t pvara[],
212 const cs_real_3_t coefav[],
213 const cs_real_33_t coefbv[],
214 const cs_real_3_t cofafv[],
215 const cs_real_33_t cofbfv[],
216 const cs_real_t i_massflux[],
217 const cs_real_t b_massflux[],
218 const cs_real_t i_visc[],
219 const cs_real_t b_visc[],
220 const cs_real_t secvif[],
221 const cs_real_t secvib[],
222 cs_real_6_t viscel[],
223 const cs_real_2_t weighf[],
224 const cs_real_t weighb[],
225 int icvflb,
226 const int icvfli[],
227 cs_real_3_t smbr[]);
228
229/*----------------------------------------------------------------------------*/
288/*----------------------------------------------------------------------------*/
289
290void
291cs_balance_tensor(int idtvar,
292 int f_id,
293 int imasac,
294 int inc,
295 cs_var_cal_opt_t *var_cal_opt,
296 cs_real_6_t pvar[],
297 const cs_real_6_t pvara[],
298 const cs_real_6_t coefa[],
299 const cs_real_66_t coefb[],
300 const cs_real_6_t cofaf[],
301 const cs_real_66_t cofbf[],
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_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:431
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, 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:177
#define BEGIN_C_DECLS
Definition cs_defs.h:467
double cs_real_t
Floating-point value.
Definition cs_defs.h:302
cs_real_t cs_real_66_t[6][6]
6x6 matrix of floating-point values
Definition cs_defs.h:322
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition cs_defs.h:315
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition cs_defs.h:314
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition cs_defs.h:317
#define END_C_DECLS
Definition cs_defs.h:468
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition cs_defs.h:321
structure containing the variable calculation options.
Definition cs_parameters.h:60