programmer's documentation
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cs_convection_diffusion.h
Go to the documentation of this file.
1 #ifndef __CS_CONVECTION_DIFFUSION_H__
2 #define __CS_CONVECTION_DIFFUSION_H__
3 
4 /*============================================================================
5  * Convection-diffusion operators.
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2014 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 /*----------------------------------------------------------------------------
31  * Local headers
32  *----------------------------------------------------------------------------*/
33 
34 #include "cs_base.h"
35 #include "cs_halo.h"
36 
37 /*----------------------------------------------------------------------------*/
38 
40 
41 /*=============================================================================
42  * Local Macro definitions
43  *============================================================================*/
44 
45 /*============================================================================
46  * Type definition
47  *============================================================================*/
48 
49 /*============================================================================
50  * Global variables
51  *============================================================================*/
52 
53 /*============================================================================
54  * Public function prototypes for Fortran API
55  *============================================================================*/
56 
57 /*----------------------------------------------------------------------------
58  * Wrapper to cs_convection_diffusion_scalar
59  *----------------------------------------------------------------------------*/
60 
61 void CS_PROCF (bilsc2, BILSC2)
62 (
63  const cs_int_t *const idtvar,
64  const cs_int_t *const f_id,
65  const cs_var_cal_opt_t *const var_cal_opt,
66  const cs_int_t *const icvflb,
67  const cs_int_t *const inc,
68  const cs_int_t *const iccocg,
69  const cs_int_t *const ifaccp,
70  cs_real_t pvar[],
71  const cs_real_t pvara[],
72  const cs_int_t bc_type[],
73  const cs_int_t icvfli[],
74  const cs_real_t coefap[],
75  const cs_real_t coefbp[],
76  const cs_real_t cofafp[],
77  const cs_real_t cofbfp[],
78  const cs_real_t i_massflux[],
79  const cs_real_t b_massflux[],
80  const cs_real_t i_visc[],
81  const cs_real_t b_visc[],
82  cs_real_t rhs[]
83 );
84 
85 /*----------------------------------------------------------------------------
86  * Wrapper to cs_convection_diffusion_vector
87  *----------------------------------------------------------------------------*/
88 
89 void CS_PROCF (bilsc4, BILSC4)
90 (
91  const cs_int_t *const idtvar,
92  const cs_int_t *const f_id,
93  const cs_var_cal_opt_t *const var_cal_opt,
94  const cs_int_t *const icvflb,
95  const cs_int_t *const inc,
96  const cs_int_t *const ifaccp,
97  const cs_int_t *const ivisep,
98  cs_real_3_t pvar[],
99  const cs_real_3_t pvara[],
100  const cs_int_t bc_type[],
101  const cs_int_t icvfli[],
102  const cs_real_3_t coefav[],
103  const cs_real_33_t coefbv[],
104  const cs_real_3_t cofafv[],
105  const cs_real_33_t cofbfv[],
106  const cs_real_t i_massflux[],
107  const cs_real_t b_massflux[],
108  const cs_real_t i_visc[],
109  const cs_real_t b_visc[],
110  const cs_real_t secvif[],
111  cs_real_3_t rhs[]
112 );
113 
114 /*----------------------------------------------------------------------------
115  * Wrapper to cs_convection_diffusion_thermal
116  *----------------------------------------------------------------------------*/
117 
118 void CS_PROCF (bilsct, BILSCT)
119 (
120  const cs_int_t *const idtvar,
121  const cs_int_t *const f_id,
122  const cs_var_cal_opt_t *const var_cal_opt,
123  const cs_int_t *const inc,
124  const cs_int_t *const iccocg,
125  const cs_int_t *const ifaccp,
126  cs_real_t pvar[],
127  const cs_real_t pvara[],
128  const cs_int_t bc_type[],
129  const cs_real_t coefap[],
130  const cs_real_t coefbp[],
131  const cs_real_t cofafp[],
132  const cs_real_t cofbfp[],
133  const cs_real_t i_massflux[],
134  const cs_real_t b_massflux[],
135  const cs_real_t i_visc[],
136  const cs_real_t b_visc[],
137  const cs_real_t xcpp[],
138  cs_real_t rhs[]
139 );
140 
141 /*----------------------------------------------------------------------------
142  * Wrapper to cs_anisotropic_diffusion_scalar
143  *----------------------------------------------------------------------------*/
144 
145 void CS_PROCF (diften, DIFTEN)
146 (
147  const cs_int_t *const idtvar,
148  const cs_int_t *const f_id,
149  const cs_var_cal_opt_t *const var_cal_opt,
150  const cs_int_t *const inc,
151  const cs_int_t *const iccocg,
152  cs_real_t pvar[],
153  const cs_real_t pvara[],
154  const cs_real_t coefap[],
155  const cs_real_t coefbp[],
156  const cs_real_t cofafp[],
157  const cs_real_t cofbfp[],
158  const cs_real_t i_visc[],
159  const cs_real_t b_visc[],
160  cs_real_6_t viscel[],
161  const cs_real_2_t weighf[],
162  const cs_real_t weighb[],
163  cs_real_t rhs[]
164 );
165 
166 /*----------------------------------------------------------------------------
167  * Wrapper to cs_anisotropic_diffusion_vector
168  *----------------------------------------------------------------------------*/
169 
170 void CS_PROCF (diftnv, DIFTNV)
171 (
172  const cs_int_t *const idtvar,
173  const cs_int_t *const f_id,
174  const cs_var_cal_opt_t *const var_cal_opt,
175  const cs_int_t *const inc,
176  const cs_int_t *const ifaccp,
177  const cs_int_t *const ivisep,
178  cs_real_3_t pvar[],
179  const cs_real_3_t pvara[],
180  const cs_int_t bc_type[],
181  const cs_real_3_t coefav[],
182  const cs_real_33_t coefbv[],
183  const cs_real_3_t cofafv[],
184  const cs_real_33_t cofbfv[],
185  const cs_real_33_t i_visc[],
186  const cs_real_t b_visc[],
187  const cs_real_t secvif[],
188  cs_real_3_t rhs[]
189 );
190 
191 /*----------------------------------------------------------------------------
192  * Wrapper to cs_face_diffusion_potential
193  *----------------------------------------------------------------------------*/
194 
195 void CS_PROCF (itrmas, ITRMAS)
196 (
197  const cs_int_t *const init,
198  const cs_int_t *const inc,
199  const cs_int_t *const imrgra,
200  const cs_int_t *const iccocg,
201  const cs_int_t *const nswrgp,
202  const cs_int_t *const imligp,
203  const cs_int_t *const iphydp,
204  const cs_int_t *const iwarnp,
205  const cs_real_t *const epsrgp,
206  const cs_real_t *const climgp,
207  const cs_real_t *const extrap,
208  cs_real_3_t frcxt[],
209  cs_real_t pvar[],
210  const cs_real_t coefap[],
211  const cs_real_t coefbp[],
212  const cs_real_t cofafp[],
213  const cs_real_t cofbfp[],
214  const cs_real_t i_visc[],
215  const cs_real_t b_visc[],
216  const cs_real_t viselx[],
217  const cs_real_t visely[],
218  const cs_real_t viselz[],
219  cs_real_t i_massflux[],
220  cs_real_t b_massflux[]
221 );
222 
223 /*----------------------------------------------------------------------------
224  * Wrapper to cs_face_anisotropic_diffusion_potential
225  *----------------------------------------------------------------------------*/
226 
227 void CS_PROCF (itrmav, ITRMAV)
228 (
229  const cs_int_t *const init,
230  const cs_int_t *const inc,
231  const cs_int_t *const imrgra,
232  const cs_int_t *const iccocg,
233  const cs_int_t *const nswrgp,
234  const cs_int_t *const imligp,
235  const cs_int_t *const ircflp,
236  const cs_int_t *const iphydp,
237  const cs_int_t *const iwarnp,
238  const cs_real_t *const epsrgp,
239  const cs_real_t *const climgp,
240  const cs_real_t *const extrap,
241  cs_real_3_t frcxt[],
242  cs_real_t pvar[],
243  const cs_real_t coefap[],
244  const cs_real_t coefbp[],
245  const cs_real_t cofafp[],
246  const cs_real_t cofbfp[],
247  const cs_real_t i_visc[],
248  const cs_real_t b_visc[],
249  cs_real_6_t viscel[],
250  const cs_real_2_t weighf[],
251  const cs_real_t weighb[],
252  cs_real_t i_massflux[],
253  cs_real_t b_massflux[]
254 );
255 
256 /*----------------------------------------------------------------------------
257  * Wrapper to cs_diffusion_potential
258  *----------------------------------------------------------------------------*/
259 
260 void CS_PROCF (itrgrp, ITRGRP)
261 (
262  const cs_int_t *const init,
263  const cs_int_t *const inc,
264  const cs_int_t *const imrgra,
265  const cs_int_t *const iccocg,
266  const cs_int_t *const nswrgp,
267  const cs_int_t *const imligp,
268  const cs_int_t *const iphydp,
269  const cs_int_t *const iwarnp,
270  const cs_real_t *const epsrgp,
271  const cs_real_t *const climgp,
272  const cs_real_t *const extrap,
273  cs_real_3_t frcxt[],
274  cs_real_t pvar[],
275  const cs_real_t coefap[],
276  const cs_real_t coefbp[],
277  const cs_real_t cofafp[],
278  const cs_real_t cofbfp[],
279  const cs_real_t i_visc[],
280  const cs_real_t b_visc[],
281  const cs_real_t viselx[],
282  const cs_real_t visely[],
283  const cs_real_t viselz[],
284  cs_real_t diverg[]
285 );
286 
287 /*----------------------------------------------------------------------------
288  * Wrapper to cs_anisotropic_diffusion_potential
289  *----------------------------------------------------------------------------*/
290 
291 void CS_PROCF (itrgrv, ITRGRV)
292 (
293  const cs_int_t *const init,
294  const cs_int_t *const inc,
295  const cs_int_t *const imrgra,
296  const cs_int_t *const iccocg,
297  const cs_int_t *const nswrgp,
298  const cs_int_t *const imligp,
299  const cs_int_t *const ircflp,
300  const cs_int_t *const iphydp,
301  const cs_int_t *const iwarnp,
302  const cs_real_t *const epsrgp,
303  const cs_real_t *const climgp,
304  const cs_real_t *const extrap,
305  cs_real_3_t frcxt[],
306  cs_real_t pvar[],
307  const cs_real_t coefap[],
308  const cs_real_t coefbp[],
309  const cs_real_t cofafp[],
310  const cs_real_t cofbfp[],
311  const cs_real_t i_visc[],
312  const cs_real_t b_visc[],
313  cs_real_6_t viscel[],
314  const cs_real_2_t weighf[],
315  const cs_real_t weighb[],
316  cs_real_t diverg[]
317 );
318 
319 /*=============================================================================
320  * Public function prototypes
321  *============================================================================*/
322 
323 /*----------------------------------------------------------------------------*/
378 /*----------------------------------------------------------------------------*/
379 
380 void
382  int f_id,
383  const cs_var_cal_opt_t var_cal_opt,
384  int icvflb,
385  int inc,
386  int iccocg,
387  int ifaccp,
388  cs_real_t *restrict pvar,
389  const cs_real_t *restrict pvara,
390  const cs_int_t bc_type[],
391  const cs_int_t icvfli[],
392  const cs_real_t coefap[],
393  const cs_real_t coefbp[],
394  const cs_real_t cofafp[],
395  const cs_real_t cofbfp[],
396  const cs_real_t i_massflux[],
397  const cs_real_t b_massflux[],
398  const cs_real_t i_visc[],
399  const cs_real_t b_visc[],
400  cs_real_t *restrict rhs);
401 
402 /*----------------------------------------------------------------------------*/
464 /*----------------------------------------------------------------------------*/
465 
466 void
468  int f_id,
469  const cs_var_cal_opt_t var_cal_opt,
470  int icvflb,
471  int inc,
472  int ifaccp,
473  int ivisep,
474  cs_real_3_t *restrict pvar,
475  const cs_real_3_t *restrict pvara,
476  const cs_int_t bc_type[],
477  const cs_int_t icvfli[],
478  const cs_real_3_t coefav[],
479  const cs_real_33_t coefbv[],
480  const cs_real_3_t cofafv[],
481  const cs_real_33_t cofbfv[],
482  const cs_real_t i_massflux[],
483  const cs_real_t b_massflux[],
484  const cs_real_t i_visc[],
485  const cs_real_t b_visc[],
486  const cs_real_t secvif[],
487  cs_real_3_t *restrict rhs);
488 
489 /*----------------------------------------------------------------------------*/
538 /*----------------------------------------------------------------------------*/
539 
540 void
542  int f_id,
543  const cs_var_cal_opt_t var_cal_opt,
544  int inc,
545  int iccocg,
546  int ifaccp,
547  cs_real_t *restrict pvar,
548  const cs_real_t *restrict pvara,
549  const cs_int_t bc_type[],
550  const cs_real_t coefap[],
551  const cs_real_t coefbp[],
552  const cs_real_t cofafp[],
553  const cs_real_t cofbfp[],
554  const cs_real_t i_massflux[],
555  const cs_real_t b_massflux[],
556  const cs_real_t i_visc[],
557  const cs_real_t b_visc[],
558  const cs_real_t xcpp[],
559  cs_real_t *restrict rhs);
560 
561 /*----------------------------------------------------------------------------*/
609 /*----------------------------------------------------------------------------*/
610 
611 void
613  int f_id,
614  const cs_var_cal_opt_t var_cal_opt,
615  int inc,
616  int iccocg,
617  cs_real_t *restrict pvar,
618  const cs_real_t *restrict pvara,
619  const cs_real_t coefap[],
620  const cs_real_t coefbp[],
621  const cs_real_t cofafp[],
622  const cs_real_t cofbfp[],
623  const cs_real_t i_visc[],
624  const cs_real_t b_visc[],
625  cs_real_6_t *restrict viscel,
626  const cs_real_2_t weighf[],
627  const cs_real_t weighb[],
628  cs_real_t *restrict rhs);
629 
630 /*-----------------------------------------------------------------------------*/
677 /*----------------------------------------------------------------------------*/
678 
679 void
681  int f_id,
682  const cs_var_cal_opt_t var_cal_opt,
683  int inc,
684  int ifaccp,
685  int ivisep,
686  cs_real_3_t *restrict pvar,
687  const cs_real_3_t *restrict pvara,
688  const cs_int_t bc_type[],
689  const cs_real_3_t coefav[],
690  const cs_real_33_t coefbv[],
691  const cs_real_3_t cofafv[],
692  const cs_real_33_t cofbfv[],
693  const cs_real_33_t i_visc[],
694  const cs_real_t b_visc[],
695  const cs_real_t secvif[],
696  cs_real_3_t *restrict rhs);
697 
698 /*----------------------------------------------------------------------------*/
756 /*----------------------------------------------------------------------------*/
757 
758 void
761  int init,
762  int inc,
763  int imrgra,
764  int iccocg,
765  int nswrgp,
766  int imligp,
767  int iphydp,
768  int iwarnp,
769  double epsrgp,
770  double climgp,
771  double extrap,
772  cs_real_3_t *restrict frcxt,
773  cs_real_t *restrict pvar,
774  const cs_real_t coefap[],
775  const cs_real_t coefbp[],
776  const cs_real_t cofafp[],
777  const cs_real_t cofbfp[],
778  const cs_real_t i_visc[],
779  const cs_real_t b_visc[],
780  const cs_real_t viselx[],
781  const cs_real_t visely[],
782  const cs_real_t viselz[],
783  cs_real_t *restrict i_massflux,
784  cs_real_t *restrict b_massflux);
785 
786 /*----------------------------------------------------------------------------*/
853 /*----------------------------------------------------------------------------*/
854 
855 void
858  int init,
859  int inc,
860  int imrgra,
861  int iccocg,
862  int nswrgp,
863  int imligp,
864  int ircflp,
865  int iphydp,
866  int iwarnp,
867  double epsrgp,
868  double climgp,
869  double extrap,
870  cs_real_3_t *restrict frcxt,
871  cs_real_t *restrict pvar,
872  const cs_real_t coefap[],
873  const cs_real_t coefbp[],
874  const cs_real_t cofafp[],
875  const cs_real_t cofbfp[],
876  const cs_real_t i_visc[],
877  const cs_real_t b_visc[],
878  cs_real_6_t *restrict viscel,
879  const cs_real_2_t weighf[],
880  const cs_real_t weighb[],
881  cs_real_t *restrict i_massflux,
882  cs_real_t *restrict b_massflux);
883 
884 /*----------------------------------------------------------------------------*/
941 /*----------------------------------------------------------------------------*/
942 
943 void
946  int init,
947  int inc,
948  int imrgra,
949  int iccocg,
950  int nswrgp,
951  int imligp,
952  int iphydp,
953  int iwarnp,
954  double epsrgp,
955  double climgp,
956  double extrap,
957  cs_real_3_t *restrict frcxt,
958  cs_real_t *restrict pvar,
959  const cs_real_t coefap[],
960  const cs_real_t coefbp[],
961  const cs_real_t cofafp[],
962  const cs_real_t cofbfp[],
963  const cs_real_t i_visc[],
964  const cs_real_t b_visc[],
965  const cs_real_t viselx[],
966  const cs_real_t visely[],
967  const cs_real_t viselz[],
968  cs_real_t *restrict diverg);
969 
970 /*----------------------------------------------------------------------------*/
1038 /*----------------------------------------------------------------------------*/
1039 
1040 void
1042  cs_mesh_quantities_t *fvq,
1043  int init,
1044  int inc,
1045  int imrgra,
1046  int iccocg,
1047  int nswrgp,
1048  int imligp,
1049  int ircflp,
1050  int iphydp,
1051  int iwarnp,
1052  double epsrgp,
1053  double climgp,
1054  double extrap,
1055  cs_real_3_t *restrict frcxt,
1056  cs_real_t *restrict pvar,
1057  const cs_real_t coefap[],
1058  const cs_real_t coefbp[],
1059  const cs_real_t cofafp[],
1060  const cs_real_t cofbfp[],
1061  const cs_real_t i_visc[],
1062  const cs_real_t b_visc[],
1063  cs_real_6_t *restrict viscel,
1064  const cs_real_2_t weighf[],
1065  const cs_real_t weighb[],
1066  cs_real_t *restrict diverg);
1067 
1068 /*----------------------------------------------------------------------------*/
1069 
1071 
1072 #endif /* __CS_CONVECTION_DIFFUSION_H__ */
#define restrict
Definition: cs_defs.h:122
void itrmav(const cs_int_t *const init, const cs_int_t *const inc, const cs_int_t *const imrgra, const cs_int_t *const iccocg, const cs_int_t *const nswrgp, const cs_int_t *const imligp, const cs_int_t *const ircflp, const cs_int_t *const iphydp, const cs_int_t *const iwarnp, const cs_real_t *const epsrgp, const cs_real_t *const climgp, const cs_real_t *const extrap, cs_real_3_t frcxt[], cs_real_t pvar[], 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_visc[], const cs_real_t b_visc[], cs_real_6_t viscel[], const cs_real_2_t weighf[], const cs_real_t weighb[], cs_real_t i_massflux[], cs_real_t b_massflux[])
Definition: cs_convection_diffusion.c:413
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:306
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:309
void cs_anisotropic_diffusion_vector(int idtvar, int f_id, const cs_var_cal_opt_t var_cal_opt, int inc, int ifaccp, int ivisep, cs_real_3_t *restrict pvar, const cs_real_3_t *restrict pvara, const cs_int_t bc_type[], 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_33_t i_visc[], const cs_real_t b_visc[], const cs_real_t secvif[], cs_real_3_t *restrict rhs)
Add the explicit part of the diffusion terms with a symmetric tensorial diffusivity for a transport e...
Definition: cs_convection_diffusion.c:5315
void cs_anisotropic_diffusion_scalar(int idtvar, int f_id, const cs_var_cal_opt_t var_cal_opt, int inc, int iccocg, cs_real_t *restrict pvar, const cs_real_t *restrict 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_visc[], const cs_real_t b_visc[], cs_real_6_t *restrict viscel, const cs_real_2_t weighf[], const cs_real_t weighb[], cs_real_t *restrict rhs)
Add the explicit part of the diffusion terms with a symmetric tensor diffusivity for a transport equa...
Definition: cs_convection_diffusion.c:4759
#define BEGIN_C_DECLS
Definition: cs_defs.h:405
int cs_int_t
Fortran-compatible integer.
Definition: cs_defs.h:295
void itrgrp(const cs_int_t *const init, const cs_int_t *const inc, const cs_int_t *const imrgra, const cs_int_t *const iccocg, const cs_int_t *const nswrgp, const cs_int_t *const imligp, const cs_int_t *const iphydp, const cs_int_t *const iwarnp, const cs_real_t *const epsrgp, const cs_real_t *const climgp, const cs_real_t *const extrap, cs_real_3_t frcxt[], cs_real_t pvar[], 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_visc[], const cs_real_t b_visc[], const cs_real_t viselx[], const cs_real_t visely[], const cs_real_t viselz[], cs_real_t diverg[])
Definition: cs_convection_diffusion.c:478
void diftnv(const cs_int_t *const idtvar, const cs_int_t *const f_id, const cs_var_cal_opt_t *const var_cal_opt, const cs_int_t *const inc, const cs_int_t *const ifaccp, const cs_int_t *const ivisep, cs_real_3_t pvar[], const cs_real_3_t pvara[], const cs_int_t bc_type[], 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_33_t i_visc[], const cs_real_t b_visc[], const cs_real_t secvif[], cs_real_3_t rhs[])
Definition: cs_convection_diffusion.c:306
void cs_anisotropic_diffusion_potential(const cs_mesh_t *m, cs_mesh_quantities_t *fvq, int init, int inc, int imrgra, int iccocg, int nswrgp, int imligp, int ircflp, int iphydp, int iwarnp, double epsrgp, double climgp, double extrap, cs_real_3_t *restrict frcxt, cs_real_t *restrict pvar, 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_visc[], const cs_real_t b_visc[], cs_real_6_t *restrict viscel, const cs_real_2_t weighf[], const cs_real_t weighb[], cs_real_t *restrict diverg)
Add the explicit part of the divergence of the mass flux due to the pressure gradient (routine analog...
Definition: cs_convection_diffusion.c:6925
void cs_convection_diffusion_vector(int idtvar, int f_id, const cs_var_cal_opt_t var_cal_opt, int icvflb, int inc, int ifaccp, int ivisep, cs_real_3_t *restrict pvar, const cs_real_3_t *restrict pvara, const cs_int_t bc_type[], const cs_int_t icvfli[], 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[], cs_real_3_t *restrict rhs)
Add the explicit part of the convection/diffusion terms of a transport equation of a vector field ...
Definition: cs_convection_diffusion.c:1987
void bilsc2(const cs_int_t *const idtvar, const cs_int_t *const f_id, const cs_var_cal_opt_t *const var_cal_opt, const cs_int_t *const icvflb, const cs_int_t *const inc, const cs_int_t *const iccocg, const cs_int_t *const ifaccp, cs_real_t pvar[], const cs_real_t pvara[], const cs_int_t bc_type[], const cs_int_t icvfli[], 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_t rhs[])
Definition: cs_convection_diffusion.c:112
void cs_face_diffusion_potential(const cs_mesh_t *m, cs_mesh_quantities_t *fvq, int init, int inc, int imrgra, int iccocg, int nswrgp, int imligp, int iphydp, int iwarnp, double epsrgp, double climgp, double extrap, cs_real_3_t *restrict frcxt, cs_real_t *restrict pvar, 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_visc[], const cs_real_t b_visc[], const cs_real_t viselx[], const cs_real_t visely[], const cs_real_t viselz[], cs_real_t *restrict i_massflux, cs_real_t *restrict b_massflux)
Update the face mass flux with the face pressure (or pressure increment, or pressure double increment...
Definition: cs_convection_diffusion.c:5856
Definition: cs_mesh.h:62
void diften(const cs_int_t *const idtvar, const cs_int_t *const f_id, const cs_var_cal_opt_t *const var_cal_opt, const cs_int_t *const inc, const cs_int_t *const iccocg, 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_visc[], const cs_real_t b_visc[], cs_real_6_t viscel[], const cs_real_2_t weighf[], const cs_real_t weighb[], cs_real_t rhs[])
Definition: cs_convection_diffusion.c:262
Definition: cs_mesh_quantities.h:51
void itrmas(const cs_int_t *const init, const cs_int_t *const inc, const cs_int_t *const imrgra, const cs_int_t *const iccocg, const cs_int_t *const nswrgp, const cs_int_t *const imligp, const cs_int_t *const iphydp, const cs_int_t *const iwarnp, const cs_real_t *const epsrgp, const cs_real_t *const climgp, const cs_real_t *const extrap, cs_real_3_t frcxt[], cs_real_t pvar[], 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_visc[], const cs_real_t b_visc[], const cs_real_t viselx[], const cs_real_t visely[], const cs_real_t viselz[], cs_real_t i_massflux[], cs_real_t b_massflux[])
Definition: cs_convection_diffusion.c:350
void itrgrv(const cs_int_t *const init, const cs_int_t *const inc, const cs_int_t *const imrgra, const cs_int_t *const iccocg, const cs_int_t *const nswrgp, const cs_int_t *const imligp, const cs_int_t *const ircflp, const cs_int_t *const iphydp, const cs_int_t *const iwarnp, const cs_real_t *const epsrgp, const cs_real_t *const climgp, const cs_real_t *const extrap, cs_real_3_t frcxt[], cs_real_t pvar[], 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_visc[], const cs_real_t b_visc[], cs_real_6_t viscel[], const cs_real_2_t weighf[], const cs_real_t weighb[], cs_real_t diverg[])
Definition: cs_convection_diffusion.c:539
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:307
Definition: cs_parameters.h:52
#define END_C_DECLS
Definition: cs_defs.h:406
double cs_real_t
Definition: cs_defs.h:296
void cs_face_anisotropic_diffusion_potential(const cs_mesh_t *m, cs_mesh_quantities_t *fvq, int init, int inc, int imrgra, int iccocg, int nswrgp, int imligp, int ircflp, int iphydp, int iwarnp, double epsrgp, double climgp, double extrap, cs_real_3_t *restrict frcxt, cs_real_t *restrict pvar, 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_visc[], const cs_real_t b_visc[], cs_real_6_t *restrict viscel, const cs_real_2_t weighf[], const cs_real_t weighb[], cs_real_t *restrict i_massflux, cs_real_t *restrict b_massflux)
Add the explicit part of the pressure gradient term to the mass flux in case of anisotropic diffusion...
Definition: cs_convection_diffusion.c:6190
#define CS_PROCF(x, y)
Definition: cs_defs.h:419
void bilsct(const cs_int_t *const idtvar, const cs_int_t *const f_id, const cs_var_cal_opt_t *const var_cal_opt, const cs_int_t *const inc, const cs_int_t *const iccocg, const cs_int_t *const ifaccp, cs_real_t pvar[], const cs_real_t pvara[], const cs_int_t bc_type[], 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[], const cs_real_t xcpp[], cs_real_t rhs[])
Definition: cs_convection_diffusion.c:214
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:311
void bilsc4(const cs_int_t *const idtvar, const cs_int_t *const f_id, const cs_var_cal_opt_t *const var_cal_opt, const cs_int_t *const icvflb, const cs_int_t *const inc, const cs_int_t *const ifaccp, const cs_int_t *const ivisep, cs_real_3_t pvar[], const cs_real_3_t pvara[], const cs_int_t bc_type[], const cs_int_t icvfli[], 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[], cs_real_3_t rhs[])
Definition: cs_convection_diffusion.c:162
void cs_convection_diffusion_scalar(int idtvar, int f_id, const cs_var_cal_opt_t var_cal_opt, int icvflb, int inc, int iccocg, int ifaccp, cs_real_t *restrict pvar, const cs_real_t *restrict pvara, const cs_int_t bc_type[], const cs_int_t icvfli[], 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_t *restrict rhs)
Add the explicit part of the convection/diffusion terms of a standard transport equation of a scalar ...
Definition: cs_convection_diffusion.c:659
void cs_convection_diffusion_thermal(int idtvar, int f_id, const cs_var_cal_opt_t var_cal_opt, int inc, int iccocg, int ifaccp, cs_real_t *restrict pvar, const cs_real_t *restrict pvara, const cs_int_t bc_type[], 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[], const cs_real_t xcpp[], cs_real_t *restrict rhs)
Add the explicit part of the convection/diffusion terms of a transport equation of a scalar field su...
Definition: cs_convection_diffusion.c:3560
void cs_diffusion_potential(const cs_mesh_t *m, cs_mesh_quantities_t *fvq, int init, int inc, int imrgra, int iccocg, int nswrgp, int imligp, int iphydp, int iwarnp, double epsrgp, double climgp, double extrap, cs_real_3_t *restrict frcxt, cs_real_t *restrict pvar, 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_visc[], const cs_real_t b_visc[], const cs_real_t viselx[], const cs_real_t visely[], const cs_real_t viselz[], cs_real_t *restrict diverg)
Update the cell mass flux divergence with the face pressure (or pressure increment, or pressure double increment) gradient.
Definition: cs_convection_diffusion.c:6583