1 #ifndef __CS_PROPERTY_H__ 2 #define __CS_PROPERTY_H__ 49 #define CS_PROPERTY_POST_FOURIER (1 << 1) // postprocess Fourier number 147 const char *key_type,
188 const char *ref_name);
269 const char *key_val);
317 const double tens[3][3]);
void() cs_analytic_func_t(cs_real_t time, cs_lnum_t n_points, const cs_real_t *xyz, cs_real_t *retval)
Generic analytic function.
Definition: cs_cdo.h:170
time step descriptor
Definition: cs_time_step.h:51
#define restrict
Definition: cs_defs.h:122
cs_flag_t post_flag
Definition: cs_property.h:69
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:893
int n_subdomains
Definition: cs_property.h:87
const char * cs_property_get_name(const cs_property_t *pty)
Retrieve the name of a property.
Definition: cs_property.c:586
cs_real_t * array2
Definition: cs_property.h:97
cs_desc_t desc2
Definition: cs_property.h:98
Definition: cs_property.h:59
cs_param_def_t * defs
Definition: cs_property.h:88
char *restrict name
Definition: cs_property.h:68
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:385
cs_property_type_t
Definition: cs_property.h:56
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:362
#define BEGIN_C_DECLS
Definition: cs_defs.h:451
int n_max_subdomains
Definition: cs_property.h:86
cs_property_type_t cs_property_get_type(const cs_property_t *pty)
Retrieve the type of a property.
Definition: cs_property.c:605
Definition: cs_cdo_local.h:132
cs_desc_t flag
Definition: cs_property.h:73
Definition: cs_cdo_connect.h:56
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:972
void() cs_onevar_law_func_t(cs_lnum_t n_elts, const cs_lnum_t elt_ids[], const cs_real_t var_values[], const void *law_param, cs_real_t res_array[])
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:207
double cs_real_t
Floating-point value.
Definition: cs_defs.h:297
cs_real_t * array1
Definition: cs_property.h:95
Definition: cs_cdo_quantities.h:102
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:534
cs_real_t cs_property_value_in_cell(const cs_cell_mesh_t *cm, const cs_property_t *pty)
Compute the value of a property at the cell center Version using a cs_cell_mesh_t structure...
Definition: cs_property.c:1435
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:924
void cs_property_summary(const cs_property_t *pty)
Print a summary of a cs_property_t structure.
Definition: cs_property.c:1606
Definition: cs_property.h:58
cs_property_type_t type
Definition: cs_property.h:81
void cs_property_last_definition_stage(cs_property_t *pty)
Last stage of the definition of a property based on several subdomains.
Definition: cs_property.c:446
Definition: cs_field_pointer.h:65
void cs_property_def_by_onevar_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:844
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:668
void cs_property_tensor_in_cell(const cs_cell_mesh_t *cm, 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 Version using a cs_cell_mesh_t...
Definition: cs_property.c:1255
cs_desc_t desc1
Definition: cs_property.h:96
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:1540
Definition: cs_param.h:108
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:309
void() cs_twovar_law_func_t(cs_lnum_t n_elts, const cs_lnum_t elt_ids[], const double var1_values[], const double var2_values[], const void *law_param, cs_real_t res_array[])
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:230
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:870
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:718
cs_property_t * cs_property_free(cs_property_t *pty)
Free a cs_property_t structure.
Definition: cs_property.c:500
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:293
#define END_C_DECLS
Definition: cs_defs.h:452
unsigned short int cs_flag_t
Definition: cs_defs.h:299
Definition: cs_property.h:106
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:1147
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:747
short int * def_ids
Definition: cs_property.h:89
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:820
Definition: cs_property.h:61
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:947
cs_property_key_t
Definition: cs_property.h:103
Definition: cs_property.h:60
Definition: cs_property.h:66
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:779
Definition: cs_property.h:105
bool cs_property_is_uniform(const cs_property_t *pty)
returns true if the property is uniform, otherwise false
Definition: cs_property.c:564
void cs_property_set_option(cs_property_t *pty, cs_property_key_t key, const char *keyval)
Set optional parameters related to a cs_property_t structure.
Definition: cs_property.c:624