52#define CS_IPRIME_F_LSQ 0
55#define B_DIRECTION_LSQ CS_IPRIME_F_LSQ
Field boundary condition descriptor (for variables)
Definition: cs_field.h:107
double cs_real_t
Floating-point value.
Definition: cs_defs.h:332
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:349
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:351
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:325
cs_real_t cs_real_63_t[6][3]
Definition: cs_defs.h:366
void cs_gradient_vector_cell(const cs_mesh_t *m, const cs_mesh_quantities_t *fvq, cs_lnum_t c_id, cs_halo_type_t halo_type, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t var[][3], const cs_real_t c_weight[], cs_real_t grad[3][3])
Compute the gradient of a vector field at a given cell using least-squares reconstruction.
Definition: cs_gradient.cpp:10244
void cs_gradient_type_by_imrgra(int imrgra, cs_gradient_type_t *gradient_type, cs_halo_type_t *halo_type)
Definition: cs_gradient.cpp:10317
void cs_gradient_scalar_synced_input(const char *var_name, cs_gradient_type_t gradient_type, cs_halo_type_t halo_type, int inc, int n_r_sweeps, int hyd_p_flag, int w_stride, int verbosity, cs_gradient_limit_t clip_mode, double epsilon, double clip_coeff, cs_real_t f_ext[][3], const cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t var[], const cs_real_t *c_weight, T grad[][3], cs_real_t(*bounds)[2])
cs_gradient_type_t
Definition: cs_gradient.h:57
@ CS_GRADIENT_LSQ
Definition: cs_gradient.h:60
@ CS_GRADIENT_GREEN_LSQ
Definition: cs_gradient.h:61
@ CS_GRADIENT_GREEN_R
Definition: cs_gradient.h:65
@ CS_GRADIENT_GREEN_ITER
Definition: cs_gradient.h:59
@ CS_GRADIENT_GREEN_VTX
Definition: cs_gradient.h:63
const char * cs_gradient_type_name[]
cs_halo_type_t cs_gradient_halo_type_by_imrgra(int imrgra)
Determine halo type based on associated type by legacy "imrgra" value.
Definition: cs_gradient.cpp:10369
cs_gradient_limit_t
Definition: cs_gradient.h:73
@ CS_GRADIENT_LIMIT_CELL_RC
Definition: cs_gradient.h:83
@ CS_GRADIENT_LIMIT_CELL
Definition: cs_gradient.h:76
@ CS_GRADIENT_LIMIT_NONE
Definition: cs_gradient.h:75
@ CS_GRADIENT_LIMIT_FACE
Definition: cs_gradient.h:79
void cs_gradient_porosity_balance(int inc)
compute the steady balance due to porous modelling for the pressure gradient.
Definition: cs_gradient.cpp:10401
void cs_gradient_tensor_synced_input(const char *var_name, cs_gradient_type_t gradient_type, cs_halo_type_t halo_type, int inc, int n_r_sweeps, int verbosity, cs_gradient_limit_t clip_mode, double epsilon, double clip_coeff, const cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t var[][6], cs_real_63_t *grad, cs_real_t *bounds)
Compute cell gradient of tensor.
Definition: cs_gradient.cpp:9840
void cs_gradient_vector(const char *var_name, cs_gradient_type_t gradient_type, cs_halo_type_t halo_type, int inc, int n_r_sweeps, int verbosity, cs_gradient_limit_t clip_mode, double epsilon, double clip_coeff, cs_field_bc_coeffs_t *bc_coeffs, cs_real_t var[][3], cs_real_t *c_weight, const cs_internal_coupling_t *cpl, cs_real_t gradv[][3][3])
void cs_gradient_scalar_cell(const cs_mesh_t *m, const cs_mesh_quantities_t *fvq, cs_lnum_t c_id, cs_halo_type_t halo_type, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t var[], const cs_real_t c_weight[], cs_real_t grad[3])
Compute the gradient of a scalar field at a given cell using least-squares reconstruction.
Definition: cs_gradient.cpp:9992
void cs_gradient_vector_synced_input(const char *var_name, cs_gradient_type_t gradient_type, cs_halo_type_t halo_type, int inc, int n_r_sweeps, int verbosity, cs_gradient_limit_t clip_mode, double epsilon, double clip_coeff, const cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t var[][3], const cs_real_t c_weight[], T grad[][3][3], cs_real_t *bounds)
Compute cell gradient of vector field.
Definition: cs_gradient.cpp:9754
void cs_gradient_tensor_cell(const cs_mesh_t *m, const cs_mesh_quantities_t *fvq, cs_lnum_t c_id, cs_halo_type_t halo_type, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t var[][6], const cs_real_t c_weight[], cs_real_t grad[6][3])
Compute the gradient of a tensor field at a given cell using least-squares reconstruction.
Definition: cs_gradient.cpp:10288
void cs_gradient_scalar(const char *var_name, cs_gradient_type_t gradient_type, cs_halo_type_t halo_type, int inc, int n_r_sweeps, int hyd_p_flag, int w_stride, int verbosity, cs_gradient_limit_t clip_mode, double epsilon, double clip_coeff, cs_real_3_t f_ext[], cs_field_bc_coeffs_t *bc_coeffs, cs_real_t var[], cs_real_t *c_weight, const cs_internal_coupling_t *cpl, cs_real_t grad[][3])
void cs_gradient_finalize(void)
Finalize gradient computation API.
Definition: cs_gradient.cpp:8768
void cs_gradient_initialize(void)
Initialize gradient computation API.
Definition: cs_gradient.cpp:8747
void cs_gradient_free_quantities(void)
Free saved gradient quantities.
Definition: cs_gradient.cpp:8803
void cs_gradient_tensor(const char *var_name, cs_gradient_type_t gradient_type, cs_halo_type_t halo_type, int inc, int n_r_sweeps, int verbosity, cs_gradient_limit_t clip_mode, double epsilon, double clip_coeff, cs_field_bc_coeffs_t *bc_coeffs, cs_real_6_t *var, const cs_internal_coupling_t *cpl, cs_real_63_t *grad)
cs_halo_type_t
Definition: cs_halo.h:53
Definition: cs_internal_coupling.h:60
Definition: cs_mesh_quantities.h:88