My Project
programmer's documentation
Functions
cs_mesh_group.c File Reference
#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"
Include dependency graph for cs_mesh_group.c:

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...
 

Function Documentation

◆ cs_mesh_group_b_faces_add()

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.

Parameters
[in,out]meshpointer to mesh structure to modify
[in]namegroup name to assign to selected faces
[in]n_selected_facesnumber of selected faces
[in]selected_face_idselected face ids (size: n_selected_faces)

◆ cs_mesh_group_b_faces_set()

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.

Parameters
[in,out]meshpointer to mesh structure to modify
[in]namegroup name to assign to selected faces
[in]n_selected_facesnumber of selected faces
[in]selected_face_idselected face ids (size: n_selected_faces)

◆ cs_mesh_group_cells_add()

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.

Parameters
[in,out]meshpointer to mesh structure to modify
[in]namegroup name to assign to selected cells
[in]n_selected_cellsnumber of selected cells
[in]selected_cell_idselected cell ids (size: n_selected_cells)

◆ cs_mesh_group_cells_set()

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.

Parameters
[in,out]meshpointer to mesh structure to modify
[in]namegroup name to assign to selected cells
[in]n_selected_cellsnumber of selected cells
[in]selected_cell_idselected cell ids (size: n_selected_cells)

◆ cs_mesh_group_clean()

void cs_mesh_group_clean ( cs_mesh_t mesh)

Clean mesh group definitions.

Parameters
[in]meshpointer to mesh structure to modify

◆ cs_mesh_group_combine_classes()

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.

Parameters
[in,out]meshpointer to mesh structure to modify
[in]n_eltsnumber of local elements
[in]gc_id_idxelement group class index (size: n_elts +1)
[in]gc_idinput element group classes (size: gc_id_idx[n_elts])
[in]gc_id_mergedoutput element group classes (size: n_elts)
Returns
array of new element group class ids

◆ cs_mesh_group_i_faces_add()

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.

Parameters
[in,out]meshpointer to mesh structure to modify
[in]namegroup name to assign to selected faces
[in]n_selected_facesnumber of selected faces
[in]selected_face_idselected face ids (size: n_selected_faces)

◆ cs_mesh_group_i_faces_set()

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.

Parameters
[in,out]meshpointer to mesh structure to modify
[in]namegroup name to assign to selected faces
[in]n_selected_facesnumber of selected faces
[in]selected_face_idselected face ids (size: n_selected_faces)