1#ifndef __CS_MESH_LOCATION_H__
2#define __CS_MESH_LOCATION_H__
211 const char *criteria);
466 bool explicit_elt_ids);
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
#define END_C_DECLS
Definition: cs_defs.h:543
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:335
int cs_mesh_location_get_n_sub_ids(int id)
Get a mesh location's number of sub ids.
Definition: cs_mesh_location.cpp:984
const char * cs_mesh_location_type_name[]
void cs_mesh_location_build(cs_mesh_t *mesh, int id)
Associate mesh locations with a mesh.
Definition: cs_mesh_location.cpp:528
cs_mesh_location_type_t
Definition: cs_mesh_location.h:60
@ CS_MESH_LOCATION_CELLS
Definition: cs_mesh_location.h:63
@ CS_MESH_LOCATION_EDGES
Definition: cs_mesh_location.h:68
@ CS_MESH_LOCATION_PARTICLES
Definition: cs_mesh_location.h:69
@ CS_MESH_LOCATION_OTHER
Definition: cs_mesh_location.h:70
@ CS_MESH_LOCATION_INTERIOR_FACES
Definition: cs_mesh_location.h:64
@ CS_MESH_LOCATION_VERTICES
Definition: cs_mesh_location.h:66
@ CS_MESH_LOCATION_BOUNDARY_FACES
Definition: cs_mesh_location.h:65
@ CS_MESH_LOCATION_FACES
Definition: cs_mesh_location.h:67
@ CS_MESH_LOCATION_NONE
Definition: cs_mesh_location.h:62
void cs_mesh_location_set_explicit_ids(int id, bool explicit_elt_ids)
Set behavior of cs_mesh_location_get_elt_ids for a given mesh location and locations based on it.
Definition: cs_mesh_location.cpp:1060
int cs_mesh_location_add(const char *name, cs_mesh_location_type_t type, const char *criteria)
Define a new mesh location.
Definition: cs_mesh_location.cpp:666
cs_mesh_location_def_t cs_mesh_location_get_definition_method(int id)
Get a mesh location's definition method.
Definition: cs_mesh_location.cpp:920
int cs_mesh_location_get_id_by_name(const char *ref_name)
Find the related location id from the location name.
Definition: cs_mesh_location.cpp:766
bool cs_mesh_location_is_complement(int id)
Check if a mesh location is built as a complement of other mesh locations.
Definition: cs_mesh_location.cpp:1023
bool cs_mesh_location_get_explicit_ids(int id)
Check if cs_mesh_location_get_elt_ids always returns explicit element ids for a given mesh location.
Definition: cs_mesh_location.cpp:1043
cs_mesh_location_select_t * cs_mesh_location_get_selection_function(int id)
Get a mesh location's selection function pointer.
Definition: cs_mesh_location.cpp:966
int cs_mesh_location_add_by_func(const char *name, cs_mesh_location_type_t type, cs_mesh_location_select_t *func, void *input)
Define a new mesh location with an associated selection function.
Definition: cs_mesh_location.cpp:703
const cs_lnum_t * cs_mesh_location_get_n_elts(int id)
Get a mesh location's number of elements.
Definition: cs_mesh_location.cpp:823
const char * cs_mesh_location_get_name(int id)
Get a mesh location's name.
Definition: cs_mesh_location.cpp:782
const char * cs_mesh_location_get_selection_string(int id)
Get a mesh location's selection criteria string.
Definition: cs_mesh_location.cpp:948
int cs_mesh_location_add_by_union(const char *name, cs_mesh_location_type_t type, int n_ml_ids, const int *ml_ids, bool complement)
Define a new mesh location.
Definition: cs_mesh_location.cpp:735
int cs_mesh_location_n_locations(void)
Return number of mesh locations defined.
Definition: cs_mesh_location.cpp:435
const cs_lnum_t * cs_mesh_location_get_elt_ids(int id)
Get a mesh location's element ids.
Definition: cs_mesh_location.cpp:891
cs_mesh_location_def_t
Definition: cs_mesh_location.h:76
@ CS_MESH_LOCATION_DEF_NONE
Definition: cs_mesh_location.h:78
@ CS_MESH_LOCATION_DEF_SELECTION_FUNC
Definition: cs_mesh_location.h:80
@ CS_MESH_LOCATION_DEF_UNION
Definition: cs_mesh_location.h:81
@ CS_MESH_LOCATION_DEF_SELECTION_STR
Definition: cs_mesh_location.h:79
void cs_mesh_location_initialize(void)
Initialize mesh location API.
Definition: cs_mesh_location.cpp:458
int * cs_mesh_location_get_sub_ids(int id)
Get a mesh location's list of sub ids.
Definition: cs_mesh_location.cpp:1003
cs_mesh_location_type_t cs_mesh_location_get_type(int id)
Get a mesh location's type.
Definition: cs_mesh_location.cpp:800
void cs_mesh_location_finalize(void)
Finalize mesh location API.
Definition: cs_mesh_location.cpp:490
const cs_lnum_t * cs_mesh_location_get_elt_ids_try(int id)
Get a mesh location's element ids, if present.
Definition: cs_mesh_location.cpp:869
void() cs_mesh_location_select_t(void *input, const cs_mesh_t *m, int location_id, cs_lnum_t *n_elts, cs_lnum_t **elt_ids)
Definition: cs_mesh_location.h:110
struct _cs_mesh_location_t cs_mesh_location_t
Definition: cs_mesh_location.h:87
const cs_lnum_t * cs_mesh_location_get_elt_list(int id)
Get a mesh location's elements list, if present.
Definition: cs_mesh_location.cpp:847