1 #ifndef __CS_FUNCTION_H__
2 #define __CS_FUNCTION_H__
62 #define CS_FUNCTION_INTENSIVE (1 << 0)
65 #define CS_FUNCTION_EXTENSIVE (1 << 1)
68 #define CS_FUNCTION_TIME_INDEPENDENT (1 << 2)
71 #define CS_FUNCTION_USER (1 << 3)
74 #define CS_FUNCTION_NO_MPI_CALL (1 << 4)
77 #define CS_FUNCTION_NO_SUB_TASK (1 << 5)
cs_datatype_t
Definition: cs_defs.h:272
#define BEGIN_C_DECLS
Definition: cs_defs.h:514
#define END_C_DECLS
Definition: cs_defs.h:515
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:313
cs_function_t * cs_function_define_by_func(const char *name, int location_id, int dim, bool is_intensive, cs_datatype_t datatype, cs_eval_at_location_t *data_func, void *data_input)
Define a function whose data values will be computed using the provided evaluation function.
Definition: cs_function.c:303
void() cs_eval_at_location_t(int location_id, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, void *input, void *vals)
Function pointer for evaluation of local function values.
Definition: cs_function.h:112
cs_function_t * cs_function_define_by_analytic_func(const char *name, int location_id, int dim, bool is_intensive, cs_analytic_func_t *data_func, void *data_input)
Define a function whose data values will be computed using the provided "degree of freedom" type eval...
Definition: cs_function.c:346
cs_function_t * cs_function_by_name_try(const char *name)
Return a pointer to a function object based on its name if present.
Definition: cs_function.c:511
void cs_function_set_label(cs_function_t *f, const char *label)
Assig a label to a function object.
Definition: cs_function.c:531
cs_function_t * cs_function_by_name(const char *name)
Return a pointer to a function object based on its name.
Definition: cs_function.c:485
void cs_function_log_defs(void)
Log function definition setup information.
Definition: cs_function.c:545
void cs_function_evaluate(const cs_function_t *f, const cs_time_step_t *ts, int location_id, cs_lnum_t n_elts, const cs_lnum_t *elt_ids, void *vals)
Evaluate function values.
Definition: cs_function.c:787
void cs_function_log_all_settings(void)
Print info relative to all given function object settings to log file.
Definition: cs_function.c:693
cs_function_t * cs_function_define_by_dof_func(const char *name, int location_id, int dim, bool is_intensive, cs_dof_func_t *data_func, void *data_input)
Define a function whose data values will be computed using the provided "degree of freedom" type eval...
Definition: cs_function.c:388
cs_function_t * cs_function_by_id(int id)
Return a pointer to a function object based on its id.
Definition: cs_function.c:461
int cs_function_n_functions(void)
Return the number of defined functions.
Definition: cs_function.c:443
void cs_function_destroy_all(void)
Destroy all functions management metadata.
Definition: cs_function.c:414
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
cs_restart_file_t
Definition: cs_restart_default.h:54
char * label
Definition: keywords.h:58
Definition: cs_function.h:121
cs_dof_func_t * dof_func
Definition: cs_function.h:157
const cs_datatype_t datatype
Definition: cs_function.h:135
int log
Definition: cs_function.h:141
cs_eval_at_location_t * eval_func
Definition: cs_function.h:153
const int id
Definition: cs_function.h:127
int post_vis
Definition: cs_function.h:137
const char * name
Definition: cs_function.h:123
cs_restart_file_t restart_file
Definition: cs_function.h:148
int type
Definition: cs_function.h:128
char * label
Definition: cs_function.h:124
const int location_id
Definition: cs_function.h:133
int time_stamp
Definition: cs_function.h:145
cs_analytic_func_t * analytic_func
Definition: cs_function.h:155
void * func_input
Definition: cs_function.h:160
const int dim
Definition: cs_function.h:130
time step descriptor
Definition: cs_time_step.h:64