1 #ifndef __CS_ADVECTION_FIELD_H__ 2 #define __CS_ADVECTION_FIELD_H__ 56 #define CS_ADVECTION_FIELD_POST_FIELD (1 << 0) // postprocess adv. field 57 #define CS_ADVECTION_FIELD_POST_COURANT (1 << 1) // postprocess Courant number 151 const char *ref_name);
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
void cs_advection_field_update(cs_adv_field_t *adv)
Update the values of the related field(s)
Definition: cs_advection_field.c:1544
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:218
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:817
void cs_advection_field_get_at_xyz(const cs_adv_field_t *adv, const cs_real_3_t xyz, cs_nvec3_t *vect)
Compute the value of the advection field for a given face.
Definition: cs_advection_field.c:766
Definition: cs_advection_field.h:59
Field descriptor.
Definition: cs_field.h:124
cs_mesh_location_type_t
Definition: cs_mesh_location.h:60
double cs_advection_field_get_cell_max(const cs_adv_field_t *adv)
Compute the max. value of the advection field among cells.
Definition: cs_advection_field.c:1053
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:265
#define BEGIN_C_DECLS
Definition: cs_defs.h:451
int cell_field_id
Definition: cs_advection_field.h:66
cs_advection_field_key_t
Definition: cs_advection_field.h:81
cs_real_t cs_advection_field_get_flux_svef(const cs_cell_mesh_t *cm, short int v, short int e, short int f, 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:1424
void cs_advection_field_in_cell(const cs_cell_mesh_t *cm, 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:605
Definition: cs_cdo_local.h:132
Definition: cs_cdo_connect.h:56
void cs_advection_field_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_advection_field.c:103
cs_desc_t desc
Definition: cs_advection_field.h:63
double cs_real_t
Floating-point value.
Definition: cs_defs.h:297
Definition: cs_cdo_quantities.h:102
cs_param_def_type_t cs_advection_field_get_deftype(const cs_adv_field_t *adv)
Retrieve the type of definition used to set the current advection field structure.
Definition: cs_advection_field.c:285
Definition: cs_param.h:232
const cs_real_t * array
Definition: cs_advection_field.h:75
double precision, dimension(:,:,:), allocatable v
Definition: atimbr.f90:114
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:685
void cs_advection_field_def_by_value(cs_adv_field_t *adv, const cs_real_t vector[3])
Define the value of a cs_adv_field_t structure.
Definition: cs_advection_field.c:409
cs_flag_t post_flag
Definition: cs_advection_field.h:64
void cs_advection_get_peclet(const cs_adv_field_t *adv, const cs_property_t *diff, double peclet[])
Compute the Peclet number in each cell.
Definition: cs_advection_field.c:1586
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:302
cs_def_t def
Definition: cs_advection_field.h:69
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:309
Definition: cs_advection_field.h:84
Definition: cs_advection_field.h:85
Definition: cs_param.h:72
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:293
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:908
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:498
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:432
cs_adv_field_t * cs_advection_field_create(const char *name)
Create and initialize a new advection field structure.
Definition: cs_advection_field.c:124
#define END_C_DECLS
Definition: cs_defs.h:452
unsigned short int cs_flag_t
Definition: cs_defs.h:299
cs_desc_t array_desc
Definition: cs_advection_field.h:73
void cs_advection_field_set_array(cs_adv_field_t *adv, const cs_real_t *array)
Set the array related to the definition of a cs_adv_field_t structure.
Definition: cs_advection_field.c:478
void cs_advection_field_set_option(cs_adv_field_t *adv, cs_advection_field_key_t key, const char *keyval)
Set optional parameters related to a cs_adv_field_t structure.
Definition: cs_advection_field.c:354
void cs_advection_field_def_by_array(cs_adv_field_t *adv, cs_desc_t desc)
Define a cs_adv_field_t structure thanks to an array of values.
Definition: cs_advection_field.c:452
cs_real_t cs_advection_field_get_flux_tef(const cs_adv_field_t *adv, const cs_param_advection_t a_info, const cs_cell_mesh_t *cm, cs_real_t tef_meas, short int f, short int e, short int v1, short int v2)
Compute the value of the flux of the advection field across the triangle defined by the two vertices ...
Definition: cs_advection_field.c:1292
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:241
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:163
int vtx_field_id
Definition: cs_advection_field.h:65
cs_param_def_type_t def_type
Definition: cs_advection_field.h:68
Definition: cs_advection_field.h:83
char *restrict name
Definition: cs_advection_field.h:61
Definition: cs_property.h:66
cs_param_def_type_t
Definition: cs_param.h:94
void cs_advection_field_get_flux_dfaces(const cs_cell_mesh_t *cm, 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:1107
const void * struc
Definition: cs_advection_field.h:76
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:188
cs_field_t * cs_advection_field_get_field(cs_adv_field_t *adv, cs_mesh_location_type_t ml_type)
Get a cs_field_t structure related to an advection field and a mesh location.
Definition: cs_advection_field.c:568