301 cs_get_vol_zone_id(
const char *z_name)
304 if (z_name != NULL) {
305 if (strlen(z_name) > 0) {
325 cs_get_bdy_zone_id(
const char *z_name)
328 if (z_name != NULL) {
329 if (strlen(z_name) > 0) {
353 assert(def->
dim == 1);
void cs_xdef_set_array_index(cs_xdef_t *d, cs_lnum_t *array_index)
In case of definition by array, set the index to get access to the array values.
Definition: cs_xdef.c:566
cs_quadrature_type_t cs_xdef_get_quadrature(cs_xdef_t *d)
Get the type of quadrature to use for evaluating the given description.
Definition: cs_xdef.c:614
cs_xdef_t * cs_xdef_free(cs_xdef_t *d)
Free a cs_xdef_t structure.
Definition: cs_xdef.c:437
Definition: cs_xdef.h:100
const cs_zone_t * cs_boundary_zone_by_name(const char *name)
Return a pointer to a boundary zone based on its name if present.
Definition: cs_boundary_zone.c:726
cs_xdef_t * cs_xdef_volume_create(cs_xdef_type_t type, int dim, int z_id, cs_flag_t state, cs_flag_t meta, void *input)
Allocate and initialize a new cs_xdef_t structure based on volumic elements.
Definition: cs_xdef.c:92
int id
Definition: cs_zone.h:59
Definition: cs_xdef.h:122
#define BEGIN_C_DECLS
Definition: cs_defs.h:495
void cs_xdef_log(const char *prefix, const cs_xdef_t *d)
Output the settings related to a cs_xdef_t structure.
Definition: cs_xdef.c:670
const cs_zone_t * cs_volume_zone_by_name(const char *name)
Return a pointer to a volume zone based on its name if present.
Definition: cs_volume_zone.c:695
cs_flag_t state
Definition: cs_xdef.h:175
cs_xdef_type_t cs_xdef_get_type(const cs_xdef_t *d)
Retrieve the flag dedicated to the state.
Definition: cs_xdef.c:633
Definition: cs_xdef.h:124
cs_xdef_t * cs_xdef_copy(cs_xdef_t *src)
copy a cs_xdef_t structure
Definition: cs_xdef.c:473
void cs_xdef_set_array(cs_xdef_t *d, bool is_owner, cs_real_t *array)
In case of definition by array, set the array after having added this definition. ...
Definition: cs_xdef.c:532
cs_xdef_t * cs_xdef_boundary_create(cs_xdef_type_t type, int dim, int z_id, cs_flag_t state, cs_flag_t meta, void *input)
Allocate and initialize a new cs_xdef_t structure based on boundary elements.
Definition: cs_xdef.c:249
cs_flag_t cs_xdef_get_state_flag(const cs_xdef_t *d)
Retrieve the flag dedicated to the state.
Definition: cs_xdef.c:652
double cs_real_t
Floating-point value.
Definition: cs_defs.h:307
int dim
Definition: cs_xdef.h:170
cs_xdef_type_t type
Definition: cs_xdef.h:171
void * input
Definition: cs_xdef.h:180
cs_xdef_support_t
Definition: cs_xdef.h:120
cs_quadrature_type_t
Definition: cs_quadrature.h:52
void cs_xdef_set_quadrature(cs_xdef_t *d, cs_quadrature_type_t qtype)
Set the type of quadrature to use for evaluating the given description.
Definition: cs_xdef.c:593
void() cs_analytic_func_t(cs_real_t time, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, const cs_real_t *coords, bool compact, void *input, cs_real_t *retval)
Generic function pointer for an analytic function elt_ids is optional. If not NULL, it enables to access in coords at the right location and the same thing to fill retval if compact is set to false.
Definition: cs_param_types.h:93
void() cs_dof_func_t(cs_lnum_t n_elts, const cs_lnum_t *elt_ids, bool compact, void *input, cs_real_t *retval)
Generic function pointer for defining a quantity at known locations (cells, faces, edges or vertices) with a function. elt_ids is optional. If not NULL, the function works on a sub-list of elements. Moreover, it enables to fill retval with an indirection if compact is set to false.
Definition: cs_param_types.h:118
cs_quadrature_type_t qtype
Definition: cs_xdef.h:178
void() cs_time_func_t(int time_iter, double time, void *input, cs_real_t *retval)
Function which defines the evolution of a quantity according to the number of iteration already done...
Definition: cs_param_types.h:138
cs_xdef_type_t
Definition: cs_xdef.h:90
cs_xdef_t * cs_xdef_timestep_create(cs_xdef_type_t type, cs_flag_t state, cs_flag_t meta, void *input)
Allocate and initialize a new cs_xdef_t structure for setting the time step.
Definition: cs_xdef.c:374
Structure storing medata for defining a quantity in a very flexible way.
Definition: cs_xdef.h:136
Definition: cs_xdef.h:126
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:301
cs_xdef_support_t support
Definition: cs_xdef.h:173
#define END_C_DECLS
Definition: cs_defs.h:496
unsigned short int cs_flag_t
Definition: cs_defs.h:309
cs_flag_t meta
Definition: cs_xdef.h:176
int z_id
Definition: cs_xdef.h:172
Definition: cs_xdef.h:102
Definition: cs_xdef.h:123