My Project
programmer's documentation
|
#include "cs_defs.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <float.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "fvm_io_num.h"
#include "fvm_periodicity.h"
#include "cs_order.h"
#include "cs_search.h"
#include "cs_sort.h"
#include "cs_join_perio.h"
#include "cs_join_post.h"
#include "cs_join_util.h"
#include "cs_mesh_group.h"
Functions | |
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... | |
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.
The group is created if necessary.
[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) |
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.
The group is created if necessary.
[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) |
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.
The group is created if necessary.
[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) |
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.
The group is created if necessary.
[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) |
void cs_mesh_group_clean | ( | cs_mesh_t * | mesh | ) |
Clean mesh group definitions.
[in] | mesh | pointer to mesh structure to modify |
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.
[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) |
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.
The group is created if necessary.
[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) |
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.
The group is created if necessary.
[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) |