My Project
programmer's documentation
|
#include "cs_defs.h"
Go to the source code of this file.
Functions | |
void | cs_balance_scalar (int idtvar, int f_id, int imucpp, int imasac, int inc, int iccocg, cs_var_cal_opt_t *var_cal_opt, 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_massflux[], const cs_real_t b_massflux[], const cs_real_t i_visc[], const cs_real_t b_visc[], cs_real_6_t viscel[], const cs_real_t xcpp[], const cs_real_2_t weighf[], const cs_real_t weighb[], int icvflb, const int icvfli[], cs_real_t smbrp[]) |
Wrapper to the function which adds the explicit part of the convection/diffusion terms of a transport equation of a scalar field . More... | |
void | cs_balance_vector (int idtvar, int f_id, int imasac, int inc, int ivisep, cs_var_cal_opt_t *var_cal_opt, cs_real_3_t pvar[], const cs_real_3_t pvara[], 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[], const cs_real_t secvib[], cs_real_6_t viscel[], const cs_real_2_t weighf[], const cs_real_t weighb[], int icvflb, const int icvfli[], cs_real_3_t smbr[]) |
Wrapper to the function which adds the explicit part of the convection/diffusion terms of a transport equation of a vector field . More... | |
void | cs_balance_tensor (int idtvar, int f_id, int imasac, int inc, cs_var_cal_opt_t *var_cal_opt, cs_real_6_t pvar[], const cs_real_6_t pvara[], const cs_real_6_t coefa[], const cs_real_66_t coefb[], const cs_real_6_t cofaf[], const cs_real_66_t cofbf[], 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_6_t viscel[], const cs_real_2_t weighf[], const cs_real_t weighb[], int icvflb, const int icvfli[], cs_real_6_t smbrp[]) |
Wrapper to the function which adds the explicit part of the convection/diffusion terms of a transport equation of a tensor field . More... | |
void cs_balance_scalar | ( | int | idtvar, |
int | f_id, | ||
int | imucpp, | ||
int | imasac, | ||
int | inc, | ||
int | iccocg, | ||
cs_var_cal_opt_t * | var_cal_opt, | ||
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_massflux[], | ||
const cs_real_t | b_massflux[], | ||
const cs_real_t | i_visc[], | ||
const cs_real_t | b_visc[], | ||
cs_real_6_t | viscel[], | ||
const cs_real_t | xcpp[], | ||
const cs_real_2_t | weighf[], | ||
const cs_real_t | weighb[], | ||
int | icvflb, | ||
const int | icvfli[], | ||
cs_real_t | smbrp[] | ||
) |
Wrapper to the function which adds the explicit part of the convection/diffusion terms of a transport equation of a scalar field .
More precisely, the right hand side is updated as follows:
Warning:
Options for the convective scheme:
[in] | idtvar | indicator of the temporal scheme |
[in] | f_id | field id (or -1) |
[in] | imucpp | indicator
|
[in] | imasac | take mass accumulation into account? |
[in] | inc | indicator
|
[in] | iccocg | indicator
|
[in] | var_cal_opt | pointer to a cs_var_cal_opt_t structure which contains variable calculation options |
[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_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 boundary faces for the r.h.s. |
[in] | viscel | symmetric cell tensor |
[in] | xcpp | array of specific heat (Cp) |
[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] | icvflb | global indicator of boundary convection flux
|
[in] | icvfli | boundary face indicator array of convection flux
|
[in,out] | smbrp | right hand side |
More precisely, the right hand side is updated as follows:
Warning:
Options for the convective scheme:
[in] | idtvar | indicator of the temporal scheme |
[in] | f_id | field id (or -1) |
[in] | imucpp | indicator
|
[in] | imasac | take mass accumulation into account? |
[in] | inc | indicator
|
[in] | iccocg | indicator
|
[in] | var_cal_opt | pointer to a cs_var_cal_opt_t structure which contains variable calculation options |
[in] | pvar | solved variable (current time step) may be NULL if pvara != NULL |
[in] | pvara | solved variable (previous time step) may be NULL if pvar != NULL |
[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 boundary faces for the r.h.s. |
[in] | viscel | symmetric cell tensor |
[in] | xcpp | array of specific heat (Cp) |
[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] | icvflb | global indicator of boundary convection flux
|
[in] | icvfli | boundary face indicator array of convection flux
|
[in,out] | smbrp | right hand side |
void cs_balance_tensor | ( | int | idtvar, |
int | f_id, | ||
int | imasac, | ||
int | inc, | ||
cs_var_cal_opt_t * | var_cal_opt, | ||
cs_real_6_t | pvar[], | ||
const cs_real_6_t | pvara[], | ||
const cs_real_6_t | coefa[], | ||
const cs_real_66_t | coefb[], | ||
const cs_real_6_t | cofaf[], | ||
const cs_real_66_t | cofbf[], | ||
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_6_t | viscel[], | ||
const cs_real_2_t | weighf[], | ||
const cs_real_t | weighb[], | ||
int | icvflb, | ||
const int | icvfli[], | ||
cs_real_6_t | smbrp[] | ||
) |
Wrapper to the function which adds the explicit part of the convection/diffusion terms of a transport equation of a tensor field .
More precisely, the right hand side is updated as follows:
Warning:
Options for the convective scheme:
[in] | idtvar | indicator of the temporal scheme |
[in] | f_id | field id (or -1) |
[in] | imasac | take mass accumulation into account? |
[in] | inc | indicator |
[in] | var_cal_opt | pointer to a cs_var_cal_opt_t structure which contains variable calculation options |
[in] | pvar | solved velocity (current time step) |
[in] | pvara | solved velocity (previous time step) |
[in] | coefa | boundary condition array for the variable (Explicit part) |
[in] | coefb | boundary condition array for the variable (Impplicit part) |
[in] | cofaf | boundary condition array for the diffusion of the variable (Explicit part) |
[in] | cofbf | 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 boundary 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] | icvflb | global indicator of boundary convection flux
|
[in] | icvfli | boundary face indicator array of convection flux
|
[in,out] | smbrp | right hand side |
void cs_balance_vector | ( | int | idtvar, |
int | f_id, | ||
int | imasac, | ||
int | inc, | ||
int | ivisep, | ||
cs_var_cal_opt_t * | var_cal_opt, | ||
cs_real_3_t | pvar[], | ||
const cs_real_3_t | pvara[], | ||
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[], | ||
const cs_real_t | secvib[], | ||
cs_real_6_t | viscel[], | ||
const cs_real_2_t | weighf[], | ||
const cs_real_t | weighb[], | ||
int | icvflb, | ||
const int | icvfli[], | ||
cs_real_3_t | smbr[] | ||
) |
Wrapper to the function which adds 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:
Options for the convective scheme:
[in] | idtvar | indicator of the temporal scheme |
[in] | f_id | field id (or -1) |
[in] | imasac | take mass accumulation into account? |
[in] | inc | indicator
|
[in] | ivisep | indicator to take
|
[in] | var_cal_opt | pointer to a cs_var_cal_opt_t structure which contains variable calculation options |
[in] | pvar | solved velocity (current time step) |
[in] | pvara | solved velocity (previous time step) |
[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 boundary faces for the r.h.s. |
[in] | secvif | secondary viscosity at interior faces |
[in] | secvib | secondary viscosity at boundary faces |
[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] | icvflb | global indicator of boundary convection flux
|
[in] | icvfli | boundary face indicator array of convection flux
|
[in,out] | smbr | right hand side |