programmer's documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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-2017 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 /*----------------------------------------------------------------------------*/
104 /*----------------------------------------------------------------------------*/
105 
106 void
107 cs_balance_scalar(int idtvar,
108  int f_id,
109  int imucpp,
110  int imasac,
111  int inc,
112  int iccocg,
113  cs_var_cal_opt_t *var_cal_opt,
114  cs_real_t pvar[],
115  const cs_real_t pvara[],
116  const cs_real_t coefap[],
117  const cs_real_t coefbp[],
118  const cs_real_t cofafp[],
119  const cs_real_t cofbfp[],
120  const cs_real_t i_massflux[],
121  const cs_real_t b_massflux[],
122  const cs_real_t i_visc[],
123  const cs_real_t b_visc[],
124  cs_real_6_t viscel[],
125  const cs_real_t xcpp[],
126  const cs_real_2_t weighf[],
127  const cs_real_t weighb[],
128  int icvflb,
129  const int icvfli[],
130  cs_real_t smbrp[]);
131 
132 /*----------------------------------------------------------------------------*/
209 /*----------------------------------------------------------------------------*/
210 
211 void
212 cs_balance_vector(int idtvar,
213  int f_id,
214  int imasac,
215  int inc,
216  int ivisep,
217  cs_var_cal_opt_t *var_cal_opt,
218  cs_real_3_t pvar[],
219  const cs_real_3_t pvara[],
220  const cs_real_3_t coefav[],
221  const cs_real_33_t coefbv[],
222  const cs_real_3_t cofafv[],
223  const cs_real_33_t cofbfv[],
224  const cs_real_t i_massflux[],
225  const cs_real_t b_massflux[],
226  const cs_real_t i_visc[],
227  const cs_real_t b_visc[],
228  const cs_real_t secvif[],
229  const cs_real_t secvib[],
230  cs_real_6_t viscel[],
231  const cs_real_2_t weighf[],
232  const cs_real_t weighb[],
233  int icvflb,
234  const int icvfli[],
235  cs_real_3_t smbr[]);
236 
237 /*----------------------------------------------------------------------------*/
300 /*----------------------------------------------------------------------------*/
301 
302 void
303 cs_balance_tensor(int idtvar,
304  int f_id,
305  int imasac,
306  int inc,
307  cs_var_cal_opt_t *var_cal_opt,
308  cs_real_6_t pvar[],
309  const cs_real_6_t pvara[],
310  const cs_real_6_t coefa[],
311  const cs_real_66_t coefb[],
312  const cs_real_6_t cofaf[],
313  const cs_real_66_t cofbf[],
314  const cs_real_t i_massflux[],
315  const cs_real_t b_massflux[],
316  const cs_real_t i_visc[],
317  const cs_real_t b_visc[],
318  cs_real_6_t viscel[],
319  const cs_real_2_t weighf[],
320  const cs_real_t weighb[],
321  int icvflb,
322  const int icvfli[],
323  cs_real_6_t smbrp[]);
324 
325 /*----------------------------------------------------------------------------*/
326 
328 
329 #endif /* __CS_BALANCE_H__ */
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:308
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:311
cs_real_t cs_real_66_t[6][6]
6x6 matrix of floating-point values
Definition: cs_defs.h:316
#define BEGIN_C_DECLS
Definition: cs_defs.h:453
double cs_real_t
Floating-point value.
Definition: cs_defs.h:297
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:309
structure containing the variable calculation options.
Definition: cs_parameters.h:59
#define END_C_DECLS
Definition: cs_defs.h:454
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:181
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:315
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:664
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:439