Build discrete advection operators for CDO vertex-based schemes. More...
#include "cs_defs.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <limits.h>
#include <assert.h>
#include <bft_mem.h>
#include "cs_cdo_bc.h"
#include "cs_property.h"
#include "cs_math.h"
#include "cs_scheme_geometry.h"
#include "cs_cdo_advection.h"
Functions | |
void | cs_cdo_advection_set_cip_coef (double new_value) |
Set the value of the stabilization coefficient used in CIP scheme. More... | |
double | cs_cdo_advection_get_cip_coef (void) |
Get the value of the stabilization coefficient used in CIP scheme. More... | |
void | cs_cdofb_advection_build (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cdofb_advection_t *build_func, cs_cell_builder_t *cb) |
Build the cellwise advection operator for CDO-Fb schemes The local matrix related to this operator is stored in cb->loc. More... | |
void | cs_cdo_advection_fb_bc (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (without diffusion) More... | |
void | cs_cdo_advection_fb_bc_cen (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (without diffusion) More... | |
void | cs_cdo_advection_fb_bc_cen_v (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (without diffusion). Vector-valued case. More... | |
void | cs_cdo_advection_fb_bc_wdi (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (with a diffusion term activated) More... | |
void | cs_cdo_advection_fb_bc_v (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (without diffusion). Vector-valued case. More... | |
void | cs_cdo_advection_fb_bc_wdi_v (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (with a diffusion term activated). Vector-valued case. More... | |
void | cs_cdo_advection_fb_bc_cen_wdi (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (with a diffusion term activated) More... | |
void | cs_cdo_advection_fb_bc_cen_wdi_v (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (with a diffusion term activated). Vector-valued case. More... | |
void | cs_cdo_advection_fb_upwcsv (const cs_cell_mesh_t *cm, const cs_real_t fluxes[], cs_sdm_t *adv) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation. More... | |
void | cs_cdo_advection_fb_cencsv (const cs_cell_mesh_t *cm, const cs_real_t fluxes[], cs_sdm_t *adv) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation. More... | |
void | cs_cdo_advection_fb_upwcsv_di (const cs_cell_mesh_t *cm, const cs_real_t fluxes[], cs_sdm_t *adv) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation. More... | |
void | cs_cdo_advection_fb_cencsv_di (const cs_cell_mesh_t *cm, const cs_real_t fluxes[], cs_sdm_t *adv) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation. More... | |
void | cs_cdo_advection_fb_upwnoc (const cs_cell_mesh_t *cm, const cs_real_t fluxes[], cs_sdm_t *adv) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the non-conservative formulation. More... | |
void | cs_cdo_advection_fb_cennoc (const cs_cell_mesh_t *cm, const cs_real_t fluxes[], cs_sdm_t *adv) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the non-conservative formulation. More... | |
void | cs_cdo_advection_fb_upwnoc_di (const cs_cell_mesh_t *cm, const cs_real_t fluxes[], cs_sdm_t *adv) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the non-conservative formulation. More... | |
void | cs_cdo_advection_fb_cennoc_di (const cs_cell_mesh_t *cm, const cs_real_t fluxes[], cs_sdm_t *adv) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the non-conservative formulation. More... | |
void | cs_cdo_advection_fb_upwskw (const cs_cell_mesh_t *cm, const cs_real_t fluxes[], cs_sdm_t *adv) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation. More... | |
void | cs_cdo_advection_fb_upwskw_di (const cs_cell_mesh_t *cm, const cs_real_t fluxes[], cs_sdm_t *adv) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation. More... | |
void | cs_cdo_advection_fb_censkw (const cs_cell_mesh_t *cm, const cs_real_t fluxes[], cs_sdm_t *adv) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation. More... | |
void | cs_cdo_advection_fb_censkw_di (const cs_cell_mesh_t *cm, const cs_real_t fluxes[], cs_sdm_t *adv) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation. More... | |
void | cs_cdo_advection_fb_bc_skw (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (without diffusion) More... | |
void | cs_cdo_advection_fb_bc_skw_wdi (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (with a diffusion term activated) More... | |
void | cs_cdo_advection_fb_bc_skw_v (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (without diffusion). Vector-valued case. More... | |
void | cs_cdo_advection_fb_bc_skw_wdi_v (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (with a diffusion term activated). Vector-valued case. More... | |
void | cs_cdo_advection_vb_upwcsv_wpty (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, const cs_property_data_t *diff_pty, cs_face_mesh_t *fm, cs_cell_builder_t *cb) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme with an upwind scheme and a conservative formulation. The portion of upwinding relies on an evaluation of the weigth associated to the given property The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t. More... | |
void | cs_cdo_advection_vb_upwcsv (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, const cs_property_data_t *diff_pty, cs_face_mesh_t *fm, cs_cell_builder_t *cb) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme without diffusion and an upwind scheme and a conservative formulation is used. The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t. More... | |
void | cs_cdo_advection_vb_cencsv (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, const cs_property_data_t *diff_pty, cs_face_mesh_t *fm, cs_cell_builder_t *cb) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme when a centered scheme and a conservative formulation is used. The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t. More... | |
void | cs_cdo_advection_vb_mcucsv (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, const cs_property_data_t *diff_pty, cs_face_mesh_t *fm, cs_cell_builder_t *cb) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme when a mixed centered/upwind scheme with a conservative formulation is used. The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t. More... | |
void | cs_cdo_advection_vb_upwnoc_wpty (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, const cs_property_data_t *diff_pty, cs_face_mesh_t *fm, cs_cell_builder_t *cb) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme with an upwind scheme and a conservative formulation. The portion of upwinding relies on an evaluation of the weigth associated to the given property. The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t. More... | |
void | cs_cdo_advection_vb_upwnoc (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, const cs_property_data_t *diff_pty, cs_face_mesh_t *fm, cs_cell_builder_t *cb) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme without diffusion when an upwind scheme and a conservative formulation is used. The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t. More... | |
void | cs_cdo_advection_vb_cennoc (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, const cs_property_data_t *diff_pty, cs_face_mesh_t *fm, cs_cell_builder_t *cb) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme when a centered scheme and a non-conservative formulation is used. The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t. More... | |
void | cs_cdo_advection_vcb_cw_cst (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, const cs_property_data_t *diff_pty, cs_face_mesh_t *fm, cs_cell_builder_t *cb) |
Compute the convection operator attached to a cell with a CDO vertex+cell-based scheme when the advection field is cellwise constant. More... | |
void | cs_cdo_advection_vcb (const cs_equation_param_t *eqp, const cs_cell_mesh_t *cm, const cs_property_data_t *diff_pty, cs_face_mesh_t *fm, cs_cell_builder_t *cb) |
Compute the convection operator attached to a cell with a CDO vertex+cell-based scheme. More... | |
void | cs_cdo_advection_vb_bc (const cs_cell_mesh_t *cm, const cs_equation_param_t *eqp, cs_real_t t_eval, cs_face_mesh_t *fm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Compute the BC contribution for the convection operator. More... | |
void | cs_cdo_advection_vcb_bc (const cs_cell_mesh_t *cm, const cs_equation_param_t *eqp, cs_real_t t_eval, cs_face_mesh_t *fm, cs_cell_builder_t *cb, cs_cell_sys_t *csys) |
Compute the BC contribution for the convection operator with CDO V+C schemes. More... | |
void | cs_cdo_advection_cell_upwind_coef (const cs_cdo_quantities_t *cdoq, cs_param_advection_scheme_t scheme, cs_real_t coefval[]) |
Compute the value of the upwinding coefficient in each cell knowing the related Peclet number. More... | |
Build discrete advection operators for CDO vertex-based schemes.
void cs_cdo_advection_cell_upwind_coef | ( | const cs_cdo_quantities_t * | cdoq, |
cs_param_advection_scheme_t | scheme, | ||
cs_real_t | coefval[] | ||
) |
Compute the value of the upwinding coefficient in each cell knowing the related Peclet number.
[in] | cdoq | pointer to the cdo quantities structure |
[in] | scheme | type of scheme used 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 |
void cs_cdo_advection_fb_bc | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (without diffusion)
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_fb_bc_cen | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (without diffusion)
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_fb_bc_cen_v | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (without diffusion). Vector-valued case.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_fb_bc_cen_wdi | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (with a diffusion term activated)
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_fb_bc_cen_wdi_v | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (with a diffusion term activated). Vector-valued case.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_fb_bc_skw | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (without diffusion)
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_fb_bc_skw_v | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (without diffusion). Vector-valued case.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_fb_bc_skw_wdi | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (with a diffusion term activated)
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_fb_bc_skw_wdi_v | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (with a diffusion term activated). Vector-valued case.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_fb_bc_v | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (without diffusion). Vector-valued case.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_fb_bc_wdi | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (with a diffusion term activated)
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_fb_bc_wdi_v | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Add the contribution of the boundary conditions to the local system in CDO-Fb schemes (with a diffusion term activated). Vector-valued case.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_fb_cencsv | ( | const cs_cell_mesh_t * | cm, |
const cs_real_t | fluxes[], | ||
cs_sdm_t * | adv | ||
) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | fluxes | array of computed fluxes across cell faces |
[in,out] | adv | pointer to a local matrix to build |
void cs_cdo_advection_fb_cencsv_di | ( | const cs_cell_mesh_t * | cm, |
const cs_real_t | fluxes[], | ||
cs_sdm_t * | adv | ||
) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | fluxes | array of computed fluxes across cell faces |
[in,out] | adv | pointer to a local matrix to build |
void cs_cdo_advection_fb_cennoc | ( | const cs_cell_mesh_t * | cm, |
const cs_real_t | fluxes[], | ||
cs_sdm_t * | adv | ||
) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the non-conservative formulation.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | fluxes | array of computed fluxes across cell faces |
[in,out] | cb | pointer to a local matrix to build |
void cs_cdo_advection_fb_cennoc_di | ( | const cs_cell_mesh_t * | cm, |
const cs_real_t | fluxes[], | ||
cs_sdm_t * | adv | ||
) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the non-conservative formulation.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | fluxes | array of computed fluxes across cell faces |
[in,out] | cb | pointer to a local matrix to build |
void cs_cdo_advection_fb_censkw | ( | const cs_cell_mesh_t * | cm, |
const cs_real_t | fluxes[], | ||
cs_sdm_t * | adv | ||
) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | fluxes | array of computed fluxes across cell faces |
[in,out] | adv | pointer to a local matrix to build |
void cs_cdo_advection_fb_censkw_di | ( | const cs_cell_mesh_t * | cm, |
const cs_real_t | fluxes[], | ||
cs_sdm_t * | adv | ||
) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | fluxes | array of computed fluxes across cell faces |
[in,out] | adv | pointer to a local matrix to build |
void cs_cdo_advection_fb_upwcsv | ( | const cs_cell_mesh_t * | cm, |
const cs_real_t | fluxes[], | ||
cs_sdm_t * | adv | ||
) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | fluxes | array of computed fluxes across cell faces |
[in,out] | adv | pointer to a local matrix to build |
void cs_cdo_advection_fb_upwcsv_di | ( | const cs_cell_mesh_t * | cm, |
const cs_real_t | fluxes[], | ||
cs_sdm_t * | adv | ||
) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | fluxes | array of computed fluxes across cell faces |
[in,out] | adv | pointer to a local matrix to build |
void cs_cdo_advection_fb_upwnoc | ( | const cs_cell_mesh_t * | cm, |
const cs_real_t | fluxes[], | ||
cs_sdm_t * | adv | ||
) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the non-conservative formulation.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | fluxes | array of computed fluxes across cell faces |
[in,out] | cb | pointer to a local matrix to build |
void cs_cdo_advection_fb_upwnoc_di | ( | const cs_cell_mesh_t * | cm, |
const cs_real_t | fluxes[], | ||
cs_sdm_t * | adv | ||
) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the non-conservative formulation.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | fluxes | array of computed fluxes across cell faces |
[in,out] | cb | pointer to a local matrix to build |
void cs_cdo_advection_fb_upwskw | ( | const cs_cell_mesh_t * | cm, |
const cs_real_t | fluxes[], | ||
cs_sdm_t * | adv | ||
) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | fluxes | array of computed fluxes across cell faces |
[in,out] | adv | pointer to a local matrix to build |
void cs_cdo_advection_fb_upwskw_di | ( | const cs_cell_mesh_t * | cm, |
const cs_real_t | fluxes[], | ||
cs_sdm_t * | adv | ||
) |
Compute the convection operator attached to a cell with a CDO face-based scheme in the conservative formulation.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | fluxes | array of computed fluxes across cell faces |
[in,out] | adv | pointer to a local matrix to build |
double cs_cdo_advection_get_cip_coef | ( | void | ) |
Get the value of the stabilization coefficient used in CIP scheme.
void cs_cdo_advection_set_cip_coef | ( | double | new_value | ) |
Set the value of the stabilization coefficient used in CIP scheme.
(DOXYGEN_SHOULD_SKIP_THIS)
[in] | new_value | value of the stabilization coefficient |
void cs_cdo_advection_vb_bc | ( | const cs_cell_mesh_t * | cm, |
const cs_equation_param_t * | eqp, | ||
cs_real_t | t_eval, | ||
cs_face_mesh_t * | fm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Compute the BC contribution for the convection operator.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | t_eval | time at which one evaluates the advection field |
[in,out] | fm | pointer to a cs_face_mesh_t structure |
[in,out] | cb | pointer to a convection builder structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_vb_cencsv | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
const cs_property_data_t * | diff_pty, | ||
cs_face_mesh_t * | fm, | ||
cs_cell_builder_t * | cb | ||
) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme when a centered scheme and a conservative formulation is used. The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | diff_pty | pointer to a cs_property_data_t structure |
[in,out] | fm | pointer to a cs_face_mesh_t structure |
[in,out] | cb | pointer to a cs_cell_builder_t structure |
void cs_cdo_advection_vb_cennoc | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
const cs_property_data_t * | diff_pty, | ||
cs_face_mesh_t * | fm, | ||
cs_cell_builder_t * | cb | ||
) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme when a centered scheme and a non-conservative formulation is used. The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | diff_pty | pointer to a cs_property_data_t structure |
[in,out] | fm | pointer to a cs_face_mesh_t structure |
[in,out] | cb | pointer to a cs_cell_builder_t structure |
void cs_cdo_advection_vb_mcucsv | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
const cs_property_data_t * | diff_pty, | ||
cs_face_mesh_t * | fm, | ||
cs_cell_builder_t * | cb | ||
) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme when a mixed centered/upwind scheme with a conservative formulation is used. The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | diff_pty | pointer to a cs_property_data_t structure |
[in,out] | fm | pointer to a cs_face_mesh_t structure |
[in,out] | cb | pointer to a cs_cell_builder_t structure |
void cs_cdo_advection_vb_upwcsv | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
const cs_property_data_t * | diff_pty, | ||
cs_face_mesh_t * | fm, | ||
cs_cell_builder_t * | cb | ||
) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme without diffusion and an upwind scheme and a conservative formulation is used. The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | diff_pty | pointer to a cs_property_data_t structure |
[in,out] | fm | pointer to a cs_face_mesh_t structure |
[in,out] | cb | pointer to a cs_cell_builder_t structure |
void cs_cdo_advection_vb_upwcsv_wpty | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
const cs_property_data_t * | diff_pty, | ||
cs_face_mesh_t * | fm, | ||
cs_cell_builder_t * | cb | ||
) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme with an upwind scheme and a conservative formulation. The portion of upwinding relies on an evaluation of the weigth associated to the given property The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | diff_pty | pointer to a cs_property_data_t structure |
[in,out] | fm | pointer to a cs_face_mesh_t structure |
[in,out] | cb | pointer to a cs_cell_builder_t structure |
void cs_cdo_advection_vb_upwnoc | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
const cs_property_data_t * | diff_pty, | ||
cs_face_mesh_t * | fm, | ||
cs_cell_builder_t * | cb | ||
) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme without diffusion when an upwind scheme and a conservative formulation is used. The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | diff_pty | pointer to a cs_property_data_t structure |
[in,out] | fm | pointer to a cs_face_mesh_t structure |
[in,out] | cb | pointer to a cs_cell_builder_t structure |
void cs_cdo_advection_vb_upwnoc_wpty | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
const cs_property_data_t * | diff_pty, | ||
cs_face_mesh_t * | fm, | ||
cs_cell_builder_t * | cb | ||
) |
Compute the convection operator attached to a cell with a CDO vertex-based scheme with an upwind scheme and a conservative formulation. The portion of upwinding relies on an evaluation of the weigth associated to the given property. The local matrix related to this operator is stored in cb->loc Predefined prototype to match the function pointer cs_cdovb_advection_t.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | diff_pty | pointer to a cs_property_data_t structure |
[in,out] | fm | pointer to a cs_face_mesh_t structure |
[in,out] | cb | pointer to a cs_cell_builder_t structure |
void cs_cdo_advection_vcb | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
const cs_property_data_t * | diff_pty, | ||
cs_face_mesh_t * | fm, | ||
cs_cell_builder_t * | cb | ||
) |
Compute the convection operator attached to a cell with a CDO vertex+cell-based scheme.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | diff_pty | pointer to the property associated to diffusion |
[in,out] | fm | pointer to a cs_face_mesh_t structure |
[in,out] | cb | pointer to a cs_cell_builder_t structure |
void cs_cdo_advection_vcb_bc | ( | const cs_cell_mesh_t * | cm, |
const cs_equation_param_t * | eqp, | ||
cs_real_t | t_eval, | ||
cs_face_mesh_t * | fm, | ||
cs_cell_builder_t * | cb, | ||
cs_cell_sys_t * | csys | ||
) |
Compute the BC contribution for the convection operator with CDO V+C schemes.
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | t_eval | time at which one evaluates the advection field |
[in,out] | fm | pointer to a cs_face_mesh_t structure |
[in,out] | cb | pointer to a cs_cell_builder_t structure |
[in,out] | csys | cell-wise structure storing the local system |
void cs_cdo_advection_vcb_cw_cst | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
const cs_property_data_t * | diff_pty, | ||
cs_face_mesh_t * | fm, | ||
cs_cell_builder_t * | cb | ||
) |
Compute the convection operator attached to a cell with a CDO vertex+cell-based scheme when the advection field is cellwise constant.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | diff_pty | pointer to the property associated to diffusion |
[in,out] | fm | pointer to a cs_face_mesh_t structure |
[in,out] | cb | pointer to a cs_cell_builder_t structure |
void cs_cdofb_advection_build | ( | const cs_equation_param_t * | eqp, |
const cs_cell_mesh_t * | cm, | ||
cs_cdofb_advection_t * | build_func, | ||
cs_cell_builder_t * | cb | ||
) |
Build the cellwise advection operator for CDO-Fb schemes The local matrix related to this operator is stored in cb->loc.
[in] | eqp | pointer to a cs_equation_param_t structure |
[in] | cm | pointer to a cs_cell_mesh_t structure |
[in] | build_func | pointer to the function building the system |
[in,out] | cb | pointer to a cs_cell_builder_t structure |