1 #ifndef __CS_PROPERTY_H__ 2 #define __CS_PROPERTY_H__ 62 typedef struct _cs_property_t cs_property_t;
112 const char *key_type,
141 const char *ref_name);
207 const char *key_val);
255 const double tens[3][3]);
389 const cs_property_t *pty,
406 const cs_property_t *pty);
time step descriptor
Definition: cs_time_step.h:51
void cs_property_def_by_array(cs_property_t *pty, cs_desc_t desc, cs_real_t *array)
Define a cs_property_t structure thanks to an array of values.
Definition: cs_property.c:1028
const char * cs_property_get_name(const cs_property_t *pty)
Retrieve the name of a property.
Definition: cs_property.c:638
Definition: cs_property.h:56
cs_property_t * cs_property_create(const char *name, const char *key_type, int n_subdomains)
Create and initialize a new property structure.
Definition: cs_property.c:481
cs_property_type_t
Definition: cs_property.h:53
void cs_property_set_shared_pointers(const cs_cdo_quantities_t *quant, const cs_cdo_connect_t *connect, const cs_time_step_t *time_step)
Set shared pointers to main domain members.
Definition: cs_property.c:439
#define BEGIN_C_DECLS
Definition: cs_defs.h:448
void cs_property_def_by_scavec_law(cs_property_t *pty, const char *ml_name, const void *context, cs_scavec_law_func_t *func)
Define a cs_property_t structure by a law (using as arguments a scalar and a vector) for entities att...
Definition: cs_property.c:1005
cs_property_type_t cs_property_get_type(const cs_property_t *pty)
Retrieve the type of a property.
Definition: cs_property.c:657
Definition: cs_cdo_connect.h:67
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:154
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:1107
void cs_property_def_by_law(cs_property_t *pty, const char *ml_name, const void *context, cs_onevar_law_func_t *func)
Define a cs_property_t structure thanks to law depending on one scalar variable in a subdomain attach...
Definition: cs_property.c:953
double cs_real_t
Floating-point value.
Definition: cs_defs.h:296
Definition: cs_cdo_quantities.h:100
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:188
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:586
void cs_property_set_array(cs_property_t *pty, cs_desc_t desc, cs_real_t *array)
Set the "array" member of a cs_property_t structure.
Definition: cs_property.c:1059
void() cs_twovar_law_func_t(double var1_value, double var2_value, const void *law_param, cs_get_t *retval)
Compute the value of a quantity according to a law depending only on two variables. This law is described by a set of parameters stored in a structure. result = law(var1_value, var2_value)
Definition: cs_cdo.h:207
void cs_property_summary(const cs_property_t *pty)
Print a summary of a cs_property_t structure.
Definition: cs_property.c:674
Definition: cs_property.h:55
Definition: cs_field_pointer.h:64
void cs_property_set_timer_stats(int level)
Initialize cs_timer_stats_t structure for monitoring purpose.
Definition: cs_property.c:458
void cs_property_def_by_value(cs_property_t *pty, const char *ml_name, const char *key_val)
Define a cs_property_t structure by value for entities attached to the mesh location named ml_name...
Definition: cs_property.c:777
void cs_property_get_fourier(const cs_property_t *pty, double dt, cs_real_t fourier[])
Compute the Fourier number in each cell.
Definition: cs_property.c:1323
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:308
void cs_property_def_by_twovar_law(cs_property_t *pty, const char *ml_name, const void *context, cs_twovar_law_func_t *func)
Define a cs_property_t structure thanks to a law depending on two scalars variables in a subdomain at...
Definition: cs_property.c:979
void cs_property_iso_def_by_value(cs_property_t *pty, const char *ml_name, double val)
Define an isotropic cs_property_t structure by value for entities attached to the mesh location named...
Definition: cs_property.c:827
cs_property_t * cs_property_free(cs_property_t *pty)
Free a cs_property_t structure.
Definition: cs_property.c:550
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:292
#define END_C_DECLS
Definition: cs_defs.h:449
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:1233
void cs_property_ortho_def_by_value(cs_property_t *pty, const char *ml_name, const double val[])
Define orthotropic cs_property_t structure by value for entities attached to the mesh location named ...
Definition: cs_property.c:856
void cs_property_def_by_analytic(cs_property_t *pty, const char *ml_name, cs_analytic_func_t *func)
Define a cs_property_t structure thanks to an analytic function in a subdomain attached to the mesh l...
Definition: cs_property.c:929
Definition: cs_property.h:58
void cs_property_set_second_array(cs_property_t *pty, cs_desc_t desc, cs_real_t *array)
Set the second "array" member of a cs_property_t structure.
Definition: cs_property.c:1082
void() cs_scavec_law_func_t(double var1_value, const double var2_vect[], const void *law_param, cs_get_t *retval)
Compute the value of a quantity according to a law depending only on two variables (the first one is ...
Definition: cs_cdo.h:228
Definition: cs_property.h:57
void cs_property_aniso_def_by_value(cs_property_t *pty, const char *ml_name, const double tens[3][3])
Define an anisotropic cs_property_t structure by value for entities attached to the mesh location nam...
Definition: cs_property.c:888
bool cs_property_is_uniform(const cs_property_t *pty)
returns true if the property is uniform, otherwise false
Definition: cs_property.c:616