371 if (z_name != NULL) {
372 if (strlen(z_name) > 0) {
395 if (z_name != NULL) {
396 if (strlen(z_name) > 0) {
420 assert(def->
dim == 1);
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
#define BEGIN_C_DECLS
Definition: cs_defs.h:507
double cs_real_t
Floating-point value.
Definition: cs_defs.h:319
#define END_C_DECLS
Definition: cs_defs.h:508
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:313
unsigned short int cs_flag_t
Definition: cs_defs.h:321
cs_log_t
Definition: cs_log.h:48
void() cs_dof_func_t(cs_lnum_t n_elts, const cs_lnum_t *elt_ids, bool dense_output, void *input, cs_real_t *retval)
Generic function pointer for computing a quantity at predefined locations such as degrees of freedom ...
Definition: cs_param_types.h:154
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 dense_output, void *input, cs_real_t *retval)
Generic function pointer for an evaluation relying on an analytic function.
Definition: cs_param_types.h:127
void() cs_time_func_t(double time, void *input, cs_real_t *retval)
Function which defines the evolution of a quantity according to the current time and any structure gi...
Definition: cs_param_types.h:172
cs_quadrature_type_t
Definition: cs_quadrature.h:52
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_xdef_t * cs_xdef_free(cs_xdef_t *d)
Free a cs_xdef_t structure.
Definition: cs_xdef.c:519
static cs_real_t * cs_xdef_get_array(cs_xdef_t *def)
Retrieve the values associated to the given definition. This should be a definition by array.
Definition: cs_xdef.h:440
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:887
void *() cs_xdef_free_input_t(void *input)
Destroy an input data structure. Complex data structure can be used when a cs_xdef_t structure is def...
Definition: cs_xdef.h:70
const char * cs_xdef_type_get_name(cs_xdef_type_t xdef_type)
Retrieve a pointer to the cs_xdef_type's name string.
static int cs_get_bdy_zone_id(const char *z_name)
Retrieve the boundary zone if from the zone name (If name = NULL or has an empty length,...
Definition: cs_xdef.h:392
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 *context)
Allocate and initialize a new cs_xdef_t structure based on volumic elements.
Definition: cs_xdef.c:115
cs_xdef_type_t cs_xdef_get_type(const cs_xdef_t *d)
Retrieve the flag dedicated to the state.
Definition: cs_xdef.c:906
static int cs_get_vol_zone_id(const char *z_name)
Retrieve the volume zone if from the zone name (If name = NULL or has an empty length,...
Definition: cs_xdef.h:368
cs_xdef_type_t
Definition: cs_xdef.h:108
@ CS_XDEF_BY_ANALYTIC_FUNCTION
Definition: cs_xdef.h:110
@ CS_XDEF_BY_SUB_DEFINITIONS
Definition: cs_xdef.h:116
@ CS_XDEF_BY_ARRAY
Definition: cs_xdef.h:111
@ CS_XDEF_BY_DOF_FUNCTION
Definition: cs_xdef.h:112
@ CS_XDEF_BY_TIME_FUNCTION
Definition: cs_xdef.h:117
@ CS_XDEF_BY_QOV
Definition: cs_xdef.h:115
@ CS_N_XDEF_TYPES
Definition: cs_xdef.h:120
@ CS_XDEF_BY_FUNCTION
Definition: cs_xdef.h:114
@ CS_XDEF_BY_VALUE
Definition: cs_xdef.h:118
@ CS_XDEF_BY_FIELD
Definition: cs_xdef.h:113
void cs_xdef_set_input_context(cs_xdef_t *d, void *input)
In the case of a definition by an analytic function, a time function or a function relying on degrees...
Definition: cs_xdef.c:659
cs_flag_t cs_xdef_get_state_flag(const cs_xdef_t *d)
Retrieve the flag dedicated to the state.
Definition: cs_xdef.c:925
void cs_xdef_log_setup(const char *prefix, const cs_xdef_t *d)
Output the settings related to a cs_xdef_t structure in the setup logging file.
Definition: cs_xdef.c:944
cs_xdef_t * cs_xdef_timestep_create(cs_xdef_type_t type, cs_flag_t state, cs_flag_t meta, void *context)
Allocate and initialize a new cs_xdef_t structure for setting the time step.
Definition: cs_xdef.c:449
cs_xdef_support_t
Definition: cs_xdef.h:138
@ CS_XDEF_SUPPORT_BOUNDARY
Definition: cs_xdef.h:141
@ CS_XDEF_SUPPORT_VOLUME
Definition: cs_xdef.h:142
@ CS_XDEF_SUPPORT_TIME
Definition: cs_xdef.h:140
@ CS_N_XDEF_SUPPORTS
Definition: cs_xdef.h:144
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 *context)
Allocate and initialize a new cs_xdef_t structure based on boundary elements.
Definition: cs_xdef.c:290
static cs_real_t cs_xdef_get_scalar_value(cs_xdef_t *def)
Retrieve the value associated to the given definition. This should be a definition by value and the d...
Definition: cs_xdef.h:417
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:771
void cs_xdef_log(cs_log_t log_type, const char *prefix, const cs_xdef_t *d)
Output the settings related to a cs_xdef_t structure.
Definition: cs_xdef.c:961
void cs_xdef_set_free_input_function(cs_xdef_t *d, cs_xdef_free_input_t *free_input)
In case of a definition by an analytic function, a time function or a function relying on degrees of ...
Definition: cs_xdef.c:716
cs_xdef_t * cs_xdef_copy(cs_xdef_t *src)
copy a cs_xdef_t structure
Definition: cs_xdef.c:598
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:866
void cs_xdef_set_array_pointers(cs_xdef_t *d, const cs_lnum_t *index, const cs_lnum_t *ids)
In case of definition by array, set the optional index and ids arrays that may be useful when operati...
Definition: cs_xdef.c:837
void cs_xdef_set_array_zone_id(cs_xdef_t *d, int z_id)
In case of definition by array, set the zone id related to the size of the array. By default,...
Definition: cs_xdef.c:809
Context structure when a definition by analytic function is used.
Definition: cs_xdef.h:255
cs_xdef_free_input_t * free_input
Definition: cs_xdef.h:280
cs_analytic_func_t * func
Definition: cs_xdef.h:267
void * input
Definition: cs_xdef.h:274
int z_id
Definition: cs_xdef.h:261
Context structure when an array is used for the definition.
Definition: cs_xdef.h:207
const cs_lnum_t * ids
Definition: cs_xdef.h:246
const cs_lnum_t * index
Definition: cs_xdef.h:245
cs_real_t * values
Definition: cs_xdef.h:242
bool is_owner
Definition: cs_xdef.h:243
int z_id
Definition: cs_xdef.h:239
cs_flag_t loc
Definition: cs_xdef.h:241
int stride
Definition: cs_xdef.h:240
Context structure when a definition by DoF function is used.
Definition: cs_xdef.h:289
cs_xdef_free_input_t * free_input
Definition: cs_xdef.h:320
cs_dof_func_t * func
Definition: cs_xdef.h:308
void * input
Definition: cs_xdef.h:314
int z_id
Definition: cs_xdef.h:295
cs_flag_t loc
Definition: cs_xdef.h:302
Structure storing medata for defining a quantity in a very flexible way.
Definition: cs_xdef.h:154
void * context
Definition: cs_xdef.h:198
cs_quadrature_type_t qtype
Definition: cs_xdef.h:196
cs_flag_t meta
Definition: cs_xdef.h:194
cs_xdef_type_t type
Definition: cs_xdef.h:189
cs_xdef_support_t support
Definition: cs_xdef.h:191
int z_id
Definition: cs_xdef.h:190
cs_flag_t state
Definition: cs_xdef.h:193
int dim
Definition: cs_xdef.h:188
Context structure when a time step function is used for the definition.
Definition: cs_xdef.h:329
cs_xdef_free_input_t * free_input
Definition: cs_xdef.h:348
cs_time_func_t * func
Definition: cs_xdef.h:335
void * input
Definition: cs_xdef.h:342
int id
Definition: cs_zone.h:59