1 #ifndef __CS_EVALUATE_H__ 2 #define __CS_EVALUATE_H__ 585 cs_evaluate_average_on_faces(
const cs_xdef_t *def,
598 n_f_selected, selected_lst,
605 n_f_selected, selected_lst,
610 bft_error(__FILE__, __LINE__, 0,
" %s: Case not handled yet.", __func__);
626 cs_evaluate_average_on_cells(
const cs_xdef_t *def,
647 bft_error(__FILE__, __LINE__, 0,
" %s: Case not handled yet.", __func__);
void cs_evaluate_average_on_faces_by_value(const cs_xdef_t *def, const cs_lnum_t n_f_selected, const cs_lnum_t *selected_lst, cs_real_t retval[])
Evaluate the average of a function on the faces.
Definition: cs_evaluate.c:3026
void cs_evaluate_average_on_faces_by_analytic(const cs_xdef_t *def, const cs_real_t time_eval, const cs_lnum_t n_f_selected, const cs_lnum_t *selected_lst, cs_real_t retval[])
Evaluate the average of a function on the faces. Warning: retval has to be initialize before calling ...
Definition: cs_evaluate.c:3099
cs_real_t cs_evaluate_delta_square_wc2x_norm(const cs_real_t *array, const cs_real_t *ref, const cs_adjacency_t *c2x, const cs_real_t *w_c2x)
Compute the norm of the difference of two arrays scanne by the same cs_adjacency_t structure with the...
Definition: cs_evaluate.c:1807
cs_real_t cs_evaluate_scal_domain_integral_by_array(cs_flag_t array_loc, const cs_real_t *array_val)
Evaluate the integral over the full computational domain of a quantity defined by an array...
Definition: cs_evaluate.c:3324
Definition: cs_xdef.h:118
void cs_evaluate_potential_by_qov(cs_flag_t dof_flag, const cs_xdef_t *def, cs_real_t vvals[], cs_real_t wvals[])
Define a value to each DoF in the case of a potential field in order to put a given quantity inside t...
Definition: cs_evaluate.c:2408
Definition: cs_mesh_adjacencies.h:67
void cs_evaluate_circulation_along_edges_by_value(const cs_xdef_t *def, const cs_lnum_t n_e_selected, const cs_lnum_t *selected_lst, cs_real_t retval[])
Evaluate the circulation along a selection of (primal) edges. Circulation is defined thanks to a cons...
Definition: cs_evaluate.c:2717
void cs_evaluate_potential_at_vertices_by_analytic(const cs_xdef_t *def, const cs_real_t time_eval, const cs_lnum_t n_v_selected, const cs_lnum_t *selected_lst, cs_real_t retval[])
Evaluate the quantity attached to a potential field at vertices when the definition relies on an anal...
Definition: cs_evaluate.c:2229
void cs_evaluate_density_by_analytic(cs_flag_t dof_flag, const cs_xdef_t *def, cs_real_t time_eval, cs_real_t retval[])
Compute the value related to each DoF in the case of a density field The value defined by the analyti...
Definition: cs_evaluate.c:2103
#define BEGIN_C_DECLS
Definition: cs_defs.h:495
cs_real_t cs_evaluate_delta_3_square_wc2x_rnorm(const cs_real_t *array, const cs_real_t *ref, const cs_adjacency_t *c2x, const cs_real_t *w_c2x)
Compute the relative norm of the difference of two arrays scanned by the same cs_adjacency_t structur...
Definition: cs_evaluate.c:2004
void cs_evaluate_scatter_array_reduction(int dim, cs_lnum_t n_x, const cs_real_t *array, const cs_adjacency_t *c2x, const cs_real_t *w_x, cs_real_t *min, cs_real_t *max, cs_real_t *wsum, cs_real_t *asum, cs_real_t *ssum)
Compute reduced quantities for an array attached to either vertex, face or edge DoFs The weight to ap...
Definition: cs_evaluate.c:1504
Definition: cs_cdo_connect.h:76
void cs_evaluate_circulation_along_edges_by_array(const cs_xdef_t *def, const cs_lnum_t n_e_selected, const cs_lnum_t *selected_lst, cs_real_t retval[])
Evaluate the circulation along a selection of (primal) edges. Circulation is defined thanks to an arr...
Definition: cs_evaluate.c:2803
Definition: cs_xdef.h:111
void cs_evaluate_array_reduction(int dim, cs_lnum_t n_x, const cs_real_t *array, const cs_real_t *w_x, cs_real_t *min, cs_real_t *max, cs_real_t *wsum, cs_real_t *asum, cs_real_t *ssum)
Compute reduced quantities for an array of size equal to dim * n_x The computed quantities are synchr...
Definition: cs_evaluate.c:1453
void bft_error(const char *const file_name, const int line_num, const int sys_error_code, const char *const format,...)
Calls the error handler (set by bft_error_handler_set() or default).
Definition: bft_error.c:193
double cs_real_t
Floating-point value.
Definition: cs_defs.h:307
Definition: cs_cdo_quantities.h:124
void cs_evaluate_circulation_along_edges_by_analytic(const cs_xdef_t *def, const cs_real_t time_eval, const cs_lnum_t n_e_selected, const cs_lnum_t *selected_lst, cs_real_t retval[])
Evaluate the circulation along a selection of (primal) edges. Circulation is defined by an analytical...
Definition: cs_evaluate.c:2894
cs_real_t cs_evaluate_3_square_weighted_norm(cs_lnum_t size, const cs_real_t *weight, const cs_real_t *array)
Compute the weighted L2-norm of the magnitude of vector-valued array. A weight has to be given as par...
Definition: cs_evaluate.c:1724
cs_xdef_type_t type
Definition: cs_xdef.h:189
void cs_evaluate_potential_at_cells_by_analytic(const cs_xdef_t *def, const cs_real_t time_eval, cs_real_t retval[])
Evaluate the quantity attached to a potential field at cell centers when the definition relies on an ...
Definition: cs_evaluate.c:2360
void cs_evaluate_density_by_value(cs_flag_t dof_flag, const cs_xdef_t *def, cs_real_t retval[])
Evaluate the quantity defined by a value in the case of a density field for all the degrees of freedo...
Definition: cs_evaluate.c:2171
void cs_evaluate_potential_at_faces_by_analytic(const cs_xdef_t *def, const cs_real_t time_eval, const cs_lnum_t n_f_selected, const cs_lnum_t *selected_lst, cs_real_t retval[])
Evaluate the quantity attached to a potential field at face centers when the definition relies on an ...
Definition: cs_evaluate.c:2277
void cs_evaluate_potential_at_vertices_by_value(const cs_xdef_t *def, const cs_lnum_t n_v_selected, const cs_lnum_t *selected_lst, cs_real_t retval[])
Evaluate a potential field at vertices from a definition by a constant value.
Definition: cs_evaluate.c:2460
void cs_evaluate_set_shared_pointers(const cs_cdo_quantities_t *quant, const cs_cdo_connect_t *connect)
Set shared pointers to main domain members.
Definition: cs_evaluate.c:1427
Definition: cs_xdef.h:110
void cs_evaluate_potential_at_faces_by_value(const cs_xdef_t *def, const cs_lnum_t n_f_selected, const cs_lnum_t *selected_lst, cs_real_t retval[])
Evaluate a potential field atface centers from a definition by a constant value.
Definition: cs_evaluate.c:2537
void cs_evaluate_potential_at_cells_by_value(const cs_xdef_t *def, cs_real_t retval[])
Evaluate a potential field at cell centers from a definition by value.
Definition: cs_evaluate.c:2630
Structure storing medata for defining a quantity in a very flexible way.
Definition: cs_xdef.h:154
void cs_evaluate_average_on_cells_by_array(const cs_xdef_t *def, cs_real_t retval[])
Evaluate the average of a function on the cells.
Definition: cs_evaluate.c:3194
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:301
cs_real_t cs_evaluate_delta_square_wc2x_rnorm(const cs_real_t *array, const cs_real_t *ref, const cs_adjacency_t *c2x, const cs_real_t *w_c2x)
Compute the relative norm of the difference of two arrays scanned by the same cs_adjacency_t structur...
Definition: cs_evaluate.c:1899
cs_real_t cs_evaluate_3_square_wc2x_norm(const cs_real_t *array, const cs_adjacency_t *c2x, const cs_real_t *w_c2x)
Compute the weighted L2-norm of an array. The weight is scanned by a cs_adjacency_t structure...
Definition: cs_evaluate.c:1638
#define END_C_DECLS
Definition: cs_defs.h:496
unsigned short int cs_flag_t
Definition: cs_defs.h:309
cs_real_t cs_evaluate_square_wc2x_norm(const cs_real_t *array, const cs_adjacency_t *c2x, const cs_real_t *w_c2x)
Compute the weighted L2-norm of an array. The weight is scanned by a cs_adjacency_t structure The com...
Definition: cs_evaluate.c:1551
void cs_evaluate_average_on_cells_by_value(const cs_xdef_t *def, cs_real_t retval[])
Evaluate the average of a function on the cells.
Definition: cs_evaluate.c:3153
void cs_evaluate_average_on_cells_by_analytic(const cs_xdef_t *def, cs_real_t time_eval, cs_real_t retval[])
Evaluate the average of a function on the cells Warning: retval has to be initialize before calling t...
Definition: cs_evaluate.c:3255