7.1
general documentation
cs_internal_coupling.h
Go to the documentation of this file.
1 #ifndef __CS_INTERNAL_COUPLING_H__
2 #define __CS_INTERNAL_COUPLING_H__
3 
4 /*============================================================================
5  * Internal coupling: coupling for one instance of Code_Saturne
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2021 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  * PLE library headers
32  *----------------------------------------------------------------------------*/
33 
34 #include <ple_locator.h>
35 
36 /*----------------------------------------------------------------------------
37  * Local headers
38  *----------------------------------------------------------------------------*/
39 
40 #include "cs_defs.h"
41 
42 #include "cs_base.h"
43 #include "cs_matrix_assembler.h"
44 #include "cs_mesh.h"
45 #include "cs_mesh_quantities.h"
46 #include "cs_parameters.h"
47 
48 /*----------------------------------------------------------------------------*/
49 
51 
52 /*=============================================================================
53  * Macro definitions
54  *============================================================================*/
55 
56 /*============================================================================
57  * Type definitions
58  *============================================================================*/
59 
60 
61 /* Internal coupling structure definition */
62 
63 typedef struct {
64 
65  /* Id */
66  int id;
67 
68  /* Locator + tag for exchanging variables */
69  ple_locator_t *locator;
70  int *c_tag;
71 
72  /* Selection criteria for coupled domains */
75 
78 
79  /* Associated zone ids */
80 
83 
84  cs_lnum_t n_local; /* Number of faces */
85  cs_lnum_t *faces_local; /* Coupling boundary faces, numbered 0..n-1 */
86 
87  cs_lnum_t n_distant; /* Number of faces in faces_distant */
88  cs_lnum_t *faces_distant; /* Distant boundary faces associated with locator */
89 
90  /* face i is coupled in this entity if coupled_faces[i] = true */
92 
93  /* Geometrical weights around coupling interface */
95 
96  /* IJ vectors */
98 
99  /* OF vectors */
101 
103 
104 /*============================================================================
105  * Public function prototypes
106  *============================================================================*/
107 
108 /*----------------------------------------------------------------------------*/
114 /*----------------------------------------------------------------------------*/
115 
116 int
118 
119 /*----------------------------------------------------------------------------*/
128 /*----------------------------------------------------------------------------*/
129 
130 void
131 cs_internal_coupling_add(const char criteria_cells[],
132  const char criteria_faces[]);
133 
134 /*----------------------------------------------------------------------------*/
141 /*----------------------------------------------------------------------------*/
142 
143 void
144 cs_internal_coupling_add_volume(const char criteria_cells[]);
145 
146 /*----------------------------------------------------------------------------*/
153 /*----------------------------------------------------------------------------*/
154 
155 void
157 
158 /*----------------------------------------------------------------------------*/
166 /*----------------------------------------------------------------------------*/
167 
168 void
170  const int zone_ids[]);
171 
172 /*----------------------------------------------------------------------------*/
188 /*----------------------------------------------------------------------------*/
189 
190 void
192  const char *interior_name,
193  const char *exterior_name);
194 
195 /*----------------------------------------------------------------------------*/
201 /*----------------------------------------------------------------------------*/
202 
203 void
204 cs_internal_coupling_bcs(int bc_type[]);
205 
206 /*----------------------------------------------------------------------------*/
210 /*----------------------------------------------------------------------------*/
211 
212 void
214 
215 /*----------------------------------------------------------------------------*/
223 /*----------------------------------------------------------------------------*/
224 
226 cs_internal_coupling_by_id(int coupling_id);
227 
228 /*----------------------------------------------------------------------------*/
238 /*----------------------------------------------------------------------------*/
239 
240 void
242  int stride,
243  cs_real_t distant[],
244  cs_real_t local[]);
245 
246 /*----------------------------------------------------------------------------*/
255 /*----------------------------------------------------------------------------*/
256 
257 void
259  int stride,
260  const cs_real_t tab[],
261  cs_real_t local[]);
262 
263 /*----------------------------------------------------------------------------*/
272 /*----------------------------------------------------------------------------*/
273 
274 void
276  int stride,
277  const cs_real_t tab[],
278  cs_real_t local[]);
279 
280 /*----------------------------------------------------------------------------
281  * Modify LSQ COCG matrix to include internal coupling
282  *
283  * parameters:
284  * cpl <-- pointer to coupling entity
285  * cocg <-> cocg matrix modified
286  *----------------------------------------------------------------------------*/
287 
288 void
290  cs_real_6_t cocg[]);
291 
292 /*----------------------------------------------------------------------------
293  * Modify LSQ COCG matrix to include internal coupling
294  * when diffusivity is a tensor
295  *
296  * parameters:
297  * cpl <-- pointer to coupling entity
298  * c_weight <-- weigthing coefficients
299  * cocg <-> cocg matrix modified
300  *----------------------------------------------------------------------------*/
301 
302 void
304  const cs_real_t *c_weight,
305  cs_real_6_t cocg[]);
306 
307 /*----------------------------------------------------------------------------
308  * Modify iterative COCG matrix to include internal coupling
309  *
310  * parameters:
311  * cpl <-- pointer to coupling entity
312  * cocg <-> cocg matrix modified
313  *----------------------------------------------------------------------------*/
314 
315 void
317  cs_real_33_t cocg[]);
318 
319 /*----------------------------------------------------------------------------*/
323 /*----------------------------------------------------------------------------*/
324 
325 void
327 
328 /*----------------------------------------------------------------------------*/
332 /*----------------------------------------------------------------------------*/
333 
334 void
336 
337 /*----------------------------------------------------------------------------*/
346 /*----------------------------------------------------------------------------*/
347 
348 void
350  const cs_internal_coupling_t *cpl,
351  const cs_real_t c_weight[],
352  const int w_stride,
353  cs_real_4_t rhsv[]);
354 
355 /*----------------------------------------------------------------------------*/
365 /*----------------------------------------------------------------------------*/
366 
367 void
369  const cs_internal_coupling_t *cpl,
370  const cs_real_t c_weight[],
371  const int w_stride,
372  const cs_real_3_t pvar[],
373  cs_real_33_t rhs[]);
374 
375 /*----------------------------------------------------------------------------*/
385 /*----------------------------------------------------------------------------*/
386 
387 void
389  const cs_internal_coupling_t *cpl,
390  const cs_real_t c_weight[],
391  const int w_stride,
392  const cs_real_6_t pvar[],
393  cs_real_63_t rhs[]);
394 
395 /*----------------------------------------------------------------------------*/
406 /*----------------------------------------------------------------------------*/
407 
408 void
410  const cs_internal_coupling_t *cpl,
411  const cs_real_t c_weight[],
412  cs_real_3_t *restrict grad,
413  const cs_real_t pvar[],
414  cs_real_3_t rhs[]);
415 
416 /*----------------------------------------------------------------------------*/
427 /*----------------------------------------------------------------------------*/
428 
429 void
431  const cs_internal_coupling_t *cpl,
432  const cs_real_t c_weight[],
433  cs_real_33_t *restrict grad,
434  const cs_real_3_t pvar[],
435  cs_real_33_t rhs[]);
436 
437 /*----------------------------------------------------------------------------*/
448 /*----------------------------------------------------------------------------*/
449 
450 void
452  const cs_internal_coupling_t *cpl,
453  const cs_real_t c_weight[],
454  cs_real_63_t *restrict grad,
455  const cs_real_6_t pvar[],
456  cs_real_63_t rhs[]);
457 
458 /*----------------------------------------------------------------------------*/
467 /*----------------------------------------------------------------------------*/
468 
469 void
471  const cs_internal_coupling_t *cpl,
472  cs_real_3_t *restrict r_grad,
473  cs_real_3_t grad[]);
474 
475 /*----------------------------------------------------------------------------*/
484 /*----------------------------------------------------------------------------*/
485 
486 void
488  const cs_internal_coupling_t *cpl,
489  cs_real_33_t *restrict r_grad,
490  cs_real_33_t grad[]);
491 
492 /*----------------------------------------------------------------------------*/
501 /*----------------------------------------------------------------------------*/
502 
503 void
505  const cs_internal_coupling_t *cpl,
506  cs_real_63_t *restrict r_grad,
507  cs_real_63_t grad[]);
508 
509 /*----------------------------------------------------------------------------
510  * Addition to matrix-vector product in case of internal coupling.
511  *
512  * parameters:
513  * exclude_diag <-- extra diagonal flag
514  * f <-- associated field pointer
515  * x <-- vector x in m * x = y
516  * y <-> vector y in m * x = y
517  *----------------------------------------------------------------------------*/
518 
519 void
521  const cs_field_t *f,
522  const cs_real_t *restrict x,
523  cs_real_t *restrict y);
524 
525 /*----------------------------------------------------------------------------
526  * Add coupling term coordinates to matrix assembler.
527  *
528  * parameters:
529  * coupling_id
530  * r_g_id <-- global row ids (per cell)
531  * ma <-> matrix assembler
532  *----------------------------------------------------------------------------*/
533 
534 void
536  const cs_gnum_t *r_g_id,
538 
539 /*----------------------------------------------------------------------------
540  * Add coupling terms to matrix values assembly.
541  *
542  * parameters:
543  * f <-- associated field
544  * db_size <-- diagonal block size
545  * eb_size <-- extra-diagonal block size
546  * r_g_id <-- global row ids (per cell)
547  * mav <-> matrix values assembler
548  *----------------------------------------------------------------------------*/
549 
550 void
552  cs_lnum_t db_size,
553  cs_lnum_t eb_size,
554  const cs_gnum_t r_g_id[],
556 
557 /*----------------------------------------------------------------------------
558  * Return pointers to coupling components
559  *
560  * parameters:
561  * cpl <-- pointer to coupling entity
562  * n_local --> NULL or pointer to component n_local
563  * faces_local --> NULL or pointer to component faces_local
564  * n_distant --> NULL or pointer to component n_distant
565  * faces_distant --> NULL or pointer to component faces_distant
566  *----------------------------------------------------------------------------*/
567 
568 void
570  cs_lnum_t *n_local,
571  const cs_lnum_t *faces_local[],
572  cs_lnum_t *n_distant,
573  const cs_lnum_t *faces_distant[]);
574 
575 /*----------------------------------------------------------------------------
576  * Log information about a given internal coupling entity
577  *
578  * parameters:
579  * cpl <-- pointer to coupling entity
580  *----------------------------------------------------------------------------*/
581 
582 void
584 
585 /*----------------------------------------------------------------------------
586  * Print informations about all coupling entities
587  *
588  * parameters:
589  * cpl <-- pointer to coupling entity
590  *----------------------------------------------------------------------------*/
591 
592 void
594 
595 /*----------------------------------------------------------------------------
596  * Add preprocessing operations required by coupling volume using given
597  * criteria.
598  *
599  * The volume is separated from the rest of the domain with inserted
600  * boundaries.
601  *
602  * parameters:
603  * mesh <-> pointer to mesh structure to modify
604  *----------------------------------------------------------------------------*/
605 
606 void
608 
609 /*----------------------------------------------------------------------------
610  * Define face to face mappings for internal couplings.
611  *
612  * parameters:
613  * mesh <-> pointer to mesh structure to modify
614  *----------------------------------------------------------------------------*/
615 
616 void
618 
619 /*----------------------------------------------------------------------------
620  * Define coupling entity using given criteria.
621  *
622  * parameters:
623  * f_id <-- id of the field
624  *----------------------------------------------------------------------------*/
625 
626 void
628 
629 /*----------------------------------------------------------------------------*/
639 /*----------------------------------------------------------------------------*/
640 
641 void
643  const cs_internal_coupling_t *cpl,
644  const cs_real_t c_weight[],
645  const cs_real_t pvar[],
646  cs_real_3_t *restrict grad);
647 
648 /*----------------------------------------------------------------------------*/
658 /*----------------------------------------------------------------------------*/
659 
660 void
662  const cs_internal_coupling_t *cpl,
663  const cs_real_t c_weight[],
664  const cs_real_3_t pvar[],
665  cs_real_33_t *restrict grad);
666 
667 
668 /*----------------------------------------------------------------------------*/
678 /*----------------------------------------------------------------------------*/
679 
680 void
682  const cs_internal_coupling_t *cpl,
683  const cs_real_t c_weight[],
684  const cs_real_6_t pvar[],
685  cs_real_63_t *restrict grad);
686 
687 /*----------------------------------------------------------------------------*/
695 /*----------------------------------------------------------------------------*/
696 
697 void
698 cs_ic_field_set_exchcoeff(const int field_id,
699  const cs_real_t *hbnd);
700 
701 /*----------------------------------------------------------------------------*/
711 /*----------------------------------------------------------------------------*/
712 
713 void
714 cs_ic_field_dist_data_by_face_id(const int field_id,
715  int stride,
716  const cs_real_t tab_distant[],
717  cs_real_t tab_local[]);
718 
719 /*----------------------------------------------------------------------------*/
720 
722 
723 #endif /* __CS_INTERNAL_COUPLING_H__ */
cs_real_3_t * offset_vect
Definition: cs_internal_coupling.h:100
void cs_internal_coupling_add(const char criteria_cells[], const char criteria_faces[])
Define coupling volume using given selection criteria.
Definition: cs_internal_coupling.c:1022
char * interior_faces_group_name
Definition: cs_internal_coupling.h:76
void cs_internal_coupling_iterative_tensor_gradient(const cs_internal_coupling_t *cpl, const cs_real_t c_weight[], cs_real_63_t *restrict grad, const cs_real_6_t pvar[], cs_real_63_t rhs[])
Add internal coupling rhs contribution for iterative tensor gradient calculation. ...
Definition: cs_internal_coupling.c:1668
void cs_internal_coupling_lsq_cocg_weighted(const cs_internal_coupling_t *cpl, const cs_real_t *c_weight, cs_real_6_t cocg[])
Definition: cs_internal_coupling.c:2244
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:301
ple_locator_t * locator
Definition: cs_internal_coupling.h:69
#define restrict
Definition: cs_defs.h:142
int n_volume_zones
Definition: cs_internal_coupling.h:81
void cs_internal_coupling_exchange_by_face_id(const cs_internal_coupling_t *cpl, int stride, const cs_real_t tab[], cs_real_t local[])
Exchange variable between groups using face id.
Definition: cs_internal_coupling.c:2458
int cs_internal_coupling_n_couplings(void)
Return number of defined internal couplings.
Definition: cs_internal_coupling.c:1005
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:337
void cs_ic_field_dist_data_by_face_id(const int field_id, int stride, const cs_real_t tab_distant[], cs_real_t tab_local[])
Get distant data using face id at all coupling faces for a given field id.
Definition: cs_internal_coupling.c:3098
Field descriptor.
Definition: cs_field.h:125
void cs_internal_coupling_lsq_cocg_contribution(const cs_internal_coupling_t *cpl, cs_real_6_t cocg[])
Definition: cs_internal_coupling.c:2204
struct _cs_matrix_assembler_values_t cs_matrix_assembler_values_t
Definition: cs_matrix_assembler.h:65
void cs_internal_coupling_add_volume_zone(const cs_zone_t *z)
Define coupling volume using a cs_zone_t. Then, this volume will be separated from the rest of the do...
Definition: cs_internal_coupling.c:1081
Definition: cs_internal_coupling.h:63
#define BEGIN_C_DECLS
Definition: cs_defs.h:510
void cs_internal_coupling_it_cocg_contribution(const cs_internal_coupling_t *cpl, cs_real_33_t cocg[])
Definition: cs_internal_coupling.c:2303
void cs_internal_coupling_matrix_add_values(const cs_field_t *f, cs_lnum_t db_size, cs_lnum_t eb_size, const cs_gnum_t r_g_id[], cs_matrix_assembler_values_t *mav)
Definition: cs_internal_coupling.c:2700
void cs_internal_coupling_preprocess(cs_mesh_t *mesh)
Definition: cs_internal_coupling.c:2976
cs_real_3_t * ci_cj_vect
Definition: cs_internal_coupling.h:97
void cs_internal_coupling_setup(void)
Setup internal coupling related parameters.
Definition: cs_internal_coupling.c:2830
void cs_internal_coupling_iterative_scalar_gradient(const cs_internal_coupling_t *cpl, const cs_real_t c_weight[], cs_real_3_t *restrict grad, const cs_real_t pvar[], cs_real_3_t rhs[])
Add internal coupling rhs contribution for iterative gradient calculation.
Definition: cs_internal_coupling.c:1454
void cs_internal_coupling_finalize(void)
Destruction of all internal coupling related structures.
Definition: cs_internal_coupling.c:2338
void cs_internal_coupling_bcs(int bc_type[])
Impose wall BCs to internal coupled faces if not yet defined.
Definition: cs_internal_coupling.c:1168
void cs_internal_coupling_initialize_tensor_gradient(const cs_internal_coupling_t *cpl, const cs_real_t c_weight[], const cs_real_6_t pvar[], cs_real_63_t *restrict grad)
Add contribution from coupled faces (internal coupling) to initialisation for iterative symmetric ten...
Definition: cs_internal_coupling.c:1366
void cs_internal_coupling_reconstruct_vector_gradient(const cs_internal_coupling_t *cpl, cs_real_33_t *restrict r_grad, cs_real_33_t grad[])
Add internal coupling contribution for reconstruction of the gradient of a vector.
Definition: cs_internal_coupling.c:1832
cs_real_t cs_real_4_t[4]
vector of 4 floating-point values
Definition: cs_defs.h:336
double cs_real_t
Floating-point value.
Definition: cs_defs.h:322
void cs_internal_coupling_add_entity(int f_id)
Definition: cs_internal_coupling.c:3017
cs_lnum_t n_local
Definition: cs_internal_coupling.h:84
void cs_internal_coupling_log(const cs_internal_coupling_t *cpl)
Definition: cs_internal_coupling.c:2903
int id
Definition: cs_internal_coupling.h:66
void cs_internal_coupling_initialize_vector_gradient(const cs_internal_coupling_t *cpl, const cs_real_t c_weight[], const cs_real_3_t pvar[], cs_real_33_t *restrict grad)
Add contribution from coupled faces (internal coupling) to initialisation for iterative vector gradie...
Definition: cs_internal_coupling.c:1280
Definition: cs_mesh.h:84
void cs_internal_coupling_exchange_by_cell_id(const cs_internal_coupling_t *cpl, int stride, const cs_real_t tab[], cs_real_t local[])
Exchange variable between groups using cell id.
Definition: cs_internal_coupling.c:2409
bool * coupled_faces
Definition: cs_internal_coupling.h:91
void cs_internal_coupling_lsq_tensor_gradient(const cs_internal_coupling_t *cpl, const cs_real_t c_weight[], const int w_stride, const cs_real_6_t pvar[], cs_real_63_t rhs[])
Add internal coupling rhs contribution for LSQ gradient calculation.
cs_lnum_t * faces_local
Definition: cs_internal_coupling.h:85
void cs_internal_coupling_add_volume_zones(int n_zones, const int zone_ids[])
Define coupling volume using given cs_zone_t. Then, this volume will be separated from the rest of th...
Definition: cs_internal_coupling.c:1099
cs_lnum_t * faces_distant
Definition: cs_internal_coupling.h:88
void cs_ic_field_set_exchcoeff(const int field_id, const cs_real_t *hbnd)
Update internal coupling coefficients of the field of the given id using given boundary exchange coef...
Definition: cs_internal_coupling.c:3047
cs_real_t * g_weight
Definition: cs_internal_coupling.h:94
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:335
int * volume_zone_ids
Definition: cs_internal_coupling.h:82
char * exterior_faces_group_name
Definition: cs_internal_coupling.h:77
void cs_internal_coupling_add_volume(const char criteria_cells[])
Define coupling volume using given criteria. Then, this volume will be separated from the rest of the...
Definition: cs_internal_coupling.c:1050
void cs_internal_coupling_lsq_vector_gradient(const cs_internal_coupling_t *cpl, const cs_real_t c_weight[], const int w_stride, const cs_real_3_t pvar[], cs_real_33_t rhs[])
Add internal coupling rhs contribution for LSQ gradient calculation.
Definition: cs_internal_coupling.c:2076
void cs_internal_coupling_add_boundary_groups(cs_internal_coupling_t *cpl, const char *interior_name, const char *exterior_name)
Define internal coupling volume boundary group names.
Definition: cs_internal_coupling.c:1144
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:316
void cs_internal_coupling_initialize_scalar_gradient(const cs_internal_coupling_t *cpl, const cs_real_t c_weight[], const cs_real_t pvar[], cs_real_3_t *restrict grad)
Add contribution from coupled faces (internal coupling) to initialisation for iterative scalar gradie...
Definition: cs_internal_coupling.c:1199
char * cells_criteria
Definition: cs_internal_coupling.h:73
#define END_C_DECLS
Definition: cs_defs.h:511
void cs_internal_coupling_map(cs_mesh_t *mesh)
Definition: cs_internal_coupling.c:2997
void cs_internal_coupling_dump(void)
Definition: cs_internal_coupling.c:2949
void cs_internal_coupling_lsq_scalar_gradient(const cs_internal_coupling_t *cpl, const cs_real_t c_weight[], const int w_stride, cs_real_4_t rhsv[])
Add internal coupling rhs contribution for LSQ gradient calculation.
Definition: cs_internal_coupling.c:1954
struct _cs_matrix_assembler_t cs_matrix_assembler_t
Definition: cs_matrix_assembler.h:61
void cs_internal_coupling_initialize(void)
Initialize internal coupling related structures.
Definition: cs_internal_coupling.c:2886
void cs_internal_coupling_exchange_var(const cs_internal_coupling_t *cpl, int stride, cs_real_t distant[], cs_real_t local[])
Exchange quantities from distant to local (update local using distant).
Definition: cs_internal_coupling.c:2383
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:342
void cs_internal_coupling_reconstruct_tensor_gradient(const cs_internal_coupling_t *cpl, cs_real_63_t *restrict r_grad, cs_real_63_t grad[])
Add internal coupling contribution for reconstruction of the gradient of a symmetric tensor...
Definition: cs_internal_coupling.c:1893
cs_real_t cs_real_63_t[6][3]
Definition: cs_defs.h:350
void cs_internal_coupling_spmv_contribution(bool exclude_diag, const cs_field_t *f, const cs_real_t *restrict x, cs_real_t *restrict y)
Definition: cs_internal_coupling.c:2525
int * c_tag
Definition: cs_internal_coupling.h:70
void cs_internal_coupling_iterative_vector_gradient(const cs_internal_coupling_t *cpl, const cs_real_t c_weight[], cs_real_33_t *restrict grad, const cs_real_3_t pvar[], cs_real_33_t rhs[])
Add internal coupling rhs contribution for iterative vector gradient calculation. ...
Definition: cs_internal_coupling.c:1559
void cs_internal_coupling_matrix_add_ids(int coupling_id, const cs_gnum_t *r_g_id, cs_matrix_assembler_t *ma)
Definition: cs_internal_coupling.c:2627
char * faces_criteria
Definition: cs_internal_coupling.h:74
cs_internal_coupling_t * cs_internal_coupling_by_id(int coupling_id)
Return the coupling associated with a given coupling_id.
Definition: cs_internal_coupling.c:2360
cs_lnum_t n_distant
Definition: cs_internal_coupling.h:87
void cs_internal_coupling_coupled_faces(const cs_internal_coupling_t *cpl, cs_lnum_t *n_local, const cs_lnum_t *faces_local[], cs_lnum_t *n_distant, const cs_lnum_t *faces_distant[])
Definition: cs_internal_coupling.c:2498
Definition: mesh.f90:26
Definition: cs_zone.h:55
void cs_internal_coupling_reconstruct_scalar_gradient(const cs_internal_coupling_t *cpl, cs_real_3_t *restrict r_grad, cs_real_3_t grad[])
Add internal coupling contribution for reconstruction of the gradient of a scalar.