1 #ifndef __CS_PROPERTY_H__
2 #define __CS_PROPERTY_H__
62 typedef struct _cs_property_t cs_property_t;
119 const char *ref_name);
236 const void *structure);
267 const cs_property_t *pty,
284 const cs_property_t *pty);
time step descriptor
Definition: cs_time_step.h:51
const char * cs_property_get_name(const cs_property_t *pty)
Retrieve the name of a property.
Definition: cs_property.c:321
void cs_property_def_by_analytic(cs_property_t *pty, cs_analytic_func_t *func)
Define a cs_property_t structure thanks to an analytic function.
Definition: cs_property.c:544
Definition: cs_property.h:56
void cs_property_def_by_law(cs_property_t *pty, cs_onevar_law_func_t *func)
Define a cs_property_t structure thanks to a law function.
Definition: cs_property.c:564
cs_property_type_t
Definition: cs_property.h:53
void cs_property_def_by_value(cs_property_t *pty, const char *val)
Define the value of a cs_property_t structure.
Definition: cs_property.c:486
void cs_property_set_struct(cs_property_t *pty, const void *structure)
Set "array" members of a cs_property_t structure.
Definition: cs_property.c:606
void cs_property_set_array(cs_property_t *pty, cs_flag_t array_flag, const cs_real_t *array)
Set members of a cs_property_t structure.
Definition: cs_property.c:585
#define BEGIN_C_DECLS
Definition: cs_defs.h:429
Definition: cs_cdo_connect.h:67
void cs_property_get_cell_tensor(cs_lnum_t c_id, const cs_property_t *pty, bool do_inversion, cs_real_3_t *tensor)
Compute the value of the tensor attached a property at the cell center.
Definition: cs_property.c:678
Definition: cs_cdo_quantities.h:86
cs_property_t * cs_property_create(const char *name, const char *key_type, const cs_cdo_quantities_t *cdoq, const cs_cdo_connect_t *connect, const cs_time_step_t *time_step)
Create and initialize a new property structure.
Definition: cs_property.c:187
bool cs_property_check_name(const cs_property_t *pty, const char *ref_name)
Check if the given property has the name ref_name.
Definition: cs_property.c:269
void cs_property_summary(const cs_property_t *pty)
Print a summary of a cs_property_t structure.
Definition: cs_property.c:338
void( cs_onevar_law_func_t)(double var_value, const void *law_param, cs_get_t *retval)
Compute the value of a quantity according to a law depending only on one variable. This law is described by a set of parameters stored in a structure. result = law(var_value)
Definition: cs_cdo.h:128
Definition: cs_property.h:55
void( cs_analytic_func_t)(cs_real_t time, const cs_real_3_t xyz, cs_get_t *retval)
Generic analytic function.
Definition: cs_cdo.h:96
void cs_property_set_value(cs_property_t *pty, const double val[])
Set the value of a property attached to a cs_property_t structure.
Definition: cs_property.c:424
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:307
cs_property_t * cs_property_free(cs_property_t *pty)
Free a cs_property_t structure.
Definition: cs_property.c:244
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:292
void cs_property_set_option(cs_property_t *pty, const char *keyname, const char *keyval)
Set optional parameters related to a cs_property_t structure.
Definition: cs_property.c:626
#define END_C_DECLS
Definition: cs_defs.h:430
double cs_real_t
Definition: cs_defs.h:296
cs_real_t cs_property_get_cell_value(cs_lnum_t c_id, const cs_property_t *pty)
Compute the value of a property at the cell center.
Definition: cs_property.c:873
Definition: cs_property.h:58
Definition: cs_property.h:57
unsigned short int cs_flag_t
Definition: cs_cdo.h:50
bool cs_property_is_uniform(const cs_property_t *pty)
returns true if the property is uniform, otherwise false
Definition: cs_property.c:299