My Project
programmer's documentation
cs_mesh_quantities.h
Go to the documentation of this file.
1 #ifndef __CS_MESH_QUANTITIES_H__
2 #define __CS_MESH_QUANTITIES_H__
3 
4 /*============================================================================
5  * Management of mesh quantities
6  *============================================================================*/
7 
8 /*
9  This file is part of Code_Saturne, a general-purpose CFD tool.
10 
11  Copyright (C) 1998-2019 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_mesh.h"
36 #include "cs_internal_coupling.h"
37 
38 /*----------------------------------------------------------------------------*/
39 
41 
42 /*=============================================================================
43  * Macro definitions
44  *============================================================================*/
45 
52 /*
53  * Cell quantities correction types
54  */
55 
57 #define CS_BAD_CELLS_WARPED_CORRECTION (1 << 0)
58 
60 #define CS_BAD_CELLS_REGULARISATION (1 << 1)
61 
63 #define CS_CELL_FACE_CENTER_CORRECTION (1 << 2)
64 
66 #define CS_CELL_CENTER_CORRECTION (1 << 3)
67 
69 #define CS_FACE_DISTANCE_CLIP (1 << 4)
70 
72 #define CS_FACE_RECONSTRUCTION_CLIP (1 << 5)
73 
75 #define CS_CELL_VOLUME_RATIO_CORRECTION (1 << 6)
76 
80 #define CS_FACE_CENTER_REFINE (1 << 7)
81 
84 /*============================================================================
85  * Type definition
86  *============================================================================*/
87 
88 /* Structure associated to mesh quantities management */
89 
90 typedef struct {
91 
92  cs_real_t *cell_cen; /* Cell center coordinates */
93  cs_real_t *cell_vol; /* Cell volume */
94  cs_real_t *cell_f_vol; /* Cell fluid volume */
95 
96  cs_real_t *i_face_normal; /* Surface normal of interior faces.
97  (L2 norm equals area of the face) */
98  cs_real_t *b_face_normal; /* Surface normal of border faces.
99  (L2 norm equals area of the face) */
100  cs_real_t *i_f_face_normal;/* Fluid Surface normal of interior faces.
101  (L2 norm equals area of the face) */
102  cs_real_t *b_f_face_normal;/* Fluid Surface normal of border faces.
103  (L2 norm equals area of the face) */
104  cs_real_t *i_face_cog; /* Center of gravity of interior faces */
105  cs_real_t *b_face_cog; /* Center of gravity of border faces */
106 
107  cs_real_t *i_face_surf; /* Surface of interior faces. */
108  cs_real_t *b_face_surf; /* Surface of boundary faces. */
109 
110  cs_real_t *i_f_face_surf; /* Fluid surface of interior faces. */
111  cs_real_t *b_f_face_surf; /* Fluid surface of boundary faces. */
112 
113  cs_real_2_t *i_f_face_factor;/* Fluid surface factor of interior faces. */
114  cs_real_t *b_f_face_factor;/* Fluid surface factor of boundary faces. */
115 
116  cs_real_t *dijpf; /* Vector I'J' for interior faces */
117  cs_real_t *diipb; /* Vector II' for border faces */
118  cs_real_t *dofij; /* Vector OF for interior faces */
119  cs_real_t *diipf; /* Vector II' for interior faces */
120  cs_real_t *djjpf; /* Vector JJ' for interior faces */
121 
122  cs_real_t *i_dist; /* Distance between the cell center and
123  the center of gravity of interior faces */
124  cs_real_t *b_dist; /* Distance between the cell center and
125  the center of gravity of border faces */
126 
127  cs_real_t *weight; /* Interior faces weighting factor */
128 
129  cs_real_t min_vol; /* Minimum cell volume */
130  cs_real_t max_vol; /* Maximum cell volume */
131  cs_real_t tot_vol; /* Total volume */
132 
133  cs_real_t min_f_vol; /* Minimum cell volume */
134  cs_real_t max_f_vol; /* Maximum cell volume */
135  cs_real_t tot_f_vol; /* Total volume */
136 
137  cs_real_33_t *cocgb_s_it; /* coupling of gradient components for
138  iterative reconstruction at boundary */
139  cs_real_33_t *cocg_s_it; /* coupling of gradient components for
140  iterative reconstruction */
141  cs_real_33_t *cocgb_s_lsq; /* coupling of gradient components for
142  least-square reconstruction at boundary */
143 
144  cs_real_33_t *cocg_it; /* Interleaved cocg matrix
145  for iterative gradients */
146  cs_real_33_t *cocg_lsq; /* Interleaved cocg matrix
147  for least square gradients */
148 
149  cs_real_t *corr_grad_lin_det; /* Determinant of geometrical matrix
150  linear gradient correction */
151  cs_real_33_t *corr_grad_lin; /* Geometrical matrix
152  linear gradient correction */
153 
154  cs_int_t *b_sym_flag; /* Symmetry flag for boundary faces */
155  int has_disable_flag; /* Is the cell disabled?
156  0: unactivated
157  1: activated */
158  int *c_disable_flag; /* Is the cell disabled?
159  used for fluid solid and porous modelling */
160  unsigned *bad_cell_flag; /* Flag (mask) for bad cells detected */
161 
163 
164 /*============================================================================
165  * Static global variables
166  *============================================================================*/
167 
168 /* Pointer to mesh quantities structure associated to the main mesh */
169 
171 
172 /* Flag (mask) to activate bad cells correction */
173 extern unsigned cs_glob_mesh_quantities_flag;
174 
175 /* Choice of the porous model */
176 extern int cs_glob_porous_model;
177 
178 /*============================================================================
179  * Public function prototypes for API Fortran
180  *============================================================================*/
181 
182 /*----------------------------------------------------------------------------
183  * Set behavior for computing the cocg matrixes for the iterative algo
184  * and for the Least square method for scalar and vector gradients.
185  *
186  * Fortran interface :
187  *
188  * subroutine comcoc (imrgra)
189  * *****************
190  *
191  * integer imrgra : <-- : gradient reconstruction option
192  *----------------------------------------------------------------------------*/
193 
194 void
195 CS_PROCF (comcoc, COMCOC) (const cs_int_t *const imrgra);
196 
197 /*=============================================================================
198  * Public function prototypes
199  *============================================================================*/
200 
201 /*----------------------------------------------------------------------------*/
211 /*----------------------------------------------------------------------------*/
212 
213 int
214 cs_mesh_quantities_cell_cen_choice(int algo_choice);
215 
216 /*----------------------------------------------------------------------------*/
227 /*----------------------------------------------------------------------------*/
228 
229 int
230 cs_mesh_quantities_face_cog_choice(int algo_choice);
231 
232 /*----------------------------------------------------------------------------
233  * Compute cocg for iterative gradient reconstruction for scalars.
234  *
235  * parameters:
236  * gradient_option <-- gradient option (Fortran IMRGRA)
237  *----------------------------------------------------------------------------*/
238 
239 void
240 cs_mesh_quantities_set_cocg_options(int gradient_option);
241 
242 /*----------------------------------------------------------------------------
243  * Compute Fluid volumes and fluid surface in addition to cell volume and surfaces.
244  *
245  * parameters:
246  * porous_model <-- porous model option (> 0 for porosity)
247  *----------------------------------------------------------------------------*/
248 
249 void
250 cs_mesh_quantities_set_porous_model(int porous_model);
251 
252 /*----------------------------------------------------------------------------*/
258 /*----------------------------------------------------------------------------*/
259 
260 void
262 
263 /*----------------------------------------------------------------------------*/
269 /*----------------------------------------------------------------------------*/
270 
273 
274 /*----------------------------------------------------------------------------*/
282 /*----------------------------------------------------------------------------*/
283 
286 
287 /*----------------------------------------------------------------------------*/
293 /*----------------------------------------------------------------------------*/
294 
295 void
297 
298 /*----------------------------------------------------------------------------*/
305 /*----------------------------------------------------------------------------*/
306 
307 void
309  cs_mesh_quantities_t *mesh_quantities);
310 
311 /*----------------------------------------------------------------------------*/
318 /*----------------------------------------------------------------------------*/
319 
320 void
322  cs_mesh_quantities_t *mesh_quantities);
323 
324 /*----------------------------------------------------------------------------
325  * Compute fluid mesh quantities
326  *
327  * parameters:
328  * mesh <-- pointer to a cs_mesh_t structure
329  * mesh_quantities <-> pointer to a cs_mesh_quantities_t structure
330  *----------------------------------------------------------------------------*/
331 
332 void
334  cs_mesh_quantities_t *mesh_quantities);
335 
336 /*----------------------------------------------------------------------------*/
340 /*----------------------------------------------------------------------------*/
341 
342 void
344 
345 /*----------------------------------------------------------------------------
346  * Compute the total, min, and max fluid volumes of cells
347  *
348  * parameters:
349  * mesh <-- pointer to mesh structure
350  * mesh_quantities <-> pointer to a mesh quantities structure
351  *----------------------------------------------------------------------------*/
352 
353 void
355  cs_mesh_quantities_t *mesh_quantities);
356 
357 /*----------------------------------------------------------------------------
358  * Compute fluid section mesh quantities at the initial step
359  *
360  * parameters:
361  * mesh <-- pointer to a cs_mesh_t structure
362  * mesh_quantities <-> pointer to a cs_mesh_quantities_t structure
363  *----------------------------------------------------------------------------*/
364 
365 void
367  cs_mesh_quantities_t *mesh_quantities);
368 
369 /*----------------------------------------------------------------------------
370  * Compute mesh quantities
371  *
372  * parameters:
373  * mesh <-- pointer to a cs_mesh_t structure
374  * mesh_quantities <-> pointer to a cs_mesh_quantities_t structure
375  *----------------------------------------------------------------------------*/
376 
377 void
379  cs_mesh_quantities_t *mesh_quantities);
380 
381 /*----------------------------------------------------------------------------
382  * Compute internal and border face normal.
383  *
384  * parameters:
385  * mesh <-- pointer to a cs_mesh_t structure
386  * p_i_face_normal <-> pointer to the internal face normal array
387  * p_b_face_normal <-> pointer to the border face normal array
388  *----------------------------------------------------------------------------*/
389 
390 void
392  cs_real_t *p_i_face_normal[],
393  cs_real_t *p_b_face_normal[]);
394 
395 /*----------------------------------------------------------------------------
396  * Compute interior face centers and normals.
397  *
398  * The corresponding arrays are allocated by this function, and it is the
399  * caller's responsibility to free them when they are no longer needed.
400  *
401  * parameters:
402  * mesh <-- pointer to a cs_mesh_t structure
403  * p_i_face_cog <-> pointer to the interior face center array
404  * p_i_face_normal <-> pointer to the interior face normal array
405  *----------------------------------------------------------------------------*/
406 
407 void
409  cs_real_t *p_i_face_cog[],
410  cs_real_t *p_i_face_normal[]);
411 
412 /*----------------------------------------------------------------------------
413  * Compute border face centers and normals.
414  *
415  * The corresponding arrays are allocated by this function, and it is the
416  * caller's responsibility to free them when they are no longer needed.
417  *
418  * parameters:
419  * mesh <-- pointer to a cs_mesh_t structure
420  * p_b_face_cog <-> pointer to the border face center array
421  * p_b_face_normal <-> pointer to the border face normal array
422  *----------------------------------------------------------------------------*/
423 
424 void
426  cs_real_t *p_b_face_cog[],
427  cs_real_t *p_b_face_normal[]);
428 
429 /*----------------------------------------------------------------------------*/
449 /*----------------------------------------------------------------------------*/
450 
451 void
453  const cs_real_t i_face_norm[],
454  const cs_real_t i_face_cog[],
455  const cs_real_t b_face_norm[],
456  const cs_real_t b_face_cog[],
457  cs_real_t cell_cen[]);
458 
459 /*----------------------------------------------------------------------------
460  * Compute cell volumes.
461  *
462  * The corresponding array is allocated by this function, and it is the
463  * caller's responsability to free it when they are no longer needed.
464  *
465  * parameters:
466  * mesh <-- pointer to a cs_mesh_t structure
467  *
468  * return:
469  * pointer to newly allocated cell volumes array
470  *----------------------------------------------------------------------------*/
471 
472 cs_real_t *
474 
475 /*----------------------------------------------------------------------------
476  * Check that no negative volumes are present, and exit on error otherwise.
477  *
478  * parameters:
479  * mesh <-- pointer to mesh structure
480  * mesh_quantities <-- pointer to mesh quantities structure
481  * allow_error <-- 1 if errors are allowed, 0 otherwise
482  *----------------------------------------------------------------------------*/
483 
484 void
486  const cs_mesh_quantities_t *mesh_quantities,
487  int allow_error);
488 
489 /*----------------------------------------------------------------------------
490  * Update mesh quantities relative to extended ghost cells when the
491  * neighborhood is reduced.
492  *
493  * parameters:
494  * mesh <-- pointer to a cs_mesh_t structure
495  * mesh_quantities <-> pointer to a cs_mesh_quantities_t structure
496  *----------------------------------------------------------------------------*/
497 
498 void
500  cs_mesh_quantities_t *mesh_quantities);
501 
502 /*----------------------------------------------------------------------------
503  * Return the number of times mesh quantities have been computed.
504  *
505  * returns:
506  * number of times mesh quantities have been computed
507  *----------------------------------------------------------------------------*/
508 
509 int
511 
512 /*----------------------------------------------------------------------------*/
522 /*----------------------------------------------------------------------------*/
523 
524 void
526  const cs_mesh_quantities_t *mq,
527  int n_passes,
528  cs_real_t b_thickness[]);
529 
530 /*----------------------------------------------------------------------------*/
539 /*----------------------------------------------------------------------------*/
540 
541 void
543  const cs_mesh_quantities_t *mq,
544  int n_passes,
545  cs_real_t b_thickness[]);
546 
547 /*----------------------------------------------------------------------------*/
551 /*----------------------------------------------------------------------------*/
552 
553 void
555 
556 /*----------------------------------------------------------------------------
557  * Dump a cs_mesh_quantities_t structure
558  *
559  * parameters:
560  * mesh <-- pointer to a cs_mesh_t structure
561  * mesh_quantities <-- pointer to a cs_mesh_quantities_t structure
562  *----------------------------------------------------------------------------*/
563 
564 void
566  const cs_mesh_quantities_t *mesh_quantities);
567 
568 /*----------------------------------------------------------------------------
569  * Compute 3x3 matrix cocg for the scalar gradient least squares algorithm
570  * adapted for internal coupling.
571  *
572  * parameters:
573  * m <-- mesh
574  * fvq <-> mesh quantities
575  * ce <-> coupling
576  *----------------------------------------------------------------------------*/
577 
578 void
582 
583 /*----------------------------------------------------------------------------
584  * Compute 3x3 matrix cocg for the scalar gradient iterative algorithm
585  * adapted for internal coupling.
586  *
587  * parameters:
588  * m <-- mesh
589  * fvq <-> mesh quantities
590  * ce <-> coupling
591  *----------------------------------------------------------------------------*/
592 
593 void
597 
598 /*----------------------------------------------------------------------------*/
605 /*----------------------------------------------------------------------------*/
606 
607 void
610 
611 /*----------------------------------------------------------------------------*/
612 
614 
615 #endif /* __CS_MESH_QUANTITIES_H__ */
cs_mesh_quantities_t::max_f_vol
cs_real_t max_f_vol
Definition: cs_mesh_quantities.h:134
cs_mesh_quantities_t::corr_grad_lin
cs_real_33_t * corr_grad_lin
Definition: cs_mesh_quantities.h:151
cs_mesh_quantities_b_faces
void cs_mesh_quantities_b_faces(const cs_mesh_t *mesh, cs_real_t *p_b_face_cog[], cs_real_t *p_b_face_normal[])
Definition: cs_mesh_quantities.c:3550
cs_mesh_quantities_t::cocg_it
cs_real_33_t * cocg_it
Definition: cs_mesh_quantities.h:144
cs_mesh_quantities_t::b_sym_flag
cs_int_t * b_sym_flag
Definition: cs_mesh_quantities.h:154
cs_mesh_quantities_t::b_f_face_normal
cs_real_t * b_f_face_normal
Definition: cs_mesh_quantities.h:102
cs_mesh_quantities_compute
void cs_mesh_quantities_compute(const cs_mesh_t *mesh, cs_mesh_quantities_t *mesh_quantities)
Compute mesh quantities.
Definition: cs_mesh_quantities.c:3150
cs_mesh_quantities_t::dijpf
cs_real_t * dijpf
Definition: cs_mesh_quantities.h:116
cs_mesh_quantities_t::max_vol
cs_real_t max_vol
Definition: cs_mesh_quantities.h:130
cs_mesh_quantities_t::dofij
cs_real_t * dofij
Definition: cs_mesh_quantities.h:118
cs_glob_porous_model
int cs_glob_porous_model
cs_mesh_quantities_t::min_f_vol
cs_real_t min_f_vol
Definition: cs_mesh_quantities.h:133
cs_mesh_quantities_sup_vectors
void cs_mesh_quantities_sup_vectors(const cs_mesh_t *mesh, cs_mesh_quantities_t *mesh_quantities)
Definition: cs_mesh_quantities.c:3435
cs_glob_mesh_quantities
cs_mesh_quantities_t * cs_glob_mesh_quantities
cs_mesh_quantities_t::tot_f_vol
cs_real_t tot_f_vol
Definition: cs_mesh_quantities.h:135
cs_real_2_t
cs_real_t cs_real_2_t[2]
vector of 2 floating-point values
Definition: cs_defs.h:314
cs_mesh_quantities_t::b_face_normal
cs_real_t * b_face_normal
Definition: cs_mesh_quantities.h:98
cs_mesh_quantities_t::cocg_lsq
cs_real_33_t * cocg_lsq
Definition: cs_mesh_quantities.h:146
cs_mesh_quantities_i_faces
void cs_mesh_quantities_i_faces(const cs_mesh_t *mesh, cs_real_t *p_i_face_cog[], cs_real_t *p_i_face_normal[])
Definition: cs_mesh_quantities.c:3517
cs_mesh_quantities_face_normal
void cs_mesh_quantities_face_normal(const cs_mesh_t *mesh, cs_real_t *p_i_face_normal[], cs_real_t *p_b_face_normal[])
Definition: cs_mesh_quantities.c:3470
cs_mesh_quantities_t::b_face_cog
cs_real_t * b_face_cog
Definition: cs_mesh_quantities.h:105
END_C_DECLS
#define END_C_DECLS
Definition: cs_defs.h:468
cs_mesh_quantities_t::b_face_surf
cs_real_t * b_face_surf
Definition: cs_mesh_quantities.h:108
cs_mesh_quantities_b_thickness_v
void cs_mesh_quantities_b_thickness_v(const cs_mesh_t *m, const cs_mesh_quantities_t *mq, int n_passes, cs_real_t b_thickness[])
Determine local boundary thickness around each vertex.
Definition: cs_mesh_quantities.c:3847
cs_glob_mesh_quantities_flag
unsigned cs_glob_mesh_quantities_flag
cs_mesh_quantities_log_setup
void cs_mesh_quantities_log_setup(void)
Log mesh quantities options to setup file.
Definition: cs_mesh_quantities.c:3979
cs_compute_cell_cocg_lsq_coupling
void cs_compute_cell_cocg_lsq_coupling(const cs_mesh_t *m, cs_mesh_quantities_t *fvq, cs_internal_coupling_t *ce)
Definition: cs_mesh_quantities.c:4121
cs_mesh_quantities_t::b_f_face_surf
cs_real_t * b_f_face_surf
Definition: cs_mesh_quantities.h:111
cs_real_t
double cs_real_t
Floating-point value.
Definition: cs_defs.h:302
cs_mesh_quantities_cell_volume
cs_real_t * cs_mesh_quantities_cell_volume(const cs_mesh_t *mesh)
Definition: cs_mesh_quantities.c:3721
cs_mesh_quantities_t::b_f_face_factor
cs_real_t * b_f_face_factor
Definition: cs_mesh_quantities.h:114
cs_mesh_quantities_b_thickness_f
void cs_mesh_quantities_b_thickness_f(const cs_mesh_t *m, const cs_mesh_quantities_t *mq, int n_passes, cs_real_t b_thickness[])
Determine local boundary thickness around each boundary face.
Definition: cs_mesh_quantities.c:3937
BEGIN_C_DECLS
#define BEGIN_C_DECLS
Definition: cs_defs.h:467
cs_mesh_quantities_cell_faces_cog
void cs_mesh_quantities_cell_faces_cog(const cs_mesh_t *mesh, const cs_real_t i_face_norm[], const cs_real_t i_face_cog[], const cs_real_t b_face_norm[], const cs_real_t b_face_cog[], cs_real_t cell_cen[])
Compute approximate cells centers as the mean of the given face centers weighted by the associated su...
Definition: cs_mesh_quantities.c:3593
cs_mesh_quantities_t::corr_grad_lin_det
cs_real_t * corr_grad_lin_det
Definition: cs_mesh_quantities.h:149
cs_mesh_quantities_t
Definition: cs_mesh_quantities.h:90
cs_internal_coupling_t
Definition: cs_internal_coupling.h:62
cs_mesh_quantities_compute_count
int cs_mesh_quantities_compute_count(void)
Definition: cs_mesh_quantities.c:3829
mesh
Definition: mesh.f90:26
cs_mesh_quantities_create
cs_mesh_quantities_t * cs_mesh_quantities_create(void)
Create a mesh quantities structure.
Definition: cs_mesh_quantities.c:2803
cs_compute_cell_cocg_it_coupling
void cs_compute_cell_cocg_it_coupling(const cs_mesh_t *m, cs_mesh_quantities_t *fvq, cs_internal_coupling_t *ce)
Definition: cs_mesh_quantities.c:4139
cs_mesh_quantities_t::cell_f_vol
cs_real_t * cell_f_vol
Definition: cs_mesh_quantities.h:94
cs_mesh.h
cs_mesh_quantities_t::i_face_cog
cs_real_t * i_face_cog
Definition: cs_mesh_quantities.h:104
cs_mesh_quantities_t::has_disable_flag
int has_disable_flag
Definition: cs_mesh_quantities.h:155
cs_mesh_quantities_t::i_face_surf
cs_real_t * i_face_surf
Definition: cs_mesh_quantities.h:107
cs_mesh_quantities_t::diipb
cs_real_t * diipb
Definition: cs_mesh_quantities.h:117
cs_mesh_quantities_t::cell_cen
cs_real_t * cell_cen
Definition: cs_mesh_quantities.h:92
imrgra
void const cs_int_t *const const cs_int_t *const const cs_int_t *const imrgra
Definition: cs_convection_diffusion.h:5386
cs_mesh_quantities_t::cocgb_s_lsq
cs_real_33_t * cocgb_s_lsq
Definition: cs_mesh_quantities.h:141
cs_mesh_quantities_t::i_f_face_surf
cs_real_t * i_f_face_surf
Definition: cs_mesh_quantities.h:110
cs_mesh_quantities_t::c_disable_flag
int * c_disable_flag
Definition: cs_mesh_quantities.h:158
cs_mesh_quantities_check_vol
void cs_mesh_quantities_check_vol(const cs_mesh_t *mesh, const cs_mesh_quantities_t *mesh_quantities, int allow_error)
Definition: cs_mesh_quantities.c:3762
cs_mesh_quantities_free_all
void cs_mesh_quantities_free_all(cs_mesh_quantities_t *mq)
Reset a mesh quantities structure to its empty initial state.
Definition: cs_mesh_quantities.c:2876
cs_mesh_init_fluid_sections
void cs_mesh_init_fluid_sections(const cs_mesh_t *mesh, cs_mesh_quantities_t *mesh_quantities)
Definition: cs_mesh_quantities.c:3389
cs_mesh_quantities_t::cocg_s_it
cs_real_33_t * cocg_s_it
Definition: cs_mesh_quantities.h:139
cs_mesh_quantities_cell_cen_choice
int cs_mesh_quantities_cell_cen_choice(int algo_choice)
Query or modification of the option for computing cell centers.
Definition: cs_mesh_quantities.c:2637
cs_mesh_quantities_t::djjpf
cs_real_t * djjpf
Definition: cs_mesh_quantities.h:120
cs_mesh_quantities_t::bad_cell_flag
unsigned * bad_cell_flag
Definition: cs_mesh_quantities.h:160
cs_mesh_quantities_t::weight
cs_real_t * weight
Definition: cs_mesh_quantities.h:127
cs_mesh_quantities_t::diipf
cs_real_t * diipf
Definition: cs_mesh_quantities.h:119
cs_internal_coupling_tag_disable_cells
void cs_internal_coupling_tag_disable_cells(cs_mesh_t *m, cs_mesh_quantities_t *mq)
Tag disabled solid cells for fluid_solid mode.
Definition: cs_internal_coupling.c:2860
cs_mesh_init_fluid_quantities
void cs_mesh_init_fluid_quantities(void)
Init fluid quantities.
Definition: cs_mesh_quantities.c:2787
cs_mesh_quantities_t::cell_vol
cs_real_t * cell_vol
Definition: cs_mesh_quantities.h:93
cs_mesh_quantities_set_has_disable_flag
void cs_mesh_quantities_set_has_disable_flag(int flag)
Set (unset) has_disable_flag.
Definition: cs_mesh_quantities.c:2743
cs_mesh_quantities_face_cog_choice
int cs_mesh_quantities_face_cog_choice(int algo_choice)
Query or modification of the option for computing face centers.
Definition: cs_mesh_quantities.c:2659
cs_mesh_quantities_set_cocg_options
void cs_mesh_quantities_set_cocg_options(int gradient_option)
Definition: cs_mesh_quantities.c:2675
cs_mesh_quantities_compute_preprocess
void cs_mesh_quantities_compute_preprocess(const cs_mesh_t *mesh, cs_mesh_quantities_t *mesh_quantities)
Compute mesh quantities needed for preprocessing.
Definition: cs_mesh_quantities.c:2916
cs_real_33_t
cs_real_t cs_real_33_t[3][3]
3x3 matrix of floating-point values
Definition: cs_defs.h:321
cs_mesh_quantities_t::i_dist
cs_real_t * i_dist
Definition: cs_mesh_quantities.h:122
cs_int_t
int cs_int_t
Fortran-compatible integer.
Definition: cs_defs.h:301
cs_mesh_quantities_destroy
cs_mesh_quantities_t * cs_mesh_quantities_destroy(cs_mesh_quantities_t *mesh_quantities)
Destroy a mesh quantities structure.
Definition: cs_mesh_quantities.c:2858
cs_mesh_quantities_t::cocgb_s_it
cs_real_33_t * cocgb_s_it
Definition: cs_mesh_quantities.h:137
cs_mesh_quantities_t::min_vol
cs_real_t min_vol
Definition: cs_mesh_quantities.h:129
cs_mesh_quantities_set_porous_model
void cs_mesh_quantities_set_porous_model(int porous_model)
Definition: cs_mesh_quantities.c:2730
CS_PROCF
void CS_PROCF(comcoc, COMCOC)(const cs_int_t *const imrgra)
Definition: cs_mesh_quantities.c:2577
cs_mesh_quantities_t::tot_vol
cs_real_t tot_vol
Definition: cs_mesh_quantities.h:131
cs_mesh_quantities_reduce_extended
void cs_mesh_quantities_reduce_extended(const cs_mesh_t *mesh, cs_mesh_quantities_t *mesh_quantities)
Definition: cs_mesh_quantities.c:3814
cs_mesh_quantities_dump
void cs_mesh_quantities_dump(const cs_mesh_t *mesh, const cs_mesh_quantities_t *mesh_quantities)
Definition: cs_mesh_quantities.c:4024
cs_mesh_quantities_t::i_f_face_factor
cs_real_2_t * i_f_face_factor
Definition: cs_mesh_quantities.h:113
cs_mesh_quantities_t::i_face_normal
cs_real_t * i_face_normal
Definition: cs_mesh_quantities.h:96
cs_mesh_quantities_fluid_vol_reductions
void cs_mesh_quantities_fluid_vol_reductions(const cs_mesh_t *mesh, cs_mesh_quantities_t *mesh_quantities)
Definition: cs_mesh_quantities.c:3349
cs_mesh_t
Definition: cs_mesh.h:63
cs_base.h
cs_mesh_quantities_fluid_compute
void cs_mesh_quantities_fluid_compute(const cs_mesh_t *mesh, cs_mesh_quantities_t *mesh_quantities)
Definition: cs_mesh_quantities.c:3333
cs_mesh_quantities_t::b_dist
cs_real_t * b_dist
Definition: cs_mesh_quantities.h:124
cs_mesh_quantities_t::i_f_face_normal
cs_real_t * i_f_face_normal
Definition: cs_mesh_quantities.h:100
cs_internal_coupling.h