7.0
general documentation
cs_mesh.h
Go to the documentation of this file.
1 #ifndef __CS_MESH_H__
2 #define __CS_MESH_H__
3 
4 /*============================================================================
5  * Main structure associated to a mesh
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  * Local headers
32  *----------------------------------------------------------------------------*/
33 
34 #include "cs_defs.h"
35 
36 #include "fvm_group.h"
37 #include "fvm_selector.h"
38 #include "fvm_periodicity.h"
39 
40 #include "cs_base.h"
41 #include "cs_halo.h"
42 #include "cs_interface.h"
43 #include "cs_numbering.h"
44 #include "cs_range_set.h"
45 
46 #include "cs_mesh_builder.h"
47 
48 /*----------------------------------------------------------------------------*/
49 
51 
52 /*=============================================================================
53  * Macro definitions
54  *============================================================================*/
55 
56 /*
57  * Mesh modification type flags
58  */
59 
61 #define CS_MESH_MODIFIED (1 << 0)
62 
64 #define CS_MESH_MODIFIED_BALANCE (1 << 1)
65 
66 /*============================================================================
67  * Type definitions
68  *============================================================================*/
69 
71 /* -------------------- */
72 
73 typedef enum {
74 
80 
82 /* ------------------------- */
83 
84 typedef struct {
85 
86  /* General features */
87 
89  int domain_num;
90  int n_domains;
94  /* Local dimensions */
95 
106  /* Local structures */
107 
119  /* Global dimension */
120 
130  /* Global numbering */
131 
137  /* Periodictity features */
138 
146  /* Parallelism and/or periodic features */
147 
164  /* Re-computable connectivity features */
165 
169  /* Extended neighborhood features */
170 
181  /* Group and family features */
182 
183  int n_groups;
184  int *group_idx;
185  char *group;
189  int *family_item;
190  int *cell_family;
202  /* Refinement features */
203 
204  char *i_face_r_gen;
206  /* Status flags */
207 
216  int verbosity;
217  int modified;
223 } cs_mesh_t;
224 
225 /*============================================================================
226  * Static global variables
227  *============================================================================*/
228 
229 extern cs_mesh_t *cs_glob_mesh; /* Pointer to main mesh structure */
230 
231 /*============================================================================
232  * Public function prototypes for Fortran API
233  *============================================================================*/
234 
235 /*----------------------------------------------------------------------------
236  * Update a scalar array in case of parallelism and/or periodicity.
237  *
238  * Fortran interface:
239  *
240  * subroutine synsca(var)
241  * *****************
242  *
243  * var : <-> : scalar array
244  *----------------------------------------------------------------------------*/
245 
246 void CS_PROCF(synsca, SYNSCA)
247 (
248  cs_real_t var[]
249 );
250 
251 /*----------------------------------------------------------------------------
252  * Update a scalar array in case of parallelism and/or periodicity,
253  * using an extended halo.
254  *
255  * Fortran interface:
256  *
257  * subroutine synsce(var)
258  * *****************
259  *
260  * var : <-> : scalar array
261  *----------------------------------------------------------------------------*/
262 
263 void CS_PROCF(synsce, SYNSCE)
264 (
265  cs_real_t var[]
266 );
267 
268 /*----------------------------------------------------------------------------
269  * Update a vector array in case of parallelism and/or periodicity.
270  *
271  * Fortran interface:
272  *
273  * subroutine synvec(var)
274  * *****************
275  *
276  * var1 : <-> : vector component 1 array
277  * var2 : <-> : vector component 2 array
278  * var3 : <-> : vector component 3 array
279  *----------------------------------------------------------------------------*/
280 
281 void CS_PROCF(synvec, SYNVEC)
282 (
283  cs_real_t var1[],
284  cs_real_t var2[],
285  cs_real_t var3[]
286 );
287 
288 /*----------------------------------------------------------------------------
289  * Update a vector array in case of parallelism and/or periodicity.
290  *
291  * Fortran interface:
292  *
293  * subroutine synvin(var)
294  * *****************
295  *
296  * var : <-> : interleaved vector (of dimension 3)
297  *----------------------------------------------------------------------------*/
298 
299 void CS_PROCF(synvin, SYNVIN)
300 (
301  cs_real_t var[]
302 );
303 
304 /*----------------------------------------------------------------------------
305  * Update a vector array in case of parallelism and/or periodicity,
306  * using an extended halo.
307  *
308  * Fortran interface:
309  *
310  * subroutine synvin(var)
311  * *****************
312  *
313  * var : <-> : interleaved vector (of dimension 3)
314  *----------------------------------------------------------------------------*/
315 
316 void CS_PROCF(synvie, SYNVIE)
317 (
318  cs_real_t var[]
319 );
320 
321 /*----------------------------------------------------------------------------
322  * Update a tensor array in case of parallelism and/or periodicity.
323  *
324  * Fortran interface:
325  *
326  * subroutine synten(var)
327  * *****************
328  *
329  * var11 : <-> : tensor component 11 array
330  * var12 : <-> : tensor component 12 array
331  * var13 : <-> : tensor component 13 array
332  * var21 : <-> : tensor component 21 array
333  * var22 : <-> : tensor component 22 array
334  * var23 : <-> : tensor component 23 array
335  * var31 : <-> : tensor component 31 array
336  * var32 : <-> : tensor component 32 array
337  * var33 : <-> : tensor component 33 array
338  *----------------------------------------------------------------------------*/
339 
340 void CS_PROCF(synten, SYNTEN)
341 (
342  cs_real_t var11[],
343  cs_real_t var12[],
344  cs_real_t var13[],
345  cs_real_t var21[],
346  cs_real_t var22[],
347  cs_real_t var23[],
348  cs_real_t var31[],
349  cs_real_t var32[],
350  cs_real_t var33[]
351 );
352 
353 /*----------------------------------------------------------------------------
354  * Update a tensor array in case of parallelism and/or periodicity.
355  *
356  * Fortran interface:
357  *
358  * subroutine syntin(var)
359  * *****************
360  *
361  * var : <-> : interleaved tensor (of dimension 3x3)
362  *----------------------------------------------------------------------------*/
363 
364 void CS_PROCF(syntin, SYNTIN)
365 (
366  cs_real_t var[]
367 );
368 
369 /*----------------------------------------------------------------------------
370  * Update a symmetric tensor array in case of parallelism and/or periodicity.
371  *
372  * Fortran interface:
373  *
374  * subroutine syntis(var)
375  * *****************
376  *
377  * var : <-> : interleaved symmetric tensor (of dimension 6)
378  *----------------------------------------------------------------------------*/
379 
380 void CS_PROCF(syntis, SYNTIS)
381 (
382  cs_real_t var[]
383 );
384 
385 /*=============================================================================
386  * Public function prototypes
387  *============================================================================*/
388 
389 /*----------------------------------------------------------------------------
390  * Create an empty mesh structure
391  *
392  * returns:
393  * pointer to created mesh structure
394  *----------------------------------------------------------------------------*/
395 
396 cs_mesh_t *
397 cs_mesh_create(void);
398 
399 /*----------------------------------------------------------------------------
400  * Destroy a mesh structure
401  *
402  * mesh <-> pointer to a mesh structure
403  *
404  * returns:
405  * NULL pointer
406  *----------------------------------------------------------------------------*/
407 
408 cs_mesh_t *
410 
411 /*----------------------------------------------------------------------------
412  * Reinitialize mesh structure.
413  *
414  * returns:
415  * pointer to created mesh structure
416  *----------------------------------------------------------------------------*/
417 
418 void
420 
421 /*----------------------------------------------------------------------------
422  * Update (compactify) an array of global numbers.
423  *
424  * parameters:
425  * n_elts <-> number of local elements
426  * elt_gnum <-> global element numbers
427  *
428  * return:
429  * associated global number of elements
430  *----------------------------------------------------------------------------*/
431 
432 cs_gnum_t
434  cs_gnum_t *elt_gnum);
435 
436 /*----------------------------------------------------------------------------
437  * Remove arrays and structures that mey be rebuilt.
438  *
439  * mesh <-> pointer to a mesh structure
440  * free_halos <-- if true, free halos and parallel/periodic interface
441  * structures
442  *----------------------------------------------------------------------------*/
443 
444 void
446  bool free_halos);
447 
448 /*----------------------------------------------------------------------------
449  * Discard free (isolated) faces from a mesh.
450  *
451  * This should always be done before using the mesh for computation.
452  *
453  * parameters:
454  * mesh <-> pointer to mesh structure
455  *----------------------------------------------------------------------------*/
456 
457 void
459 
460 /*----------------------------------------------------------------------------
461  * Discard free (isolated) vertices from a mesh.
462  *
463  * This is recommended before using the mesh for computation.
464  *
465  * parameters:
466  * mesh <-> pointer to mesh structure
467  *----------------------------------------------------------------------------*/
468 
469 void
471 
472 /*----------------------------------------------------------------------------
473  * Generate or update list of mesh boundary cells.
474  *
475  * parameters:
476  * mesh <-> pointer to a cs_mesh_t structure
477  *----------------------------------------------------------------------------*/
478 
479 void
481 
482 /*----------------------------------------------------------------------------
483  * Compute or update mesh structure members that depend on other members,
484  * but whose results may be reused, such as global number of elements
485  * (cells, vertices, interior and boundary faces) and sync cell family.
486  *
487  * parameters:
488  * mesh <-> pointer to a cs_mesh_t structure
489  *----------------------------------------------------------------------------*/
490 
491 void
493 
494 /*----------------------------------------------------------------------------
495  * Creation and initialization of mesh face and vertex interfaces.
496  *
497  * parameters:
498  * mesh <-> pointer to mesh structure
499  * mb <-> pointer to mesh builder (in case of periodicity)
500  *----------------------------------------------------------------------------*/
501 
502 void
504  cs_mesh_builder_t *mb);
505 
506 /*----------------------------------------------------------------------------
507  * Creation and initialization of halo structures.
508  *
509  * Treatment of parallel and/or periodic halos for standard and extended
510  * ghost cells according to halo type requested by global options.
511  *
512  * parameters:
513  * mesh <-> pointer to mesh structure
514  * mb <-> pointer to mesh builder (in case of periodicity)
515  * halo_type <-> type of halo (standard or extended)
516  *----------------------------------------------------------------------------*/
517 
518 void
520  cs_mesh_builder_t *mb,
521  cs_halo_type_t halo_type);
522 
523 /*----------------------------------------------------------------------------
524  * Get the global number of ghost cells.
525  *
526  * parameters:
527  * mesh <-- pointer to a mesh structure
528  *
529  * returns:
530  * Global number of ghost cells
531  *---------------------------------------------------------------------------*/
532 
533 cs_gnum_t
535 
536 /*----------------------------------------------------------------------------
537  * Update a scalar array in case of parallelism and/or periodicity.
538  *
539  * Note: this function is only present so that a C equivalent to the
540  * Fortran wrappers is available. In C code, directly using
541  * cs_halo_sync_var() is preferred.
542  *
543  * parameters:
544  * var <-> scalar array
545  *----------------------------------------------------------------------------*/
546 
547 void
549 
550 /*----------------------------------------------------------------------------
551  * Update a scalar array in case of parallelism and/or periodicity,
552  * using an extended halo.
553  *
554  * Note: this function is only present so that a C equivalent to the
555  * Fortran wrappers is available. In C code, directly using the
556  * cs_halo_sync_var() is preferred.
557  *
558  * parameters:
559  * var <-> scalar array
560  *----------------------------------------------------------------------------*/
561 
562 void
564 
565 /*----------------------------------------------------------------------------
566  * Update a component of a vector for parallelism and/or periodicity,
567  * ignoring periodicity of rotation.
568  *
569  * Note: this function is only present so that a C equivalent to the
570  * Fortran wrappers is available. In C code, directly using the
571  * cs_halo_sync_var() is preferred.
572  *
573  * parameters:
574  * var <-> scalar array
575  *----------------------------------------------------------------------------*/
576 
577 void
579 
580 /*----------------------------------------------------------------------------
581  * Update a vector array in case of parallelism and/or periodicity.
582  *
583  * parameters:
584  * var1 <-> vector component 1 array
585  * var2 <-> vector component 2 array
586  * var3 <-> vector component 3 array
587  *----------------------------------------------------------------------------*/
588 
589 void
591  cs_real_t *var2,
592  cs_real_t *var3);
593 
594 /*----------------------------------------------------------------------------
595  * Update a vector array in case of parallelism and/or periodicity.
596  *
597  * parameters:
598  * var <-> interleaved vector (of dimension 3)
599  *----------------------------------------------------------------------------*/
600 
601 void
603 
604 /*----------------------------------------------------------------------------
605  * Update a vector array in case of parallelism and/or periodicity,
606  * using an extended halo.
607  *
608  * parameters:
609  * var <-> interleaved vector (of dimension 3)
610  *----------------------------------------------------------------------------*/
611 
612 void
614 
615 /*----------------------------------------------------------------------------
616  * Update a components of a vector for parallelism and/or periodicity,
617  * ignoring periodicity of rotation.
618  *
619  * var <-> gradient components (interleaved)
620  *----------------------------------------------------------------------------*/
621 
622 void
624 
625 /*----------------------------------------------------------------------------
626  * Update a diagonal tensor array in case of parallelism and/or periodicity.
627  *
628  * parameters:
629  * var11 <-> diagonal tensor component 11 array
630  * var22 <-> diagonal tensor component 22 array
631  * var33 <-> diagonal tensor component 33 array
632  *----------------------------------------------------------------------------*/
633 
634 void
636  cs_real_t *var22,
637  cs_real_t *var33);
638 
639 /*----------------------------------------------------------------------------
640  * Update a tensor array in case of parallelism and/or periodicity.
641  *
642  * parameters:
643  * var11 <-> tensor component 11 array
644  * var12 <-> tensor component 12 array
645  * var13 <-> tensor component 13 array
646  * var21 <-> tensor component 21 array
647  * var22 <-> tensor component 22 array
648  * var23 <-> tensor component 23 array
649  * var31 <-> tensor component 31 array
650  * var32 <-> tensor component 32 array
651  * var33 <-> tensor component 33 array
652  *----------------------------------------------------------------------------*/
653 
654 void
656  cs_real_t *var12,
657  cs_real_t *var13,
658  cs_real_t *var21,
659  cs_real_t *var22,
660  cs_real_t *var23,
661  cs_real_t *var31,
662  cs_real_t *var32,
663  cs_real_t *var33);
664 
665 /*----------------------------------------------------------------------------
666  * Update a tensor array in case of parallelism and/or periodicity.
667  *
668  * parameters:
669  * var <-> interleaved tensor (of dimension 3x3)
670  *----------------------------------------------------------------------------*/
671 
672 void
674 
675 /*----------------------------------------------------------------------------
676  * Update a symmetric tensor array in case of parallelism and/or periodicity.
677  *
678  * parameters:
679  * var <-> symmetric interleaved tensor (of dimension 6)
680  *----------------------------------------------------------------------------*/
681 
682 void
684 
685 /*----------------------------------------------------------------------------
686  * Order family numbers and remove duplicates
687  *
688  * parameters
689  * mesh <-> pointer to mesh structure
690  *----------------------------------------------------------------------------*/
691 
692 void
694 
695 /*----------------------------------------------------------------------------
696  * Create group classes based on a mesh's family definitions.
697  *
698  * parameters:
699  * mesh <-- pointer to mesh structure
700  *
701  * returns:
702  * pointer to group classes structure based on mesh's family definitions
703  *----------------------------------------------------------------------------*/
704 
707 
708 /*----------------------------------------------------------------------------
709  * Define group classes for a mesh based on its family definitions.
710  *
711  * parameters:
712  * mesh <-> pointer to mesh structure
713  *----------------------------------------------------------------------------*/
714 
715 void
717 
718 /*----------------------------------------------------------------------------
719  * Assign selectors to global mesh.
720  *
721  * Should be called once the mesh is fully built.
722  *----------------------------------------------------------------------------*/
723 
724 void
726 
727 /*----------------------------------------------------------------------------
728  * Update selector and associated structures.
729  *
730  * parameters:
731  * mesh <-> pointer to a mesh structure
732  *----------------------------------------------------------------------------*/
733 
734 void
736 
737 /*----------------------------------------------------------------------------
738  * Get global lists of periodic face couples.
739  *
740  * In parallel, each face couple may appear on only one rank.
741  *
742  * The caller is responsible for freeing the arrays allocated and returned
743  * by this function once they are no onger needed.
744  *
745  * parameters:
746  * mesh <-- pointer to mesh structure
747  * n_perio_face_couples --> global number of periodic couples per
748  * periodicity (size: mesh->n_init_perio)
749  * perio_face_couples --> arrays of global periodic couple face numbers,
750  * for each periodicity
751  *----------------------------------------------------------------------------*/
752 
753 void
755  cs_lnum_t **n_perio_face_couples,
756  cs_gnum_t ***perio_face_couples);
757 
758 /*----------------------------------------------------------------------------
759  * Build global cell numbering array extended to ghost cell values.
760  *
761  * If the blank_perio flag is nonzero, periodic ghost cell numbers
762  * are set to zero instead of the value of the matching cell.
763  *
764  * The caller is responsible for freeing the returned array when it
765  * is no longer useful.
766  *
767  * parameters:
768  * mesh <-- pointer to mesh structure
769  * blank_perio <-- flag to zeroe periodic cell values
770  *----------------------------------------------------------------------------*/
771 
772 cs_gnum_t *
774  int blank_perio);
775 
776 /*----------------------------------------------------------------------------
777  * Mark interior faces with the number of their associated periodic
778  * transform id.
779  *
780  * parameters:
781  * mesh <-- pointer to mesh structure
782  * perio_num --> periodicity number associated with each face, signed for
783  * direct/reverse transform, 0 for non-periodic faces
784  * (size: mesh->n_i_faces)
785  *----------------------------------------------------------------------------*/
786 
787 void
789  int perio_num[]);
790 
791 /*----------------------------------------------------------------------------
792  * Print information on a mesh structure.
793  *
794  * parameters:
795  * mesh <-- pointer to mesh structure.
796  * name <-- associated name.
797  *----------------------------------------------------------------------------*/
798 
799 void
801  const char *name);
802 
803 /*----------------------------------------------------------------------------
804  * Compute global face connectivity size.
805  *
806  * Faces on simple parallel boundaries are counted only once, but periodic
807  * faces are counted twice.
808  *
809  * parameters:
810  * mesh <-- pointer to a cs_mesh_t structure
811  * g_i_face_vertices_size --> global interior face connectivity size, or NULL
812  * g_b_face_vertices_size --> global boundary face connectivity size, or NULL
813  *----------------------------------------------------------------------------*/
814 
815 void
817  cs_gnum_t *g_i_face_vertices_size,
818  cs_gnum_t *g_b_face_vertices_size);
819 
820 /*----------------------------------------------------------------------------
821  * Print statistics about mesh selectors usage to log.
822  *
823  * parameters:
824  * mesh <-- pointer to a mesh structure
825  *----------------------------------------------------------------------------*/
826 
827 void
829 
830 /*----------------------------------------------------------------------------
831  * Dump of a mesh structure.
832  *
833  * parameters:
834  * mesh <-> pointer to mesh structure.
835  *----------------------------------------------------------------------------*/
836 
837 void
838 cs_mesh_dump(const cs_mesh_t *mesh);
839 
840 /*----------------------------------------------------------------------------*/
841 
843 
844 #endif /* __CS_MESH_H__ */
int save_if_modified
Definition: cs_mesh.h:218
unsigned long cs_gnum_t
global mesh entity number
Definition: cs_defs.h:286
cs_gnum_t cs_mesh_compact_gnum(cs_lnum_t n_elts, cs_gnum_t *elt_gnum)
Definition: cs_mesh.c:2374
int n_transforms
Definition: cs_mesh.h:140
void cs_mesh_selector_stats(cs_mesh_t *mesh)
Definition: cs_mesh.c:3879
cs_lnum_t * gcell_vtx_idx
Definition: cs_mesh.h:178
fvm_periodicity_t * periodicity
Definition: cs_mesh.h:144
cs_gnum_t * global_b_face_num
Definition: cs_mesh.h:134
Definition: cs_mesh_builder.h:57
cs_gnum_t * cs_mesh_get_cell_gnum(const cs_mesh_t *mesh, int blank_perio)
Definition: cs_mesh.c:3680
cs_mesh_t * cs_mesh_create(void)
Definition: cs_mesh.c:2122
void cs_mesh_g_face_vertices_sizes(const cs_mesh_t *mesh, cs_gnum_t *g_i_face_vertices_size, cs_gnum_t *g_b_face_vertices_size)
Definition: cs_mesh.c:2579
void cs_mesh_sync_var_vect_ni(cs_real_t *var1, cs_real_t *var2, cs_real_t *var3)
Definition: cs_mesh.c:3405
int * b_face_family
Definition: cs_mesh.h:192
Definition: cs_mesh.h:77
cs_gnum_t n_g_b_faces_all
Definition: cs_mesh.h:211
cs_lnum_t * b_face_vtx_lst
Definition: cs_mesh.h:117
void cs_mesh_init_halo(cs_mesh_t *mesh, cs_mesh_builder_t *mb, cs_halo_type_t halo_type)
Definition: cs_mesh.c:2811
cs_gnum_t n_g_cells
Definition: cs_mesh.h:121
void cs_mesh_sync_var_scal(cs_real_t *var)
Definition: cs_mesh.c:3342
void cs_mesh_sync_var_diag_ni(cs_real_t *var11, cs_real_t *var22, cs_real_t *var33)
Definition: cs_mesh.c:3501
void synvin(cs_real_t var[])
Definition: cs_mesh.c:2008
cs_range_set_t * vtx_range_set
Definition: cs_mesh.h:156
#define BEGIN_C_DECLS
Definition: cs_defs.h:495
void cs_mesh_sync_var_component(cs_real_t *var)
Definition: cs_mesh.c:3384
cs_lnum_t i_face_vtx_connect_size
Definition: cs_mesh.h:101
void cs_mesh_sync_var_tens_ni(cs_real_t *var11, cs_real_t *var12, cs_real_t *var13, cs_real_t *var21, cs_real_t *var22, cs_real_t *var23, cs_real_t *var31, cs_real_t *var32, cs_real_t *var33)
Definition: cs_mesh.c:3535
cs_mesh_t * cs_glob_mesh
cs_interface_set_t * vtx_interfaces
Definition: cs_mesh.h:154
void synvec(cs_real_t var1[], cs_real_t var2[], cs_real_t var3[])
Definition: cs_mesh.c:1987
cs_lnum_t * i_face_vtx_idx
Definition: cs_mesh.h:113
cs_lnum_t * i_face_vtx_lst
Definition: cs_mesh.h:114
cs_lnum_t * b_cells
Definition: cs_mesh.h:167
int * group_idx
Definition: cs_mesh.h:184
cs_gnum_t n_g_b_faces
Definition: cs_mesh.h:123
void cs_mesh_init_selectors(void)
Definition: cs_mesh.c:3280
cs_gnum_t n_g_free_faces
Definition: cs_mesh.h:208
Definition: cs_halo.h:71
char * group
Definition: cs_mesh.h:185
cs_gnum_t n_g_i_c_faces
Definition: cs_mesh.h:126
void cs_mesh_get_perio_faces(const cs_mesh_t *mesh, cs_lnum_t **n_perio_face_couples, cs_gnum_t ***perio_face_couples)
Definition: cs_mesh.c:3628
cs_real_t * vtx_coord
Definition: cs_mesh.h:108
void cs_mesh_dump(const cs_mesh_t *mesh)
Definition: cs_mesh.c:3926
void cs_mesh_clean_families(cs_mesh_t *mesh)
Definition: cs_mesh.c:3097
void cs_mesh_update_b_cells(cs_mesh_t *mesh)
Definition: cs_mesh.c:2669
void cs_mesh_sync_var_vect_no_rotation(cs_real_t *var)
Definition: cs_mesh.c:3478
cs_numbering_t * vtx_numbering
Definition: cs_mesh.h:160
int n_groups
Definition: cs_mesh.h:183
struct _fvm_selector_t fvm_selector_t
Definition: fvm_selector.h:51
char * i_face_r_gen
Definition: cs_mesh.h:204
double cs_real_t
Floating-point value.
Definition: cs_defs.h:307
fvm_selector_t * select_i_faces
Definition: cs_mesh.h:199
cs_gnum_t n_g_vertices
Definition: cs_mesh.h:124
void cs_mesh_free_rebuildable(cs_mesh_t *mesh, bool free_halos)
Definition: cs_mesh.c:2408
Definition: cs_mesh.h:84
fvm_selector_t * select_cells
Definition: cs_mesh.h:198
int * cell_family
Definition: cs_mesh.h:190
cs_gnum_t * global_cell_num
Definition: cs_mesh.h:132
cs_lnum_t n_vertices
Definition: cs_mesh.h:99
cs_lnum_t n_cells
Definition: cs_mesh.h:96
cs_mesh_t * cs_mesh_destroy(cs_mesh_t *mesh)
Definition: cs_mesh.c:2254
int n_init_perio
Definition: cs_mesh.h:139
int domain_num
Definition: cs_mesh.h:89
void syntin(cs_real_t var[])
Definition: cs_mesh.c:2084
cs_gnum_t n_g_i_faces
Definition: cs_mesh.h:122
fvm_group_class_set_t * cs_mesh_create_group_classes(cs_mesh_t *mesh)
Definition: cs_mesh.c:3219
int modified
Definition: cs_mesh.h:217
void synsca(cs_real_t var[])
Definition: cs_mesh.c:1946
int n_families
Definition: cs_mesh.h:187
void cs_mesh_init_interfaces(cs_mesh_t *mesh, cs_mesh_builder_t *mb)
int verbosity
Definition: cs_mesh.h:216
Definition: cs_range_set.h:57
cs_halo_type_t
Definition: cs_halo.h:50
void synvie(cs_real_t var[])
Definition: cs_mesh.c:2028
cs_lnum_t * gcell_vtx_lst
Definition: cs_mesh.h:179
void cs_mesh_sync_var_scal_ext(cs_real_t *var)
Definition: cs_mesh.c:3363
void cs_mesh_reinit(cs_mesh_t *mesh)
Definition: cs_mesh.c:2271
void cs_mesh_get_face_perio_num(const cs_mesh_t *mesh, int perio_num[])
Definition: cs_mesh.c:3757
cs_gnum_t cs_mesh_n_g_ghost_cells(cs_mesh_t *mesh)
Definition: cs_mesh.c:3074
int * i_face_family
Definition: cs_mesh.h:191
struct _cs_interface_set_t cs_interface_set_t
Definition: cs_interface.h:61
cs_lnum_t cs_lnum_2_t[2]
vector of 2 local mesh-entity ids
Definition: cs_defs.h:313
cs_lnum_t n_b_faces_all
Definition: cs_mesh.h:213
void cs_mesh_sync_var_tens(cs_real_t *var)
Definition: cs_mesh.c:3575
void cs_mesh_discard_free_faces(cs_mesh_t *mesh)
Definition: cs_mesh.c:2467
void synsce(cs_real_t var[])
Definition: cs_mesh.c:1966
void cs_mesh_print_info(const cs_mesh_t *mesh, const char *name)
Definition: cs_mesh.c:3801
void synten(cs_real_t var11[], cs_real_t var12[], cs_real_t var13[], cs_real_t var21[], cs_real_t var22[], cs_real_t var23[], cs_real_t var31[], cs_real_t var32[], cs_real_t var33[])
Definition: cs_mesh.c:2055
struct _fvm_periodicity_t fvm_periodicity_t
Definition: fvm_periodicity.h:67
cs_lnum_t dim
Definition: cs_mesh.h:88
void cs_mesh_init_group_classes(cs_mesh_t *mesh)
Definition: cs_mesh.c:3265
Definition: cs_mesh.h:76
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:301
Definition: cs_mesh.h:75
cs_lnum_t n_cells_with_ghosts
Definition: cs_mesh.h:150
cs_lnum_t n_ghost_cells
Definition: cs_mesh.h:152
int * family_item
Definition: cs_mesh.h:189
cs_lnum_t * cell_cells_idx
Definition: cs_mesh.h:171
cs_gnum_t * global_i_face_num
Definition: cs_mesh.h:133
cs_lnum_t * b_face_vtx_idx
Definition: cs_mesh.h:116
#define END_C_DECLS
Definition: cs_defs.h:496
cs_numbering_t * cell_numbering
Definition: cs_mesh.h:159
void cs_mesh_sync_var_vect(cs_real_t *var)
Definition: cs_mesh.c:3431
void syntis(cs_real_t var[])
Definition: cs_mesh.c:2103
cs_numbering_t * b_face_numbering
Definition: cs_mesh.h:162
cs_gnum_t * global_vtx_num
Definition: cs_mesh.h:135
cs_numbering_t * i_face_numbering
Definition: cs_mesh.h:161
#define CS_PROCF(x, y)
Definition: cs_defs.h:509
void cs_mesh_sync_var_vect_ext(cs_real_t *var)
Definition: cs_mesh.c:3455
cs_lnum_t n_b_cells
Definition: cs_mesh.h:166
void cs_mesh_update_selectors(cs_mesh_t *mesh)
Definition: cs_mesh.c:3324
int have_rotation_perio
Definition: cs_mesh.h:142
fvm_group_class_set_t * class_defs
Definition: cs_mesh.h:194
cs_halo_type_t halo_type
Definition: cs_mesh.h:148
struct _fvm_group_class_set_t fvm_group_class_set_t
Definition: fvm_group.h:60
void cs_mesh_discard_free_vertices(cs_mesh_t *mesh)
Definition: cs_mesh.c:2548
cs_mesh_time_dep_t
Definition: cs_mesh.h:73
void cs_mesh_update_auxiliary(cs_mesh_t *mesh)
Definition: cs_mesh.c:2712
cs_lnum_2_t * i_face_cells
Definition: cs_mesh.h:110
int n_max_family_items
Definition: cs_mesh.h:188
cs_mesh_time_dep_t time_dep
Definition: cs_mesh.h:92
int n_domains
Definition: cs_mesh.h:90
cs_lnum_t n_b_faces
Definition: cs_mesh.h:98
cs_lnum_t b_face_vtx_connect_size
Definition: cs_mesh.h:103
cs_lnum_t * cell_cells_lst
Definition: cs_mesh.h:174
Definition: cs_numbering.h:83
fvm_selector_t * select_b_faces
Definition: cs_mesh.h:200
cs_lnum_t n_i_faces
Definition: cs_mesh.h:97
Definition: mesh.f90:26
void cs_mesh_sync_var_sym_tens(cs_real_t *var)
Definition: cs_mesh.c:3597
cs_halo_t * halo
Definition: cs_mesh.h:155
cs_lnum_t * b_face_cells
Definition: cs_mesh.h:111