My Project
programmer's documentation
Functions
cs_selector.c File Reference
#include "cs_defs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include "bft_mem_usage.h"
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "fvm_selector.h"
#include "cs_halo.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_selector.h"
Include dependency graph for cs_selector.c:

Functions

void cs_selector_get_b_face_num_list (const char *criteria, cs_lnum_t *n_b_faces, cs_lnum_t b_face_num_list[])
 
void cs_selector_get_i_face_num_list (const char *criteria, cs_lnum_t *n_i_faces, cs_lnum_t i_face_num_list[])
 
void cs_selector_get_cell_num_list (const char *criteria, cs_lnum_t *n_cells, cs_lnum_t cell_num_list[])
 
void cs_selector_get_b_face_list (const char *criteria, cs_lnum_t *n_b_faces, cs_lnum_t b_face_list[])
 Fill a list of boundary faces verifying a given selection criteria. More...
 
void cs_selector_get_i_face_list (const char *criteria, cs_lnum_t *n_i_faces, cs_lnum_t i_face_list[])
 Fill a list of interior faces verifying a given selection criteria. More...
 
void cs_selector_get_cell_list (const char *criteria, cs_lnum_t *n_cells, cs_lnum_t cell_list[])
 Fill a list of cells verifying a given selection criteria. More...
 
void cs_selector_get_cell_vertices_list (const char *criteria, cs_lnum_t *n_vertices, cs_lnum_t vtx_ids[])
 Fill a list of cells verifying a given selection criteria. More...
 
void cs_selector_get_cell_vertices_list_by_ids (cs_lnum_t n_cells, const cs_lnum_t cell_ids[], cs_lnum_t *n_vertices, cs_lnum_t vtx_ids[])
 Fill a list of vertices belonging to a given list of cells. More...
 
void cs_selector_get_cells_boundary (const char *criteria, cs_lnum_t *n_i_faces, cs_lnum_t *n_b_faces, cs_lnum_t i_face_id[], cs_lnum_t b_face_id[])
 Fill lists of faces at the boundary of a set of cells verifying a given selection criteria. More...
 
void cs_selector_get_perio_face_list (int perio_num, cs_lnum_t *n_i_faces, cs_lnum_t i_face_id[])
 Fill a list of interior faces belonging to a given periodicity. More...
 
void cs_selector_get_family_list (const char *criteria, cs_lnum_t *n_families, cs_int_t family_list[])
 Fill a list of families verifying a given selection criteria. More...
 

Function Documentation

◆ cs_selector_get_b_face_list()

void cs_selector_get_b_face_list ( const char *  criteria,
cs_lnum_t n_b_faces,
cs_lnum_t  b_face_list[] 
)

Fill a list of boundary faces verifying a given selection criteria.

Parameters
[in]criteriaselection criteria string
[out]n_i_facesnumber of selected boundary faces
[out]cell_listlist of selected boundary faces (0 to n-1, preallocated to cs_glob_mesh->n_b_faces)

◆ cs_selector_get_b_face_num_list()

void cs_selector_get_b_face_num_list ( const char *  criteria,
cs_lnum_t n_b_faces,
cs_lnum_t  b_face_num_list[] 
)

◆ cs_selector_get_cell_list()

void cs_selector_get_cell_list ( const char *  criteria,
cs_lnum_t n_cells,
cs_lnum_t  cell_list[] 
)

Fill a list of cells verifying a given selection criteria.

Parameters
[in]criteriaselection criteria string
[out]n_cellsnumber of selected cells
[out]cell_listlist of selected cells (0 to n-1, preallocated to cs_glob_mesh->n_cells)

◆ cs_selector_get_cell_num_list()

void cs_selector_get_cell_num_list ( const char *  criteria,
cs_lnum_t n_cells,
cs_lnum_t  cell_num_list[] 
)

◆ cs_selector_get_cell_vertices_list()

void cs_selector_get_cell_vertices_list ( const char *  criteria,
cs_lnum_t n_vertices,
cs_lnum_t  vtx_ids[] 
)

Fill a list of cells verifying a given selection criteria.

Parameters
[in]criteriaselection criteria string
[out]n_verticesnumber of selected vertices
[out]vtx_idslist of selected vertices (0 to n-1, preallocated to cs_glob_mesh->n_vertices)

◆ cs_selector_get_cell_vertices_list_by_ids()

void cs_selector_get_cell_vertices_list_by_ids ( cs_lnum_t  n_cells,
const cs_lnum_t  cell_ids[],
cs_lnum_t n_vertices,
cs_lnum_t  vtx_ids[] 
)

Fill a list of vertices belonging to a given list of cells.

Parameters
[in]criteriaselection criteria string
[out]n_verticesnumber of selected vertices
[out]vtx_idslist of selected vertices (0 to n-1, preallocated to cs_glob_mesh->n_vertices)

◆ cs_selector_get_cells_boundary()

void cs_selector_get_cells_boundary ( const char *  criteria,
cs_lnum_t n_i_faces,
cs_lnum_t n_b_faces,
cs_lnum_t  i_face_id[],
cs_lnum_t  b_face_id[] 
)

Fill lists of faces at the boundary of a set of cells verifying a given selection criteria.

Parameters
[in]criteriaselection criteria string
[out]n_i_facesnumber of selected interior faces
[out]n_b_facesnumber of selected boundary faces
[out]i_face_idlist of selected interior faces (0 to n-1, preallocated to cs_glob_mesh->n_i_faces)
[out]b_face_idlist of selected boundary faces (0 to n-1, preallocated to cs_glob_mesh->n_b_faces)

◆ cs_selector_get_family_list()

void cs_selector_get_family_list ( const char *  criteria,
cs_lnum_t n_families,
cs_int_t  family_list[] 
)

Fill a list of families verifying a given selection criteria.

Parameters
[in]criteriaselection criteria string
[out]n_familiesnumber of selected families
[out]family_listlist of selected families faces (0 to n-1, preallocated to cs_glob_mesh->n_families + 1)

◆ cs_selector_get_i_face_list()

void cs_selector_get_i_face_list ( const char *  criteria,
cs_lnum_t n_i_faces,
cs_lnum_t  i_face_list[] 
)

Fill a list of interior faces verifying a given selection criteria.

Parameters
[in]criteriaselection criteria string
[out]n_i_facesnumber of selected interior faces
[out]cell_listlist of selected interior faces (0 to n-1, preallocated to cs_glob_mesh->n_i_faces)

◆ cs_selector_get_i_face_num_list()

void cs_selector_get_i_face_num_list ( const char *  criteria,
cs_lnum_t n_i_faces,
cs_lnum_t  i_face_num_list[] 
)

◆ cs_selector_get_perio_face_list()

void cs_selector_get_perio_face_list ( int  perio_num,
cs_lnum_t n_i_faces,
cs_lnum_t  i_face_id[] 
)

Fill a list of interior faces belonging to a given periodicity.

Parameters
[in]perio_numperiodicity number
[out]n_i_facesnumber of selected interior faces
[out]i_face_idlist of selected interior faces (0 to n-1, preallocated to cs_glob_mesh->n_i_faces)