Go to the source code of this file.
Functions | |
void | cs_balance_scalar (int idtvar, int f_id, int imucpp, int imasac, int inc, cs_equation_param_t *eqp, cs_real_t pvar[], const cs_real_t pvara[], const cs_field_bc_coeffs_t *bc_coeffs, 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 \( \varia \). More... | |
void | cs_balance_vector (int idtvar, int f_id, int imasac, int inc, int ivisep, cs_equation_param_t *eqp, cs_real_3_t pvar[], const cs_real_3_t pvara[], const cs_field_bc_coeffs_t *bc_coeffs_v, 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 i_pvar[], cs_real_3_t b_pvar[], 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 \( \vect{\varia} \). More... | |
void | cs_balance_tensor (int idtvar, int f_id, int imasac, int inc, cs_equation_param_t *eqp, cs_real_6_t pvar[], const cs_real_6_t pvara[], const cs_field_bc_coeffs_t *bc_coeffs_ts, 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 \( \tens{\varia} \). More... | |
void cs_balance_scalar | ( | int | idtvar, |
int | f_id, | ||
int | imucpp, | ||
int | imasac, | ||
int | inc, | ||
cs_equation_param_t * | eqp, | ||
cs_real_t | pvar[], | ||
const cs_real_t | pvara[], | ||
const cs_field_bc_coeffs_t * | bc_coeffs, | ||
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 \( \varia \).
More precisely, the right hand side \( Rhs \) is updated as follows:
\[ Rhs = Rhs - \sum_{\fij \in \Facei{\celli}} \left( \dot{m}_\ij \left( \varia_\fij - \varia_\celli \right) - \mu_\fij \gradv_\fij \varia \cdot \vect{S}_\ij \right) \]
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] | eqp | pointer to a cs_equation_param_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] | bc_coeffs | boundary condition structure for the variable |
[in] | i_massflux | mass flux at interior faces |
[in] | b_massflux | mass flux at boundary faces |
[in] | i_visc | \( \mu_\fij \dfrac{S_\fij}{\ipf \jpf} \) at interior faces for the r.h.s. |
[in] | b_visc | \( \mu_\fib \dfrac{S_\fib}{\ipf \centf} \) at boundary faces for the r.h.s. |
[in] | viscel | symmetric cell tensor \( \tens{\mu}_\celli \) |
[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 \( \vect{Rhs} \) |
void cs_balance_tensor | ( | int | idtvar, |
int | f_id, | ||
int | imasac, | ||
int | inc, | ||
cs_equation_param_t * | eqp, | ||
cs_real_6_t | pvar[], | ||
const cs_real_6_t | pvara[], | ||
const cs_field_bc_coeffs_t * | bc_coeffs_ts, | ||
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 \( \tens{\varia} \).
More precisely, the right hand side \( \vect{Rhs} \) is updated as follows:
\[ \tens{Rhs} = \tens{Rhs} - \sum_{\fij \in \Facei{\celli}} \left( \dot{m}_\ij \left( \tens{\varia}_\fij - \tens{\varia}_\celli \right) - \mu_\fij \gradt_\fij \tens{\varia} \cdot \tens{S}_\ij \right) \]
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] | eqp | pointer to a cs_equation_param_t structure which contains variable calculation options |
[in] | pvar | solved velocity (current time step) |
[in] | pvara | solved velocity (previous time step) |
[in] | bc_coeffs_ts | boundary condition structure for the variable |
[in] | i_massflux | mass flux at interior faces |
[in] | b_massflux | mass flux at boundary faces |
[in] | i_visc | \( \mu_\fij \dfrac{S_\fij}{\ipf \jpf} \) at interior faces for the r.h.s. |
[in] | b_visc | \( \mu_\fib \dfrac{S_\fib}{\ipf \centf} \) at boundary faces for the r.h.s. |
[in] | viscel | symmetric cell tensor \( \tens{\mu}_\celli \) |
[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 \( \vect{Rhs} \) |
void cs_balance_vector | ( | int | idtvar, |
int | f_id, | ||
int | imasac, | ||
int | inc, | ||
int | ivisep, | ||
cs_equation_param_t * | eqp, | ||
cs_real_3_t | pvar[], | ||
const cs_real_3_t | pvara[], | ||
const cs_field_bc_coeffs_t * | bc_coeffs_v, | ||
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 | i_pvar[], | ||
cs_real_3_t | b_pvar[], | ||
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 \( \vect{\varia} \).
More precisely, the right hand side \( \vect{Rhs} \) is updated as follows:
\[ \vect{Rhs} = \vect{Rhs} - \sum_{\fij \in \Facei{\celli}} \left( \dot{m}_\ij \left( \vect{\varia}_\fij - \vect{\varia}_\celli \right) - \mu_\fij \gradt_\fij \vect{\varia} \cdot \vect{S}_\ij \right) \]
Remark: if ivisep = 1, then we also take \( \mu \transpose{\gradt\vect{\varia}} + \lambda \trace{\gradt\vect{\varia}} \), where \( \lambda \) is the secondary viscosity, i.e. usually \( -\frac{2}{3} \mu \).
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 \( \divv \left(\mu \gradt \transpose{\vect{a}} \right) -2/3 \grad\left( \mu \dive \vect{a} \right)\)
|
[in] | eqp | pointer to a cs_equation_param_t structure which contains variable calculation options |
[in] | pvar | solved velocity (current time step) |
[in] | pvara | solved velocity (previous time step) |
[in] | bc_coeffs_v | boundary condition structure for the variable |
[in] | i_massflux | mass flux at interior faces |
[in] | b_massflux | mass flux at boundary faces |
[in] | i_visc | \( \mu_\fij \dfrac{S_\fij}{\ipf \jpf} \) at interior faces for the r.h.s. |
[in] | b_visc | \( \mu_\fib \dfrac{S_\fib}{\ipf \centf} \) 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 \( \tens{\mu}_\celli \) |
[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 \( \vect{Rhs} \) |