#include "cs_base.h"
#include "cs_join_mesh.h"
#include "cs_join_set.h"
#include "cs_join_util.h"
#include "cs_mesh.h"
Go to the source code of this file.
|
void | cs_mesh_group_clean (cs_mesh_t *mesh) |
| Clean mesh group definitions. More...
|
|
void | cs_mesh_group_combine_classes (cs_mesh_t *mesh, cs_lnum_t n_elts, cs_lnum_t gc_id_idx[], int gc_id[], int gc_id_merged[]) |
| Combine mesh group classes. More...
|
|
void | cs_mesh_group_cells_set (cs_mesh_t *mesh, const char *name, cs_lnum_t n_selected_cells, const cs_lnum_t selected_cell_id[]) |
| Assign a given group to cells, removing those entities from previous groups if present. More...
|
|
void | cs_mesh_group_i_faces_set (cs_mesh_t *mesh, const char *name, cs_lnum_t n_selected_faces, const cs_lnum_t selected_face_id[]) |
| Assign a given group to interior faces, removing those entities from previous groups if present. More...
|
|
void | cs_mesh_group_b_faces_set (cs_mesh_t *mesh, const char *name, cs_lnum_t n_selected_faces, const cs_lnum_t selected_face_id[]) |
| Assign a given group to boundary faces, removing those entities from previous groups if present. More...
|
|
void | cs_mesh_group_cells_add (cs_mesh_t *mesh, const char *name, cs_lnum_t n_selected_cells, const cs_lnum_t selected_cell_id[]) |
| Add selected cells to a given group. More...
|
|
void | cs_mesh_group_i_faces_add (cs_mesh_t *mesh, const char *name, cs_lnum_t n_selected_faces, const cs_lnum_t selected_face_id[]) |
| Add selected interior faces to a given group. More...
|
|
void | cs_mesh_group_b_faces_add (cs_mesh_t *mesh, const char *name, cs_lnum_t n_selected_faces, const cs_lnum_t selected_face_id[]) |
| Add selected boundary faces to a given group. More...
|
|
◆ cs_mesh_group_b_faces_add()
Add selected boundary faces to a given group.
The group is created if necessary.
- Parameters
-
[in,out] | mesh | pointer to mesh structure to modify |
[in] | name | group name to assign to selected faces |
[in] | n_selected_faces | number of selected faces |
[in] | selected_face_id | selected face ids (size: n_selected_faces) |
◆ cs_mesh_group_b_faces_set()
Assign a given group to boundary faces, removing those entities from previous groups if present.
The group is created if necessary.
- Parameters
-
[in,out] | mesh | pointer to mesh structure to modify |
[in] | name | group name to assign to selected faces |
[in] | n_selected_faces | number of selected faces |
[in] | selected_face_id | selected face ids (size: n_selected_faces) |
◆ cs_mesh_group_cells_add()
Add selected cells to a given group.
The group is created if necessary.
- Parameters
-
[in,out] | mesh | pointer to mesh structure to modify |
[in] | name | group name to assign to selected cells |
[in] | n_selected_cells | number of selected cells |
[in] | selected_cell_id | selected cell ids (size: n_selected_cells) |
◆ cs_mesh_group_cells_set()
Assign a given group to cells, removing those entities from previous groups if present.
The group is created if necessary.
- Parameters
-
[in,out] | mesh | pointer to mesh structure to modify |
[in] | name | group name to assign to selected cells |
[in] | n_selected_cells | number of selected cells |
[in] | selected_cell_id | selected cell ids (size: n_selected_cells) |
◆ cs_mesh_group_clean()
Clean mesh group definitions.
- Parameters
-
[in] | mesh | pointer to mesh structure to modify |
◆ cs_mesh_group_combine_classes()
Combine mesh group classes.
- Parameters
-
[in,out] | mesh | pointer to mesh structure to modify |
[in] | n_elts | number of local elements |
[in] | gc_id_idx | element group class index (size: n_elts +1) |
[in] | gc_id | input element group classes (size: gc_id_idx[n_elts]) |
[in] | gc_id_merged | output element group classes (size: n_elts) |
- Returns
- array of new element group class ids
◆ cs_mesh_group_i_faces_add()
Add selected interior faces to a given group.
The group is created if necessary.
- Parameters
-
[in,out] | mesh | pointer to mesh structure to modify |
[in] | name | group name to assign to selected faces |
[in] | n_selected_faces | number of selected faces |
[in] | selected_face_id | selected face ids (size: n_selected_faces) |
◆ cs_mesh_group_i_faces_set()
Assign a given group to interior faces, removing those entities from previous groups if present.
The group is created if necessary.
- Parameters
-
[in,out] | mesh | pointer to mesh structure to modify |
[in] | name | group name to assign to selected faces |
[in] | n_selected_faces | number of selected faces |
[in] | selected_face_id | selected face ids (size: n_selected_faces) |