1 #ifndef __CS_ADVECTION_FIELD_H__
2 #define __CS_ADVECTION_FIELD_H__
52 typedef struct _cs_adv_field_t cs_adv_field_t;
107 const char *ref_name);
239 const cs_adv_field_t *adv,
283 const cs_adv_field_t *adv,
306 const cs_adv_field_t *adv);
time step descriptor
Definition: cs_time_step.h:51
void cs_advection_field_update(cs_adv_field_t *adv)
Update the values of the related field(s)
Definition: cs_advection_field.c:1181
bool cs_advection_field_is_uniform(const cs_adv_field_t *adv)
returns true if the advection field is uniform, otherwise false
Definition: cs_advection_field.c:299
void cs_advection_field_at_cells(const cs_adv_field_t *adv, cs_real_t *cell_values)
Compute the value of the advection field at cell centers.
Definition: cs_advection_field.c:682
const char * cs_advection_field_get_name(const cs_adv_field_t *adv)
Retrieve the name of an advection field.
Definition: cs_advection_field.c:346
#define BEGIN_C_DECLS
Definition: cs_defs.h:429
void cs_advection_field_def_by_array(cs_adv_field_t *adv, cs_flag_t support, const cs_real_t *array)
Define a cs_adv_field_t structure thanks to an array of values.
Definition: cs_advection_field.c:519
Definition: cs_cdo_connect.h:67
Definition: cs_cdo_quantities.h:86
Definition: cs_param.h:204
void cs_advection_field_get_cell_vector(cs_lnum_t c_id, const cs_adv_field_t *adv, cs_nvec3_t *vect)
Compute the value of the advection field at the cell center.
Definition: cs_advection_field.c:610
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
cs_real_t cs_advection_field_get_flux_svef(cs_lnum_t v_id, cs_lnum_t e_id, cs_lnum_t f_id, const cs_param_advection_t a_info, const cs_adv_field_t *adv)
Compute the value of the flux of the advection field across the triangle defined by a vertex...
Definition: cs_advection_field.c:1060
void cs_advection_field_summary(const cs_adv_field_t *adv)
Print a summary of a cs_adv_field_t structure.
Definition: cs_advection_field.c:363
cs_adv_field_t * cs_advection_field_create(const char *name, const cs_cdo_quantities_t *cdoq, const cs_cdo_connect_t *connect, const cs_time_step_t *time_step)
Create and initialize a new advection field structure.
Definition: cs_advection_field.c:198
void cs_advection_field_post(const cs_adv_field_t *adv)
Perform the postprocessing if needed.
Definition: cs_advection_field.c:1221
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:292
void cs_advection_field_at_vertices(const cs_adv_field_t *adv, cs_real_t *vtx_values)
Compute the value of the advection field at vertices.
Definition: cs_advection_field.c:784
void cs_advection_field_def_by_value(cs_adv_field_t *adv, const char *val)
Define the value of a cs_adv_field_t structure.
Definition: cs_advection_field.c:475
void cs_advection_field_create_field(cs_adv_field_t *adv)
Create a cs_field_t structure related to an advection field.
Definition: cs_advection_field.c:540
void cs_advection_field_def_by_analytic(cs_adv_field_t *adv, cs_analytic_func_t *func)
Define a cs_adv_field_t structure thanks to an analytic function.
Definition: cs_advection_field.c:498
#define END_C_DECLS
Definition: cs_defs.h:430
double cs_real_t
Definition: cs_defs.h:296
bool cs_advection_field_is_cellwise(const cs_adv_field_t *adv)
returns true if the advection field is uniform in each cell otherwise false
Definition: cs_advection_field.c:322
cs_adv_field_t * cs_advection_field_free(cs_adv_field_t *adv)
Free a cs_adv_field_t structure.
Definition: cs_advection_field.c:244
void cs_advection_field_get_flux_dfaces(cs_lnum_t c_id, const cs_param_advection_t a_info, const cs_adv_field_t *adv, cs_real_t *fluxes)
Compute the value of the flux of the advection field across the the dual faces of a cell...
Definition: cs_advection_field.c:918
unsigned short int cs_flag_t
Definition: cs_cdo.h:50
bool cs_advection_field_check_name(const cs_adv_field_t *adv, const char *ref_name)
Check if the given advection field has the name ref_name.
Definition: cs_advection_field.c:269
void cs_advection_field_set_option(cs_adv_field_t *adv, const char *keyname, const char *keyval)
Set optional parameters related to a cs_adv_field_t structure.
Definition: cs_advection_field.c:414