Go to the source code of this file.
|
cs_cdovb_adv_t * | cs_cdovb_advection_builder_init (const cs_cdo_connect_t *connect, const cs_adv_field_t *adv, const cs_param_advection_t a_info, bool do_diffusion) |
| Initialize a builder structure for the convection operator. More...
|
|
cs_cdovb_adv_t * | cs_cdovb_advection_builder_free (cs_cdovb_adv_t *b) |
| Destroy a builder structure for the convection operator. More...
|
|
cs_locmat_t * | cs_cdovb_advection_build_local (cs_lnum_t c_id, const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_lnum_t *loc_ids, const cs_real_33_t diffmat, cs_cdovb_adv_t *builder) |
| Compute the convection operator for pure convection. More...
|
|
void | cs_cdovb_advection_add_bc (const cs_cdo_connect_t *connect, const cs_cdo_quantities_t *quant, const cs_real_t *dir_vals, cs_cdovb_adv_t *builder, cs_real_t rhs_contrib[], cs_real_t diag_contrib[]) |
| Compute the convection operator for pure convection. More...
|
|
void | cs_cdovb_advection_get_peclet_cell (const cs_cdo_quantities_t *cdoq, const cs_adv_field_t *adv, const cs_property_t *diff_property, const cs_real_3_t dir_vect, cs_real_t *p_peclet[]) |
| Compute the Peclet number in each cell in a given direction. More...
|
|
void | cs_cdovb_advection_get_upwind_coef_cell (const cs_cdo_quantities_t *cdoq, const cs_param_advection_t a_info, cs_real_t coefval[]) |
| Compute the value in each cell of the upwinding coefficient given a related Peclet number. More...
|
|
Compute the convection operator for pure convection.
- Parameters
-
[in] | connect | pointer to the connectivity structure |
[in] | quant | pointer to the cdo quantities structure |
[in] | dir_vals | values of the Dirichlet boundary condition |
[in,out] | builder | pointer to a convection builder structure |
[in,out] | rhs_contrib | array storing the rhs contribution |
[in,out] | diag_contrib | array storing the diagonal contribution |
Compute the convection operator for pure convection.
- Parameters
-
[in] | c_id | cell id |
[in] | connect | pointer to the connectivity structure |
[in] | quant | pointer to the cdo quantities structure |
[in] | loc_ids | store the local entity ids for this cell |
[in] | diffmat | tensor related to the diffusion property |
[in,out] | builder | pointer to a convection builder structure |
- Returns
- a pointer to a local dense matrix structure
Destroy a builder structure for the convection operator.
- Parameters
-
[in,out] | b | pointer to a cs_cdovb_adv_t struct. to free |
- Returns
- a NULL pointer
Initialize a builder structure for the convection operator.
- Parameters
-
[in] | connect | pointer to the connectivity structure |
[in] | adv_field | pointer to a cs_adv_field_t structure |
[in] | a_info | set of options for the advection term |
[in] | do_diffusion | true is diffusion is activated |
- Returns
- a pointer to a new allocated builder structure
Compute the Peclet number in each cell in a given direction.
- Parameters
-
[in] | cdoq | pointer to the cdo quantities structure |
[in] | adv | pointer to the advection field struct. |
[in] | diff_property | pointer to the diffusion property struct. |
[in] | dir_vect | direction for estimating the Peclet number |
[in,out] | peclet | pointer to the pointer of real numbers to fill |
Compute the value in each cell of the upwinding coefficient given a related Peclet number.
- Parameters
-
[in] | cdoq | pointer to the cdo quantities structure |
[in,out] | coefval | pointer to the pointer of real numbers to fill in: Peclet number in each cell out: value of the upwind coefficient |
[in] | cdoq | pointer to the cdo quantities structure |
[in] | a_info | set of options for the advection term |
[in,out] | coefval | pointer to the pointer of real numbers to fill in: Peclet number in each cell out: value of the upwind coefficient |