|
programmer's documentation
|

Go to the source code of this file.
Functions | |
| void | bilsc2 (const cs_int_t *const idtvar, const cs_int_t *const f_id, const cs_var_cal_opt_t *const var_cal_opt, const cs_int_t *const icvflb, const cs_int_t *const inc, const cs_int_t *const iccocg, const cs_int_t *const ifaccp, cs_real_t pvar[], const cs_real_t pvara[], const cs_int_t bc_type[], const cs_int_t icvfli[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_massflux[], const cs_real_t b_massflux[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_t rhs[]) |
| void | bilsc4 (const cs_int_t *const idtvar, const cs_int_t *const f_id, const cs_var_cal_opt_t *const var_cal_opt, const cs_int_t *const icvflb, const cs_int_t *const inc, const cs_int_t *const ifaccp, const cs_int_t *const ivisep, cs_real_3_t pvar[], const cs_real_3_t pvara[], const cs_int_t bc_type[], const cs_int_t icvfli[], const cs_real_3_t coefav[], const cs_real_33_t coefbv[], const cs_real_3_t cofafv[], const cs_real_33_t cofbfv[], const cs_real_t i_massflux[], const cs_real_t b_massflux[], const cs_real_t i_visc[], const cs_real_t b_visc[], const cs_real_t secvif[], cs_real_3_t rhs[]) |
| void | bilsct (const cs_int_t *const idtvar, const cs_int_t *const f_id, const cs_var_cal_opt_t *const var_cal_opt, const cs_int_t *const inc, const cs_int_t *const iccocg, const cs_int_t *const ifaccp, cs_real_t pvar[], const cs_real_t pvara[], const cs_int_t bc_type[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_massflux[], const cs_real_t b_massflux[], const cs_real_t i_visc[], const cs_real_t b_visc[], const cs_real_t xcpp[], cs_real_t rhs[]) |
| void | diften (const cs_int_t *const idtvar, const cs_int_t *const f_id, const cs_var_cal_opt_t *const var_cal_opt, const cs_int_t *const inc, const cs_int_t *const iccocg, cs_real_t pvar[], const cs_real_t pvara[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_6_t viscel[], const cs_real_2_t weighf[], const cs_real_t weighb[], cs_real_t rhs[]) |
| void | diftnv (const cs_int_t *const idtvar, const cs_int_t *const f_id, const cs_var_cal_opt_t *const var_cal_opt, const cs_int_t *const inc, const cs_int_t *const ifaccp, const cs_int_t *const ivisep, cs_real_3_t pvar[], const cs_real_3_t pvara[], const cs_int_t bc_type[], const cs_real_3_t coefav[], const cs_real_33_t coefbv[], const cs_real_3_t cofafv[], const cs_real_33_t cofbfv[], const cs_real_33_t i_visc[], const cs_real_t b_visc[], const cs_real_t secvif[], cs_real_3_t rhs[]) |
| void | itrmas (const cs_int_t *const init, const cs_int_t *const inc, const cs_int_t *const imrgra, const cs_int_t *const iccocg, const cs_int_t *const nswrgp, const cs_int_t *const imligp, const cs_int_t *const iphydp, const cs_int_t *const iwarnp, const cs_real_t *const epsrgp, const cs_real_t *const climgp, const cs_real_t *const extrap, cs_real_3_t frcxt[], cs_real_t pvar[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_visc[], const cs_real_t b_visc[], const cs_real_t viselx[], const cs_real_t visely[], const cs_real_t viselz[], cs_real_t i_massflux[], cs_real_t b_massflux[]) |
| void | itrmav (const cs_int_t *const init, const cs_int_t *const inc, const cs_int_t *const imrgra, const cs_int_t *const iccocg, const cs_int_t *const nswrgp, const cs_int_t *const imligp, const cs_int_t *const ircflp, const cs_int_t *const iphydp, const cs_int_t *const iwarnp, const cs_real_t *const epsrgp, const cs_real_t *const climgp, const cs_real_t *const extrap, cs_real_3_t frcxt[], cs_real_t pvar[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_6_t viscel[], const cs_real_2_t weighf[], const cs_real_t weighb[], cs_real_t i_massflux[], cs_real_t b_massflux[]) |
| void | itrgrp (const cs_int_t *const init, const cs_int_t *const inc, const cs_int_t *const imrgra, const cs_int_t *const iccocg, const cs_int_t *const nswrgp, const cs_int_t *const imligp, const cs_int_t *const iphydp, const cs_int_t *const iwarnp, const cs_real_t *const epsrgp, const cs_real_t *const climgp, const cs_real_t *const extrap, cs_real_3_t frcxt[], cs_real_t pvar[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_visc[], const cs_real_t b_visc[], const cs_real_t viselx[], const cs_real_t visely[], const cs_real_t viselz[], cs_real_t diverg[]) |
| void | itrgrv (const cs_int_t *const init, const cs_int_t *const inc, const cs_int_t *const imrgra, const cs_int_t *const iccocg, const cs_int_t *const nswrgp, const cs_int_t *const imligp, const cs_int_t *const ircflp, const cs_int_t *const iphydp, const cs_int_t *const iwarnp, const cs_real_t *const epsrgp, const cs_real_t *const climgp, const cs_real_t *const extrap, cs_real_3_t frcxt[], cs_real_t pvar[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_6_t viscel[], const cs_real_2_t weighf[], const cs_real_t weighb[], cs_real_t diverg[]) |
| void | cs_convection_diffusion_scalar (int idtvar, int f_id, const cs_var_cal_opt_t var_cal_opt, int icvflb, int inc, int iccocg, int ifaccp, cs_real_t *restrict pvar, const cs_real_t *restrict pvara, const cs_int_t bc_type[], const cs_int_t icvfli[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_massflux[], const cs_real_t b_massflux[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_t *restrict rhs) |
Add the explicit part of the convection/diffusion terms of a standard transport equation of a scalar field . More... | |
| void | cs_convection_diffusion_vector (int idtvar, int f_id, const cs_var_cal_opt_t var_cal_opt, int icvflb, int inc, int ifaccp, int ivisep, cs_real_3_t *restrict pvar, const cs_real_3_t *restrict pvara, const cs_int_t bc_type[], const cs_int_t icvfli[], const cs_real_3_t coefav[], const cs_real_33_t coefbv[], const cs_real_3_t cofafv[], const cs_real_33_t cofbfv[], const cs_real_t i_massflux[], const cs_real_t b_massflux[], const cs_real_t i_visc[], const cs_real_t b_visc[], const cs_real_t secvif[], cs_real_3_t *restrict rhs) |
Add the explicit part of the convection/diffusion terms of a transport equation of a vector field . More... | |
| void | cs_convection_diffusion_thermal (int idtvar, int f_id, const cs_var_cal_opt_t var_cal_opt, int inc, int iccocg, int ifaccp, cs_real_t *restrict pvar, const cs_real_t *restrict pvara, const cs_int_t bc_type[], const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_massflux[], const cs_real_t b_massflux[], const cs_real_t i_visc[], const cs_real_t b_visc[], const cs_real_t xcpp[], cs_real_t *restrict rhs) |
Add the explicit part of the convection/diffusion terms of a transport equation of a scalar field such as the temperature. More... | |
| void | cs_anisotropic_diffusion_scalar (int idtvar, int f_id, const cs_var_cal_opt_t var_cal_opt, int inc, int iccocg, cs_real_t *restrict pvar, const cs_real_t *restrict pvara, const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_6_t *restrict viscel, const cs_real_2_t weighf[], const cs_real_t weighb[], cs_real_t *restrict rhs) |
Add the explicit part of the diffusion terms with a symmetric tensor diffusivity for a transport equation of a scalar field . More... | |
| void | cs_anisotropic_diffusion_vector (int idtvar, int f_id, const cs_var_cal_opt_t var_cal_opt, int inc, int ifaccp, int ivisep, cs_real_3_t *restrict pvar, const cs_real_3_t *restrict pvara, const cs_int_t bc_type[], const cs_real_3_t coefav[], const cs_real_33_t coefbv[], const cs_real_3_t cofafv[], const cs_real_33_t cofbfv[], const cs_real_33_t i_visc[], const cs_real_t b_visc[], const cs_real_t secvif[], cs_real_3_t *restrict rhs) |
Add the explicit part of the diffusion terms with a symmetric tensorial diffusivity for a transport equation of a vector field . More... | |
| void | cs_face_diffusion_potential (const cs_mesh_t *m, cs_mesh_quantities_t *fvq, int init, int inc, int imrgra, int iccocg, int nswrgp, int imligp, int iphydp, int iwarnp, double epsrgp, double climgp, double extrap, cs_real_3_t *restrict frcxt, cs_real_t *restrict pvar, const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_visc[], const cs_real_t b_visc[], const cs_real_t viselx[], const cs_real_t visely[], const cs_real_t viselz[], cs_real_t *restrict i_massflux, cs_real_t *restrict b_massflux) |
| Update the face mass flux with the face pressure (or pressure increment, or pressure double increment) gradient. More... | |
| void | cs_face_anisotropic_diffusion_potential (const cs_mesh_t *m, cs_mesh_quantities_t *fvq, int init, int inc, int imrgra, int iccocg, int nswrgp, int imligp, int ircflp, int iphydp, int iwarnp, double epsrgp, double climgp, double extrap, cs_real_3_t *restrict frcxt, cs_real_t *restrict pvar, const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_6_t *restrict viscel, const cs_real_2_t weighf[], const cs_real_t weighb[], cs_real_t *restrict i_massflux, cs_real_t *restrict b_massflux) |
Add the explicit part of the pressure gradient term to the mass flux in case of anisotropic diffusion of the pressure field . More... | |
| void | cs_diffusion_potential (const cs_mesh_t *m, cs_mesh_quantities_t *fvq, int init, int inc, int imrgra, int iccocg, int nswrgp, int imligp, int iphydp, int iwarnp, double epsrgp, double climgp, double extrap, cs_real_3_t *restrict frcxt, cs_real_t *restrict pvar, const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_visc[], const cs_real_t b_visc[], const cs_real_t viselx[], const cs_real_t visely[], const cs_real_t viselz[], cs_real_t *restrict diverg) |
| Update the cell mass flux divergence with the face pressure (or pressure increment, or pressure double increment) gradient. More... | |
| void | cs_anisotropic_diffusion_potential (const cs_mesh_t *m, cs_mesh_quantities_t *fvq, int init, int inc, int imrgra, int iccocg, int nswrgp, int imligp, int ircflp, int iphydp, int iwarnp, double epsrgp, double climgp, double extrap, cs_real_3_t *restrict frcxt, cs_real_t *restrict pvar, const cs_real_t coefap[], const cs_real_t coefbp[], const cs_real_t cofafp[], const cs_real_t cofbfp[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_6_t *restrict viscel, const cs_real_2_t weighf[], const cs_real_t weighb[], cs_real_t *restrict diverg) |
| Add the explicit part of the divergence of the mass flux due to the pressure gradient (routine analog to cs_anisotropic_diffusion_scalar). More... | |
| void bilsc2 | ( | const cs_int_t *const | idtvar, |
| const cs_int_t *const | f_id, | ||
| const cs_var_cal_opt_t *const | var_cal_opt, | ||
| const cs_int_t *const | icvflb, | ||
| const cs_int_t *const | inc, | ||
| const cs_int_t *const | iccocg, | ||
| const cs_int_t *const | ifaccp, | ||
| cs_real_t | pvar[], | ||
| const cs_real_t | pvara[], | ||
| const cs_int_t | bc_type[], | ||
| const cs_int_t | icvfli[], | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_massflux[], | ||
| const cs_real_t | b_massflux[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| cs_real_t | rhs[] | ||
| ) |
(end ignore by Doxygen)
| void bilsc4 | ( | const cs_int_t *const | idtvar, |
| const cs_int_t *const | f_id, | ||
| const cs_var_cal_opt_t *const | var_cal_opt, | ||
| const cs_int_t *const | icvflb, | ||
| const cs_int_t *const | inc, | ||
| const cs_int_t *const | ifaccp, | ||
| const cs_int_t *const | ivisep, | ||
| cs_real_3_t | pvar[], | ||
| const cs_real_3_t | pvara[], | ||
| const cs_int_t | bc_type[], | ||
| const cs_int_t | icvfli[], | ||
| const cs_real_3_t | coefav[], | ||
| const cs_real_33_t | coefbv[], | ||
| const cs_real_3_t | cofafv[], | ||
| const cs_real_33_t | cofbfv[], | ||
| const cs_real_t | i_massflux[], | ||
| const cs_real_t | b_massflux[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| const cs_real_t | secvif[], | ||
| cs_real_3_t | rhs[] | ||
| ) |
| void bilsct | ( | const cs_int_t *const | idtvar, |
| const cs_int_t *const | f_id, | ||
| const cs_var_cal_opt_t *const | var_cal_opt, | ||
| const cs_int_t *const | inc, | ||
| const cs_int_t *const | iccocg, | ||
| const cs_int_t *const | ifaccp, | ||
| cs_real_t | pvar[], | ||
| const cs_real_t | pvara[], | ||
| const cs_int_t | bc_type[], | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_massflux[], | ||
| const cs_real_t | b_massflux[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| const cs_real_t | xcpp[], | ||
| cs_real_t | rhs[] | ||
| ) |
| void cs_anisotropic_diffusion_potential | ( | const cs_mesh_t * | m, |
| cs_mesh_quantities_t * | fvq, | ||
| int | init, | ||
| int | inc, | ||
| int | imrgra, | ||
| int | iccocg, | ||
| int | nswrgp, | ||
| int | imligp, | ||
| int | ircflp, | ||
| int | iphydp, | ||
| int | iwarnp, | ||
| double | epsrgp, | ||
| double | climgp, | ||
| double | extrap, | ||
| cs_real_3_t *restrict | frcxt, | ||
| cs_real_t *restrict | pvar, | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| cs_real_6_t *restrict | viscel, | ||
| const cs_real_2_t | weighf[], | ||
| const cs_real_t | weighb[], | ||
| cs_real_t *restrict | diverg | ||
| ) |
Add the explicit part of the divergence of the mass flux due to the pressure gradient (routine analog to cs_anisotropic_diffusion_scalar).
More precisely, the divergence of the mass flux side
is updated as follows:
| [in] | m | pointer to mesh |
| [in] | fvq | pointer to finite volume quantities |
| [in] | init | indicator
|
| [in] | inc | indicator
|
| [in] | imrgra | indicator
|
| [in] | iccocg | indicator
|
| [in] | nswrgp | number of reconstruction sweeps for the gradients |
| [in] | imligp | clipping gradient method
|
| [in] | ircflp | indicator
|
| [in] | iphydp | indicator
|
| [in] | iwarnp | verbosity |
| [in] | epsrgp | relative precision for the gradient reconstruction |
| [in] | climgp | clipping coeffecient for the computation of the gradient |
| [in] | extrap | coefficient for extrapolation of the gradient |
| [in] | frcxt | body force creating the hydrostatic pressure |
| [in] | pvar | solved variable (pressure) |
| [in] | coefap | boundary condition array for the variable (Explicit part) |
| [in] | coefbp | boundary condition array for the variable (Implicit part) |
| [in] | cofafp | boundary condition array for the diffusion of the variable (Explicit part) |
| [in] | cofbfp | boundary condition array for the diffusion of the variable (Implicit part) |
| [in] | i_visc | at interior faces for the r.h.s. |
| [in] | b_visc | at border faces for the r.h.s. |
| [in] | viscel | symmetric cell tensor |
| [in] | weighf | internal face weight between cells i j in case of tensor diffusion |
| [in] | weighb | boundary face weight for cells i in case of tensor diffusion |
| [in,out] | diverg | divergence of the mass flux |
Add the explicit part of the divergence of the mass flux due to the pressure gradient (routine analog to cs_anisotropic_diffusion_scalar).
More precisely, the divergence of the mass flux side
is updated as follows:
| [in] | m | pointer to mesh |
| [in] | fvq | pointer to finite volume quantities |
| [in] | init | indicator
|
| [in] | inc | indicator
|
| [in] | imrgra | indicator
|
| [in] | iccocg | indicator
|
| [in] | nswrgp | number of reconstruction sweeps for the gradients |
| [in] | imligp | clipping gradient method
|
| [in] | ircflp | indicator
|
| [in] | iphydp | indicator
|
| [in] | iwarnp | verbosity |
| [in] | epsrgp | relative precision for the gradient reconstruction |
| [in] | climgp | clipping coeffecient for the computation of the gradient |
| [in] | extrap | coefficient for extrapolation of the gradient |
| [in] | frcxt | body force creating the hydrostatic pressure |
| [in] | pvar | solved variable (pressure) |
| [in] | coefap | boundary condition array for the variable (Explicit part) |
| [in] | coefbp | boundary condition array for the variable (Implicit part) |
| [in] | cofafp | boundary condition array for the diffusion of the variable (Explicit part) |
| [in] | cofbfp | boundary condition array for the diffusion of the variable (Implicit part) |
| [in] | i_visc | at interior faces for the r.h.s. |
| [in] | b_visc | at border faces for the r.h.s. |
| [in] | viscel | symmetric cell tensor |
| [in] | weighf | internal face weight between cells i j in case of tensor diffusion |
| [in] | weighb | boundary face weight for cells i in case of tensor diffusion |
| [in,out] | diverg | divergence of the mass flux |
| void cs_anisotropic_diffusion_scalar | ( | int | idtvar, |
| int | f_id, | ||
| const cs_var_cal_opt_t | var_cal_opt, | ||
| int | inc, | ||
| int | iccocg, | ||
| cs_real_t *restrict | pvar, | ||
| const cs_real_t *restrict | pvara, | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| cs_real_6_t *restrict | viscel, | ||
| const cs_real_2_t | weighf[], | ||
| const cs_real_t | weighb[], | ||
| cs_real_t *restrict | rhs | ||
| ) |
Add the explicit part of the diffusion terms with a symmetric tensor diffusivity for a transport equation of a scalar field
.
More precisely, the right hand side
is updated as follows:
Warning:
has already been initialized before calling cs_anisotropic_diffusion_scalar!| [in] | idtvar | indicator of the temporal scheme |
| [in] | f_id | index of the current variable |
| [in] | var_cal_opt | variable calculation options |
| [in] | inc | indicator
|
| [in] | iccocg | indicator
|
| [in] | pvar | solved variable (current time step) |
| [in] | pvara | solved variable (previous time step) |
| [in] | coefap | boundary condition array for the variable (Explicit part) |
| [in] | coefbp | boundary condition array for the variable (Implicit part) |
| [in] | cofafp | boundary condition array for the diffusion of the variable (Explicit part) |
| [in] | cofbfp | boundary condition array for the diffusion of the variable (Implicit part) |
| [in] | i_visc | at interior faces for the r.h.s. |
| [in] | b_visc | at border faces for the r.h.s. |
| [in] | viscel | symmetric cell tensor |
| [in] | weighf | internal face weight between cells i j in case of tensor diffusion |
| [in] | weighb | boundary face weight for cells i in case of tensor diffusion |
| [in,out] | rhs | right hand side |
| void cs_anisotropic_diffusion_vector | ( | int | idtvar, |
| int | f_id, | ||
| const cs_var_cal_opt_t | var_cal_opt, | ||
| int | inc, | ||
| int | ifaccp, | ||
| int | ivisep, | ||
| cs_real_3_t *restrict | pvar, | ||
| const cs_real_3_t *restrict | pvara, | ||
| const cs_int_t | bc_type[], | ||
| const cs_real_3_t | coefav[], | ||
| const cs_real_33_t | coefbv[], | ||
| const cs_real_3_t | cofafv[], | ||
| const cs_real_33_t | cofbfv[], | ||
| const cs_real_33_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| const cs_real_t | secvif[], | ||
| cs_real_3_t *restrict | rhs | ||
| ) |
Add the explicit part of the diffusion terms with a symmetric tensorial diffusivity for a transport equation of a vector field
.
More precisely, the right hand side
is updated as follows:
Warning:
has already been initialized before calling diftnv!| [in] | idtvar | indicator of the temporal scheme |
| [in] | f_id | index of the current variable |
| [in] | var_cal_opt | variable calculation options |
| [in] | inc | indicator
|
| [in] | ifaccp | indicator
|
| [in] | ivisep | indicator to take ![]()
|
| [in] | pvar | solved variable (current time step) |
| [in] | pvara | solved variable (previous time step) |
| [in] | bc_type | boundary condition type |
| [in] | coefav | boundary condition array for the variable (Explicit part) |
| [in] | coefbv | boundary condition array for the variable (Implicit part) |
| [in] | cofafv | boundary condition array for the diffusion of the variable (Explicit part) |
| [in] | cofbfv | boundary condition array for the diffusion of the variable (Implicit part) |
| [in] | i_visc | at interior faces for the r.h.s. |
| [in] | b_visc | at border faces for the r.h.s. |
| [in] | secvif | secondary viscosity at interior faces |
| [in,out] | rhs | right hand side |
| void cs_convection_diffusion_scalar | ( | int | idtvar, |
| int | f_id, | ||
| const cs_var_cal_opt_t | var_cal_opt, | ||
| int | icvflb, | ||
| int | inc, | ||
| int | iccocg, | ||
| int | ifaccp, | ||
| cs_real_t *restrict | pvar, | ||
| const cs_real_t *restrict | pvara, | ||
| const cs_int_t | bc_type[], | ||
| const cs_int_t | icvfli[], | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_massflux[], | ||
| const cs_real_t | b_massflux[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| cs_real_t *restrict | rhs | ||
| ) |
Add the explicit part of the convection/diffusion terms of a standard transport equation of a scalar field
.
More precisely, the right hand side
is updated as follows:
Warning:
has already been initialized before calling bilsc2!| [in] | idtvar | indicator of the temporal scheme |
| [in] | f_id | field id (or -1) |
| [in] | var_cal_opt | variable calculation options |
| [in] | icvflb | global indicator of boundary convection flux
|
| [in] | inc | indicator
|
| [in] | iccocg | indicator
|
| [in] | ifaccp | indicator
|
| [in] | pvar | solved variable (current time step) |
| [in] | pvara | solved variable (previous time step) |
| [in] | bc_type | boundary condition type |
| [in] | icvfli | boundary face indicator array of convection flux
|
| [in] | coefap | boundary condition array for the variable (Explicit part) |
| [in] | coefbp | boundary condition array for the variable (Implicit part) |
| [in] | cofafp | boundary condition array for the diffusion of the variable (Explicit part) |
| [in] | cofbfp | boundary condition array for the diffusion of the variable (Implicit part) |
| [in] | i_massflux | mass flux at interior faces |
| [in] | b_massflux | mass flux at boundary faces |
| [in] | i_visc | at interior faces for the r.h.s. |
| [in] | b_visc | at border faces for the r.h.s. |
| [in,out] | rhs | right hand side |
| void cs_convection_diffusion_thermal | ( | int | idtvar, |
| int | f_id, | ||
| const cs_var_cal_opt_t | var_cal_opt, | ||
| int | inc, | ||
| int | iccocg, | ||
| int | ifaccp, | ||
| cs_real_t *restrict | pvar, | ||
| const cs_real_t *restrict | pvara, | ||
| const cs_int_t | bc_type[], | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_massflux[], | ||
| const cs_real_t | b_massflux[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| const cs_real_t | xcpp[], | ||
| cs_real_t *restrict | rhs | ||
| ) |
Add the explicit part of the convection/diffusion terms of a transport equation of a scalar field
such as the temperature.
More precisely, the right hand side
is updated as follows:
Warning:
has already been initialized before calling bilsct!
| [in] | idtvar | indicator of the temporal scheme |
| [in] | f_id | index of the current variable |
| [in] | var_cal_opt | variable calculation options |
| [in] | inc | indicator
|
| [in] | iccocg | indicator
|
| [in] | ifaccp | indicator
|
| [in] | pvar | solved variable (current time step) |
| [in] | pvara | solved variable (previous time step) |
| [in] | bc_type | boundary condition type |
| [in] | coefap | boundary condition array for the variable (Explicit part) |
| [in] | coefbp | boundary condition array for the variable (Implicit part) |
| [in] | cofafp | boundary condition array for the diffusion of the variable (Explicit part) |
| [in] | cofbfp | boundary condition array for the diffusion of the variable (Implicit part) |
| [in] | i_massflux | mass flux at interior faces |
| [in] | b_massflux | mass flux at boundary faces |
| [in] | i_visc | at interior faces for the r.h.s. |
| [in] | b_visc | at border faces for the r.h.s. |
| [in] | xcpp | array of specific heat ( ) |
| [in,out] | rhs | right hand side |
| void cs_convection_diffusion_vector | ( | int | idtvar, |
| int | f_id, | ||
| const cs_var_cal_opt_t | var_cal_opt, | ||
| int | icvflb, | ||
| int | inc, | ||
| int | ifaccp, | ||
| int | ivisep, | ||
| cs_real_3_t *restrict | pvar, | ||
| const cs_real_3_t *restrict | pvara, | ||
| const cs_int_t | bc_type[], | ||
| const cs_int_t | icvfli[], | ||
| const cs_real_3_t | coefav[], | ||
| const cs_real_33_t | coefbv[], | ||
| const cs_real_3_t | cofafv[], | ||
| const cs_real_33_t | cofbfv[], | ||
| const cs_real_t | i_massflux[], | ||
| const cs_real_t | b_massflux[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| const cs_real_t | secvif[], | ||
| cs_real_3_t *restrict | rhs | ||
| ) |
Add the explicit part of the convection/diffusion terms of a transport equation of a vector field
.
More precisely, the right hand side
is updated as follows:
Remark: if ivisep = 1, then we also take
, where
is the secondary viscosity, i.e. usually
.
Warning:
has already been initialized before calling bilsc!| [in] | idtvar | indicator of the temporal scheme |
| [in] | f_id | index of the current variable |
| [in] | var_cal_opt | variable calculation options |
| [in] | icvflb | global indicator of boundary convection flux
|
| [in] | inc | indicator
|
| [in] | ifaccp | indicator
|
| [in] | ivisep | indicator to take ![]()
|
| [in] | pvar | solved velocity (current time step) |
| [in] | pvara | solved velocity (previous time step) |
| [in] | bc_type | boundary condition type |
| [in] | icvfli | boundary face indicator array of convection flux
|
| [in] | coefav | boundary condition array for the variable (Explicit part) |
| [in] | coefbv | boundary condition array for the variable (Implicit part) |
| [in] | cofafv | boundary condition array for the diffusion of the variable (Explicit part) |
| [in] | cofbfv | boundary condition array for the diffusion of the variable (Implicit part) |
| [in] | i_massflux | mass flux at interior faces |
| [in] | b_massflux | mass flux at boundary faces |
| [in] | i_visc | at interior faces for the r.h.s. |
| [in] | b_visc | at border faces for the r.h.s. |
| [in] | secvif | secondary viscosity at interior faces |
| [in,out] | rhs | right hand side |
| void cs_diffusion_potential | ( | const cs_mesh_t * | m, |
| cs_mesh_quantities_t * | fvq, | ||
| int | init, | ||
| int | inc, | ||
| int | imrgra, | ||
| int | iccocg, | ||
| int | nswrgp, | ||
| int | imligp, | ||
| int | iphydp, | ||
| int | iwarnp, | ||
| double | epsrgp, | ||
| double | climgp, | ||
| double | extrap, | ||
| cs_real_3_t *restrict | frcxt, | ||
| cs_real_t *restrict | pvar, | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| const cs_real_t | viselx[], | ||
| const cs_real_t | visely[], | ||
| const cs_real_t | viselz[], | ||
| cs_real_t *restrict | diverg | ||
| ) |
Update the cell mass flux divergence with the face pressure (or pressure increment, or pressure double increment) gradient.
| [in] | m | pointer to mesh |
| [in] | fvq | pointer to finite volume quantities |
| [in] | init | indicator
|
| [in] | inc | indicator
|
| [in] | imrgra | indicator
|
| [in] | iccocg | indicator
|
| [in] | nswrgp | number of reconstruction sweeps for the gradients |
| [in] | imligp | clipping gradient method
|
| [in] | iphydp | hydrostatic pressure indicator |
| [in] | iwarnp | verbosity |
| [in] | epsrgp | relative precision for the gradient reconstruction |
| [in] | climgp | clipping coeffecient for the computation of the gradient |
| [in] | extrap | coefficient for extrapolation of the gradient |
| [in] | frcxt | body force creating the hydrostatic pressure |
| [in] | pvar | solved variable (current time step) |
| [in] | coefap | boundary condition array for the variable (Explicit part) |
| [in] | coefbp | boundary condition array for the variable (Implicit part) |
| [in] | cofafp | boundary condition array for the diffusion of the variable (Explicit part) |
| [in] | cofbfp | boundary condition array for the diffusion of the variable (Implicit part) |
| [in] | i_visc | at interior faces for the r.h.s. |
| [in] | b_visc | at border faces for the r.h.s. |
| [in] | viselx | viscosity by cell, dir x |
| [in] | visely | viscosity by cell, dir y |
| [in] | viselz | viscosity by cell, dir z |
| [in,out] | diverg | mass flux divergence |
| void cs_face_anisotropic_diffusion_potential | ( | const cs_mesh_t * | m, |
| cs_mesh_quantities_t * | fvq, | ||
| int | init, | ||
| int | inc, | ||
| int | imrgra, | ||
| int | iccocg, | ||
| int | nswrgp, | ||
| int | imligp, | ||
| int | ircflp, | ||
| int | iphydp, | ||
| int | iwarnp, | ||
| double | epsrgp, | ||
| double | climgp, | ||
| double | extrap, | ||
| cs_real_3_t *restrict | frcxt, | ||
| cs_real_t *restrict | pvar, | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| cs_real_6_t *restrict | viscel, | ||
| const cs_real_2_t | weighf[], | ||
| const cs_real_t | weighb[], | ||
| cs_real_t *restrict | i_massflux, | ||
| cs_real_t *restrict | b_massflux | ||
| ) |
Add the explicit part of the pressure gradient term to the mass flux in case of anisotropic diffusion of the pressure field
.
More precisely, the mass flux side
is updated as follows:
| [in] | m | pointer to mesh |
| [in] | fvq | pointer to finite volume quantities |
| [in] | init | indicator
|
| [in] | inc | indicator
|
| [in] | imrgra | indicator
|
| [in] | iccocg | indicator
|
| [in] | nswrgp | number of reconstruction sweeps for the gradients |
| [in] | imligp | clipping gradient method
|
| [in] | ircflp | indicator
|
| [in] | iphydp | indicator
|
| [in] | iwarnp | verbosity |
| [in] | epsrgp | relative precision for the gradient reconstruction |
| [in] | climgp | clipping coeffecient for the computation of the gradient |
| [in] | extrap | coefficient for extrapolation of the gradient |
| [in] | frcxt | body force creating the hydrostatic pressure |
| [in] | pvar | solved variable (pressure) |
| [in] | coefap | boundary condition array for the variable (Explicit part) |
| [in] | coefbp | boundary condition array for the variable (Implicit part) |
| [in] | cofafp | boundary condition array for the diffusion of the variable (Explicit part) |
| [in] | cofbfp | boundary condition array for the diffusion of the variable (Implicit part) |
| [in] | i_visc | at interior faces for the r.h.s. |
| [in] | b_visc | at border faces for the r.h.s. |
| [in] | viscel | symmetric cell tensor |
| [in] | weighf | internal face weight between cells i j in case of tensor diffusion |
| [in] | weighb | boundary face weight for cells i in case of tensor diffusion |
| [in,out] | i_massflux | mass flux at interior faces |
| [in,out] | b_massflux | mass flux at boundary faces |
| void cs_face_diffusion_potential | ( | const cs_mesh_t * | m, |
| cs_mesh_quantities_t * | fvq, | ||
| int | init, | ||
| int | inc, | ||
| int | imrgra, | ||
| int | iccocg, | ||
| int | nswrgp, | ||
| int | imligp, | ||
| int | iphydp, | ||
| int | iwarnp, | ||
| double | epsrgp, | ||
| double | climgp, | ||
| double | extrap, | ||
| cs_real_3_t *restrict | frcxt, | ||
| cs_real_t *restrict | pvar, | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| const cs_real_t | viselx[], | ||
| const cs_real_t | visely[], | ||
| const cs_real_t | viselz[], | ||
| cs_real_t *restrict | i_massflux, | ||
| cs_real_t *restrict | b_massflux | ||
| ) |
Update the face mass flux with the face pressure (or pressure increment, or pressure double increment) gradient.
| [in] | m | pointer to mesh |
| [in] | fvq | pointer to finite volume quantities |
| [in] | init | indicator
|
| [in] | inc | indicator
|
| [in] | imrgra | indicator
|
| [in] | iccocg | indicator
|
| [in] | nswrgp | number of reconstruction sweeps for the gradients |
| [in] | imligp | clipping gradient method
|
| [in] | iphydp | hydrostatic pressure indicator |
| [in] | iwarnp | verbosity |
| [in] | epsrgp | relative precision for the gradient reconstruction |
| [in] | climgp | clipping coeffecient for the computation of the gradient |
| [in] | extrap | coefficient for extrapolation of the gradient |
| [in] | frcxt | body force creating the hydrostatic pressure |
| [in] | pvar | solved variable (current time step) |
| [in] | coefap | boundary condition array for the variable (Explicit part) |
| [in] | coefbp | boundary condition array for the variable (Implicit part) |
| [in] | cofafp | boundary condition array for the diffusion of the variable (Explicit part) |
| [in] | cofbfp | boundary condition array for the diffusion of the variable (Implicit part) |
| [in] | i_visc | at interior faces for the r.h.s. |
| [in] | b_visc | at border faces for the r.h.s. |
| [in] | viselx | viscosity by cell, dir x |
| [in] | visely | viscosity by cell, dir y |
| [in] | viselz | viscosity by cell, dir z |
| [in,out] | i_massflux | mass flux at interior faces |
| [in,out] | b_massflux | mass flux at boundary faces |
| void diften | ( | const cs_int_t *const | idtvar, |
| const cs_int_t *const | f_id, | ||
| const cs_var_cal_opt_t *const | var_cal_opt, | ||
| const cs_int_t *const | inc, | ||
| const cs_int_t *const | iccocg, | ||
| cs_real_t | pvar[], | ||
| const cs_real_t | pvara[], | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| cs_real_6_t | viscel[], | ||
| const cs_real_2_t | weighf[], | ||
| const cs_real_t | weighb[], | ||
| cs_real_t | rhs[] | ||
| ) |
| void diftnv | ( | const cs_int_t *const | idtvar, |
| const cs_int_t *const | f_id, | ||
| const cs_var_cal_opt_t *const | var_cal_opt, | ||
| const cs_int_t *const | inc, | ||
| const cs_int_t *const | ifaccp, | ||
| const cs_int_t *const | ivisep, | ||
| cs_real_3_t | pvar[], | ||
| const cs_real_3_t | pvara[], | ||
| const cs_int_t | bc_type[], | ||
| const cs_real_3_t | coefav[], | ||
| const cs_real_33_t | coefbv[], | ||
| const cs_real_3_t | cofafv[], | ||
| const cs_real_33_t | cofbfv[], | ||
| const cs_real_33_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| const cs_real_t | secvif[], | ||
| cs_real_3_t | rhs[] | ||
| ) |
| void itrgrp | ( | const cs_int_t *const | init, |
| const cs_int_t *const | inc, | ||
| const cs_int_t *const | imrgra, | ||
| const cs_int_t *const | iccocg, | ||
| const cs_int_t *const | nswrgp, | ||
| const cs_int_t *const | imligp, | ||
| const cs_int_t *const | iphydp, | ||
| const cs_int_t *const | iwarnp, | ||
| const cs_real_t *const | epsrgp, | ||
| const cs_real_t *const | climgp, | ||
| const cs_real_t *const | extrap, | ||
| cs_real_3_t | frcxt[], | ||
| cs_real_t | pvar[], | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| const cs_real_t | viselx[], | ||
| const cs_real_t | visely[], | ||
| const cs_real_t | viselz[], | ||
| cs_real_t | diverg[] | ||
| ) |
| void itrgrv | ( | const cs_int_t *const | init, |
| const cs_int_t *const | inc, | ||
| const cs_int_t *const | imrgra, | ||
| const cs_int_t *const | iccocg, | ||
| const cs_int_t *const | nswrgp, | ||
| const cs_int_t *const | imligp, | ||
| const cs_int_t *const | ircflp, | ||
| const cs_int_t *const | iphydp, | ||
| const cs_int_t *const | iwarnp, | ||
| const cs_real_t *const | epsrgp, | ||
| const cs_real_t *const | climgp, | ||
| const cs_real_t *const | extrap, | ||
| cs_real_3_t | frcxt[], | ||
| cs_real_t | pvar[], | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| cs_real_6_t | viscel[], | ||
| const cs_real_2_t | weighf[], | ||
| const cs_real_t | weighb[], | ||
| cs_real_t | diverg[] | ||
| ) |
| void itrmas | ( | const cs_int_t *const | init, |
| const cs_int_t *const | inc, | ||
| const cs_int_t *const | imrgra, | ||
| const cs_int_t *const | iccocg, | ||
| const cs_int_t *const | nswrgp, | ||
| const cs_int_t *const | imligp, | ||
| const cs_int_t *const | iphydp, | ||
| const cs_int_t *const | iwarnp, | ||
| const cs_real_t *const | epsrgp, | ||
| const cs_real_t *const | climgp, | ||
| const cs_real_t *const | extrap, | ||
| cs_real_3_t | frcxt[], | ||
| cs_real_t | pvar[], | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| const cs_real_t | viselx[], | ||
| const cs_real_t | visely[], | ||
| const cs_real_t | viselz[], | ||
| cs_real_t | i_massflux[], | ||
| cs_real_t | b_massflux[] | ||
| ) |
| void itrmav | ( | const cs_int_t *const | init, |
| const cs_int_t *const | inc, | ||
| const cs_int_t *const | imrgra, | ||
| const cs_int_t *const | iccocg, | ||
| const cs_int_t *const | nswrgp, | ||
| const cs_int_t *const | imligp, | ||
| const cs_int_t *const | ircflp, | ||
| const cs_int_t *const | iphydp, | ||
| const cs_int_t *const | iwarnp, | ||
| const cs_real_t *const | epsrgp, | ||
| const cs_real_t *const | climgp, | ||
| const cs_real_t *const | extrap, | ||
| cs_real_3_t | frcxt[], | ||
| cs_real_t | pvar[], | ||
| const cs_real_t | coefap[], | ||
| const cs_real_t | coefbp[], | ||
| const cs_real_t | cofafp[], | ||
| const cs_real_t | cofbfp[], | ||
| const cs_real_t | i_visc[], | ||
| const cs_real_t | b_visc[], | ||
| cs_real_6_t | viscel[], | ||
| const cs_real_2_t | weighf[], | ||
| const cs_real_t | weighb[], | ||
| cs_real_t | i_massflux[], | ||
| cs_real_t | b_massflux[] | ||
| ) |
1.8.7