My Project
programmer's documentation
|
Go to the source code of this file.
Functions | |
void | CS_PROCF (inimav, INIMAV)(const cs_int_t *const f_id |
void | CS_PROCF (divmas, DIVMAS)(const cs_int_t *const init |
void | CS_PROCF (divmat, DIVMAT)(const cs_int_t *const init |
void | CS_PROCF (projts, PROJTS)(const cs_int_t *const init |
void | CS_PROCF (projtv, PROJTV)(const cs_int_t *const init |
void | CS_PROCF (divrij, DIVRIJ)(const cs_int_t *const f_id |
void | cs_mass_flux (const cs_mesh_t *m, cs_mesh_quantities_t *fvq, int f_id, int itypfl, int iflmb0, int init, int inc, int imrgra, int nswrgu, int imligu, int iwarnu, double epsrgu, double climgu, const cs_real_t rom[], const cs_real_t romb[], const cs_real_3_t vel[], const cs_real_3_t coefav[], const cs_real_33_t coefbv[], cs_real_t *restrict i_massflux, cs_real_t *restrict b_massflux) |
Add to the mass flux . More... | |
void | cs_divergence (const cs_mesh_t *m, int init, const cs_real_t i_massflux[], const cs_real_t b_massflux[], cs_real_t *restrict diverg) |
Add the integrated mass flux on the cells. More... | |
void | cs_tensor_divergence (const cs_mesh_t *m, int init, const cs_real_3_t i_massflux[], const cs_real_3_t b_massflux[], cs_real_3_t *restrict diverg) |
Add the integrated mass flux on the cells for a tensor variable. More... | |
void | cs_ext_force_flux (const cs_mesh_t *m, cs_mesh_quantities_t *fvq, int init, int nswrgu, const cs_real_3_t frcxt[], const cs_real_t cofbfp[], cs_real_t *restrict i_massflux, cs_real_t *restrict b_massflux, 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[]) |
Project the external source terms to the faces in coherence with cs_face_diffusion_scalar for the improved hydrostatic pressure algorithm (iphydr=1). More... | |
void | cs_ext_force_anisotropic_flux (const cs_mesh_t *m, cs_mesh_quantities_t *fvq, int init, int nswrgp, int ircflp, const cs_real_3_t frcxt[], 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[], cs_real_t *restrict i_massflux, cs_real_t *restrict b_massflux) |
Project the external source terms to the faces in coherence with cs_face_anisotropic_diffusion_scalar for the improved hydrostatic pressure algorithm (iphydr=1). More... | |
void | cs_tensor_face_flux (const cs_mesh_t *m, cs_mesh_quantities_t *fvq, int f_id, int itypfl, int iflmb0, int init, int inc, int imrgra, int nswrgu, int imligu, int iwarnu, double epsrgu, double climgu, const cs_real_t c_rho[], const cs_real_t b_rho[], const cs_real_6_t c_var[], const cs_real_6_t coefav[], const cs_real_66_t coefbv[], cs_real_3_t *restrict i_massflux, cs_real_3_t *restrict b_massflux) |
Add to a flux. More... | |
Variables | |
void const cs_int_t *const | itypfl |
void const cs_int_t *const const cs_int_t *const | iflmb0 |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const | init |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const | inc |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const | imrgra |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const | nswrgu |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const | imligu |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const | iwarnu |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const | epsrgu |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const | climgu |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t | rom [] |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t const cs_real_t | romb [] |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t const cs_real_t const cs_real_3_t | vel [] |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t const cs_real_t const cs_real_3_t const cs_real_3_t | coefav [] |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t const cs_real_t const cs_real_3_t const cs_real_3_t const cs_real_33_t | coefbv [] |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t const cs_real_t const cs_real_3_t const cs_real_3_t const cs_real_33_t cs_real_t | i_massflux [] |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t const cs_real_t const cs_real_3_t const cs_real_3_t const cs_real_33_t cs_real_t cs_real_t | b_massflux [] |
void const cs_real_t const cs_real_t cs_real_t | diverg [] |
void const cs_int_t *const const cs_real_3_t | frcxt [] |
void const cs_int_t *const const cs_real_3_t const cs_real_t | cofbfp [] |
void const cs_int_t *const const cs_real_3_t const cs_real_t cs_real_t cs_real_t const cs_real_t | i_visc [] |
void const cs_int_t *const const cs_real_3_t const cs_real_t cs_real_t cs_real_t const cs_real_t const cs_real_t | b_visc [] |
void const cs_int_t *const const cs_real_3_t const cs_real_t cs_real_t cs_real_t const cs_real_t const cs_real_t const cs_real_t | viselx [] |
void const cs_int_t *const const cs_real_3_t const cs_real_t cs_real_t cs_real_t const cs_real_t const cs_real_t const cs_real_t const cs_real_t | visely [] |
void const cs_int_t *const const cs_real_3_t const cs_real_t cs_real_t cs_real_t const cs_real_t const cs_real_t const cs_real_t const cs_real_t const cs_real_t | viselz [] |
void const cs_int_t *const const cs_int_t *const | ircflp |
void const cs_int_t *const const cs_int_t *const const cs_real_3_t const cs_real_t const cs_real_t const cs_real_t cs_real_6_t | viscel [] |
void const cs_int_t *const const cs_int_t *const const cs_real_3_t const cs_real_t const cs_real_t const cs_real_t cs_real_6_t const cs_real_2_t | weighf [] |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t const cs_real_t const cs_real_6_t | tensorvel [] |
void cs_divergence | ( | const cs_mesh_t * | m, |
int | init, | ||
const cs_real_t | i_massflux[], | ||
const cs_real_t | b_massflux[], | ||
cs_real_t *restrict | diverg | ||
) |
Add the integrated mass flux on the cells.
[in] | m | pointer to mesh |
[in] | init | indicator
|
[in] | i_massflux | mass flux at interior faces |
[in] | b_massflux | mass flux at boundary faces |
[in,out] | diverg | mass flux divergence |
void cs_ext_force_anisotropic_flux | ( | const cs_mesh_t * | m, |
cs_mesh_quantities_t * | fvq, | ||
int | init, | ||
int | nswrgp, | ||
int | ircflp, | ||
const cs_real_3_t | frcxt[], | ||
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[], | ||
cs_real_t *restrict | i_massflux, | ||
cs_real_t *restrict | b_massflux | ||
) |
Project the external source terms to the faces in coherence with cs_face_anisotropic_diffusion_scalar for the improved hydrostatic pressure algorithm (iphydr=1).
[in] | m | pointer to mesh |
[in] | fvq | pointer to finite volume quantities |
[in] | init | indicator
|
[in] | nswrgp | number of reconstruction sweeps for the gradients |
[in] | ircflp | indicator
|
[in] | frcxt | body force creating the hydrostatic pressure |
[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,out] | i_massflux | mass flux at interior faces |
[in,out] | b_massflux | mass flux at boundary faces |
void cs_ext_force_flux | ( | const cs_mesh_t * | m, |
cs_mesh_quantities_t * | fvq, | ||
int | init, | ||
int | nswrgu, | ||
const cs_real_3_t | frcxt[], | ||
const cs_real_t | cofbfp[], | ||
cs_real_t *restrict | i_massflux, | ||
cs_real_t *restrict | b_massflux, | ||
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[] | ||
) |
Project the external source terms to the faces in coherence with cs_face_diffusion_scalar for the improved hydrostatic pressure algorithm (iphydr=1).
[in] | m | pointer to mesh |
[in] | fvq | pointer to finite volume quantities |
[in] | init | indicator
|
[in] | nswrgu | number of reconstruction sweeps for the gradients |
[in] | frcxt | body force creating the hydrostatic pressure |
[in] | cofbfp | boundary condition array for the diffusion of the variable (implicit part) |
[in,out] | i_massflux | mass flux at interior faces |
[in,out] | 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] | viselx | viscosity by cell, dir x |
[in] | visely | viscosity by cell, dir y |
[in] | viselz | viscosity by cell, dir z |
void cs_mass_flux | ( | const cs_mesh_t * | m, |
cs_mesh_quantities_t * | fvq, | ||
int | f_id, | ||
int | itypfl, | ||
int | iflmb0, | ||
int | init, | ||
int | inc, | ||
int | imrgra, | ||
int | nswrgu, | ||
int | imligu, | ||
int | iwarnu, | ||
double | epsrgu, | ||
double | climgu, | ||
const cs_real_t | rom[], | ||
const cs_real_t | romb[], | ||
const cs_real_3_t | vel[], | ||
const cs_real_3_t | coefav[], | ||
const cs_real_33_t | coefbv[], | ||
cs_real_t *restrict | i_massflux, | ||
cs_real_t *restrict | b_massflux | ||
) |
Add to the mass flux .
For the reconstruction, is computed with the following approximated boundary conditions:
For the mass flux at the boundary we have:
The last equation uses some approximations detailed in the theory guide.
[in] | m | pointer to mesh |
[in] | fvq | pointer to finite volume quantities |
[in] | f_id | field id (or -1) |
[in] | itypfl | indicator (take rho into account or not)
|
[in] | iflmb0 | the mass flux is set to 0 on walls and symmetries if = 1 |
[in] | init | the mass flux is initialized to 0 if > 0 |
[in] | inc | indicator
|
[in] | imrgra | indicator
|
[in] | nswrgu | number of sweeps for the reconstruction of the gradients |
[in] | imligu | clipping gradient method
|
[in] | iwarnu | verbosity |
[in] | epsrgu | relative precision for the gradient reconstruction |
[in] | climgu | clipping coefficient for the computation of the gradient |
[in] | rom | cell density |
[in] | romb | density at boundary faces |
[in] | vel | vector variable |
[in] | coefav | boundary condition array for the variable (explicit part - vector array ) |
[in] | coefbv | boundary condition array for the variable (implicit part - 3x3 tensor array) |
[in,out] | i_massflux | mass flux at interior faces |
[in,out] | b_massflux | mass flux at boundary faces |
For the reconstruction, is computed with the following approximated boundary conditions:
For the mass flux at the boundary we have:
The last equation uses some approximations detailed in the theory guide.
[in] | m | pointer to mesh |
[in] | fvq | pointer to finite volume quantities |
[in] | f_id | field id (or -1) |
[in] | itypfl | indicator (take rho into account or not)
|
[in] | iflmb0 | the mass flux is set to 0 on symmetries if = 1 |
[in] | init | the mass flux is initialized to 0 if > 0 |
[in] | inc | indicator
|
[in] | imrgra | indicator
|
[in] | nswrgu | number of sweeps for the reconstruction of the gradients |
[in] | imligu | clipping gradient method
|
[in] | iwarnu | verbosity |
[in] | epsrgu | relative precision for the gradient reconstruction |
[in] | climgu | clipping coefficient for the computation of the gradient |
[in] | rom | cell density |
[in] | romb | density at boundary faces |
[in] | vel | vector variable |
[in] | coefav | boundary condition array for the variable (explicit part - vector array ) |
[in] | coefbv | boundary condition array for the variable (implicit part - 3x3 tensor array) |
[in,out] | i_massflux | mass flux at interior faces |
[in,out] | b_massflux | mass flux at boundary faces |
void CS_PROCF | ( | divmas | , |
DIVMAS | |||
) | const |
void CS_PROCF | ( | divmat | , |
DIVMAT | |||
) | const |
void CS_PROCF | ( | divrij | , |
DIVRIJ | |||
) | const |
void CS_PROCF | ( | inimav | , |
INIMAV | |||
) | const |
void CS_PROCF | ( | projts | , |
PROJTS | |||
) | const |
void CS_PROCF | ( | projtv | , |
PROJTV | |||
) | const |
void cs_tensor_divergence | ( | const cs_mesh_t * | m, |
int | init, | ||
const cs_real_3_t | i_massflux[], | ||
const cs_real_3_t | b_massflux[], | ||
cs_real_3_t *restrict | diverg | ||
) |
Add the integrated mass flux on the cells for a tensor variable.
[in] | m | pointer to mesh |
[in] | init | indicator
|
[in] | i_massflux | mass flux vector at interior faces |
[in] | b_massflux | mass flux vector at boundary faces |
[in,out] | diverg | mass flux divergence vector |
void cs_tensor_face_flux | ( | const cs_mesh_t * | m, |
cs_mesh_quantities_t * | fvq, | ||
int | f_id, | ||
int | itypfl, | ||
int | iflmb0, | ||
int | init, | ||
int | inc, | ||
int | imrgra, | ||
int | nswrgu, | ||
int | imligu, | ||
int | iwarnu, | ||
double | epsrgu, | ||
double | climgu, | ||
const cs_real_t | c_rho[], | ||
const cs_real_t | b_rho[], | ||
const cs_real_6_t | c_var[], | ||
const cs_real_6_t | coefav[], | ||
const cs_real_66_t | coefbv[], | ||
cs_real_3_t *restrict | i_massflux, | ||
cs_real_3_t *restrict | b_massflux | ||
) |
Add to a flux.
[in] | m | pointer to mesh |
[in] | fvq | pointer to finite volume quantities |
[in] | f_id | field id (or -1) |
[in] | itypfl | indicator (take rho into account or not)
|
[in] | iflmb0 | the mass flux is set to 0 on walls and symmetries if = 1 |
[in] | init | the mass flux is initialized to 0 if > 0 |
[in] | inc | indicator
|
[in] | imrgra | indicator
|
[in] | nswrgu | number of sweeps for the reconstruction of the gradients |
[in] | imligu | clipping gradient method
|
[in] | iwarnu | verbosity |
[in] | epsrgu | relative precision for the gradient reconstruction |
[in] | climgu | clipping coefficient for the computation of the gradient |
[in] | c_rho | cell density |
[in] | b_rho | density at boundary faces |
[in] | c_var | variable |
[in] | coefav | boundary condition array for the variable (explicit part - symmetric tensor array) |
[in] | coefbv | boundary condition array for the variable (implicit part - 6x6 symmetric tensor array) |
[in,out] | i_massflux | mass flux at interior faces |
[in,out] | b_massflux | mass flux at boundary faces |
[in] | m | pointer to mesh |
[in] | fvq | pointer to finite volume quantities |
[in] | f_id | field id (or -1) |
[in] | itypfl | indicator (take rho into account or not)
|
[in] | iflmb0 | the mass flux is set to 0 on symmetries if = 1 |
[in] | init | the mass flux is initialized to 0 if > 0 |
[in] | inc | indicator
|
[in] | imrgra | indicator
|
[in] | nswrgu | number of sweeps for the reconstruction of the gradients |
[in] | imligu | clipping gradient method
|
[in] | iwarnu | verbosity |
[in] | epsrgu | relative precision for the gradient reconstruction |
[in] | climgu | clipping coefficient for the computation of the gradient |
[in] | c_rho | cell density |
[in] | b_rho | density at boundary faces |
[in] | c_var | variable |
[in] | coefav | boundary condition array for the variable (explicit part - symmetric tensor array) |
[in] | coefbv | boundary condition array for the variable (implicit part - 6x6 symmetric tensor array) |
[in,out] | i_massflux | mass flux at interior faces |
[in,out] | b_massflux | mass flux at boundary faces |
void const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_real_t* const const cs_real_t* const const cs_real_t const cs_real_t const cs_real_6_t const cs_real_6_t const cs_real_66_t cs_real_3_t cs_real_3_t b_massflux[] |
void const cs_int_t* const const cs_int_t* const const cs_real_3_t const cs_real_t const cs_real_t const cs_real_t b_visc[] |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const climgu |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_6_t coefav |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_6_t const cs_real_66_t coefbv |
void const cs_int_t* const const cs_int_t* const const cs_real_3_t const cs_real_t cofbfp[] |
void const cs_real_3_t const cs_real_3_t cs_real_3_t diverg[] |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const epsrgu |
void const cs_int_t* const const cs_int_t* const const cs_real_3_t frcxt[] |
void const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_real_t* const const cs_real_t* const const cs_real_t const cs_real_t const cs_real_6_t const cs_real_6_t const cs_real_66_t cs_real_3_t i_massflux[] |
void const cs_int_t* const const cs_int_t* const const cs_real_3_t const cs_real_t const cs_real_t i_visc[] |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const imligu |
void const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const imrgra |
void const cs_int_t *const itypfl |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const iwarnu |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const nswrgu |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t rom |
void const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_int_t *const const cs_real_t *const const cs_real_t *const const cs_real_t const cs_real_t romb |
void const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_real_t* const const cs_real_t* const const cs_real_t const cs_real_t const cs_real_6_t tensorvel[] |
void const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_int_t* const const cs_real_t* const const cs_real_t* const const cs_real_t const cs_real_t const cs_real_3_t vel[] |
void const cs_int_t* const const cs_int_t* const const cs_real_3_t const cs_real_t const cs_real_t const cs_real_t cs_real_6_t viscel[] |
void const cs_int_t* const const cs_real_3_t const cs_real_t cs_real_t cs_real_t const cs_real_t const cs_real_t const cs_real_t viselx[] |
void const cs_int_t* const const cs_real_3_t const cs_real_t cs_real_t cs_real_t const cs_real_t const cs_real_t const cs_real_t const cs_real_t visely[] |
void const cs_int_t* const const cs_real_3_t const cs_real_t cs_real_t cs_real_t const cs_real_t const cs_real_t const cs_real_t const cs_real_t const cs_real_t viselz[] |
void const cs_int_t* const const cs_int_t* const const cs_real_3_t const cs_real_t const cs_real_t const cs_real_t cs_real_6_t const cs_real_2_t weighf[] |