Go to the source code of this file.
Functions | |
| void | cs_boundary_conditions_set_coeffs (int nvar, int iterns, int isvhb, int itrale, int italim, int itrfin, int ineefl, int itrfup, int isostd[], cs_real_t visvdr[], cs_real_t hbord[], cs_real_t theipb[], int nftcdt) |
| Translation of the boundary conditions given by the user in a form that fits to the solver. | |
| void | cs_boundary_conditions_set_coeffs_init (void) |
| Initialization of boundary condition arrays. | |
| static void | cs_boundary_conditions_set_neumann_scalar (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, cs_real_t qimp, cs_real_t hint) |
| Set Neumann BC for a scalar for a given face. | |
| static void | cs_boundary_conditions_set_neumann_scalar_hmg (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs) |
| Set homogeneous Neumann BC for a scalar for a given face. | |
| static void | cs_boundary_conditions_set_neumann_vector (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t qimpv[3], cs_real_t hint) |
| Set Neumann BC for a scalar for a given face. | |
| static void | cs_boundary_conditions_set_neumann_vector_aniso (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t qimpv[3], const cs_real_t hint[6]) |
| Set neumann BC for an anisotropic vector for a given face. | |
| static void | cs_boundary_conditions_set_neumann_tensor (cs_real_t a[6], cs_real_t af[6], cs_real_t b[6][6], cs_real_t bf[6][6], const cs_real_t qimpts[6], cs_real_t hint) |
| Set Neumann boundary conditions for a tensor for a given face. | |
| static void | cs_boundary_conditions_set_dirichlet_scalar (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, cs_real_t pimp, cs_real_t hint, cs_real_t hext) |
| Set Dirichlet BC for a scalar for a given face. | |
| static void | cs_boundary_conditions_set_dirichlet_vector (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t pimpv[3], cs_real_t hint, const cs_real_t hextv[3]) |
| Set Dirichlet BC for a vector for a given face. | |
| void | cs_boundary_conditions_set_convective_outlet_scalar (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, cs_real_t pimp, cs_real_t cfl, cs_real_t hint) |
| Set convective oulet boundary condition for a scalar. | |
| static void | cs_boundary_conditions_set_dirichlet_vector_aniso (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t pimpv[3], const cs_real_t hintt[6], const cs_real_t hextv[3]) |
| Set Dirichlet BC for a vector for a given face with left anisotropic diffusion. | |
| static void | cs_boundary_conditions_set_dirichlet_tensor (cs_real_t a[6], cs_real_t af[6], cs_real_t b[6][6], cs_real_t bf[6][6], const cs_real_t pimpts[6], cs_real_t hint, const cs_real_t hextts[6]) |
| Set Dirichlet BC for a tensor for a given face. | |
| static void | cs_boundary_conditions_set_generalized_sym_vector (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t pimpv[3], const cs_real_t qimpv[3], cs_real_t hint, const cs_nreal_t normal[3]) |
| Set generalized BC for a symmetric vector for a given face. | |
| void | cs_boundary_conditions_set_generalized_sym_vector_aniso (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t pimpv[3], const cs_real_t qimpv[3], const cs_real_t hint[6], const cs_nreal_t normal[3]) |
| Set generalized BC for an anisotropic symmetric vector for a given face. | |
| static void | cs_boundary_conditions_set_generalized_dirichlet_vector (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t pimpv[3], const cs_real_t qimpv[3], cs_real_t hint, const cs_nreal_t normal[3]) |
| Set generalized Dirichlet BC for a vector for a given face. | |
| void | cs_boundary_conditions_set_generalized_dirichlet_vector_aniso (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t pimpv[3], const cs_real_t qimpv[3], const cs_real_t hint[6], const cs_nreal_t normal[3]) |
| Set generalized Dirichlet BC for an anisotropic vector for a given face. | |
| static void | cs_boundary_conditions_set_convective_outlet_vector (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t pimpv[3], const cs_real_t cflv[3], cs_real_t hint) |
| Set convective outlet BC for a vector for a given face. | |
| static void | cs_boundary_conditions_set_convective_outlet_tensor (cs_real_t a[6], cs_real_t af[6], cs_real_t b[6][6], cs_real_t bf[6][6], const cs_real_t pimpts[6], const cs_real_t cflts[6], cs_real_t hint) |
| Set convective outlet BC for a tensor for a given face. | |
| static void | cs_boundary_conditions_set_convective_outlet_vector_aniso (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t pimpv[3], const cs_real_t cflv[3], const cs_real_t hintt[6]) |
| Set convective outlet BC for an anisotropic vector for a given face. | |
| static void | cs_boundary_conditions_set_affine_function_scalar (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, cs_real_t pinf, cs_real_t ratio, cs_real_t hint) |
| Set BC for an affine scalar function for a given face. | |
| static void | cs_boundary_conditions_set_neumann_conv_h_neumann_diff_scalar (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, cs_real_t dimp, cs_real_t hint) |
| Set Neumann BC for the convection operator, zero flux for diffusion. | |
| static void | cs_boundary_conditions_set_affine_function_conv_neumann_diff_scalar (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, cs_real_t pinf, cs_real_t ratio, cs_real_t dimp) |
| Set Neumann BC for the convection operator, imposed flux for diffusion. | |
| static void | cs_boundary_conditions_set_total_flux (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, cs_real_t hext, cs_real_t dimp) |
| Set total flux as a Robin condition. | |
| static void | cs_boundary_conditions_set_dirichlet_conv_neumann_diff_scalar (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, cs_real_t pimp, cs_real_t dimp) |
| Imposed value for the convection operator, imposed flux for diffusion, for a scalar. | |
| static void | cs_boundary_conditions_set_dirichlet_conv_neumann_diff_vector (cs_lnum_t f_id, cs_field_bc_coeffs_t *bc_coeffs, const cs_real_t pimpv[3], const cs_real_t qimpv[3]) |
| Imposed value for the convection operator, imposed flux for diffusion, for a vector. | |
| static void | cs_boundary_conditions_set_dirichlet_conv_neumann_diff_tensor (cs_real_t a[6], cs_real_t af[6], cs_real_t b[6][6], cs_real_t bf[6][6], const cs_real_t pimpts[6], const cs_real_t qimpts[6]) |
| Imposed value for the convection operator, imposed flux for diffusion, for a tensor. | |
|
inlinestatic |
Set Neumann BC for the convection operator, imposed flux for diffusion.
| [in] | f_id | face id |
| [out] | bc_coeffs | boundary condition structure |
| [in] | pinf | affine part |
| [in] | ratio | linear part |
| [in] | dimp | flux value to impose |
|
inlinestatic |
Set BC for an affine scalar function for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | boundary condition structure |
| [in] | pinf | affine part |
| [in] | ratio | linear part |
| [in] | hint | internal exchange coefficient |
| void cs_boundary_conditions_set_coeffs | ( | int | nvar, |
| int | iterns, | ||
| int | isvhb, | ||
| int | itrale, | ||
| int | italim, | ||
| int | itrfin, | ||
| int | ineefl, | ||
| int | itrfup, | ||
| int | isostd[], | ||
| cs_real_t | visvdr[], | ||
| cs_real_t | hbord[], | ||
| cs_real_t | theipb[], | ||
| int | nftcdt ) |
Translation of the boundary conditions given by the user in a form that fits to the solver.
The values at a boundary face 



![\[P_{\face} = A_P^g + B_P^g P_{\centi}
\]](form_92.png)
and
![\[Q_{\face} = A_P^f + B_P^f P_{\centi}
\]](form_93.png)
where 

![\[ \delta P_{\face} = B_P^g \delta P_{\centi}
\]](form_95.png)
![\[ \delta Q_{\face} = -B_P^f \delta P_{\centi}
\]](form_96.png)

![\[ \vect{u}_{\face} = \vect{A}_u^g + \tens{B}_u^g \vect{u}_{\centi}
\]](form_98.png)
![\[ \vect{Q}_{\face} = \vect{A}_u^f + \tens{B}_u^f \vect{u}_{\centi}
\]](form_99.png)


Please refer to the boundary conditions section of the theory guide for more informations, as well as the condli section.
| [in] | nvar | total number of variables |
| [in] | iterns | iteration number on Navier-Stokes equations |
| [in] | isvhb | id of field whose exchange coeffient should be saved at the walls, or -1. |
| [in] | itrale | ALE iteration number |
| [in] | italim | for ALE |
| [in] | itrfin | for ALE |
| [in] | ineefl | for ALE |
| [in] | itrfup | for ALE |
| [in,out] | isostd | indicator for standard outlet and reference face index |
| [out] | visvdr | dynamic viscosity after V. Driest damping in boundary cells |
| [out] | hbord | exchange coefficient at boundary |
| [out] | theipb | value of thermal scalar at |
| [in] | nftcdt | Global indicator of condensation source terms (ie. sum on the processors of nfbpcd) cells associated to the face with condensation phenomenon |
| void cs_boundary_conditions_set_coeffs_init | ( | void | ) |
Initialization of boundary condition arrays.
| void cs_boundary_conditions_set_convective_outlet_scalar | ( | cs_lnum_t | f_id, |
| cs_field_bc_coeffs_t * | bc_coeffs, | ||
| cs_real_t | pimp, | ||
| cs_real_t | cfl, | ||
| cs_real_t | hint ) |
Set convective oulet boundary condition for a scalar.
| [in] | f_id | face id |
| [out] | bc_coeffs | boundary conditions structure |
| [in] | pimp | flux value to impose |
| [in] | cfl | local Courant number used to convect |
| [in] | hint | internal exchange coefficient |
|
inlinestatic |
Set convective outlet BC for a tensor for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | BC structure |
| [in] | pimpts | Dirichlet value to impose |
| [in] | cflts | local Courant number used to convect |
| [in] | hint | internal exchange coefficient |
|
inlinestatic |
Set convective outlet BC for a vector for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | BC structure |
| [in] | pimpv | Dirichlet value to impose |
| [in] | cflv | local Courant number used to convect |
| [in] | hint | internal exchange coefficient |
|
inlinestatic |
Set convective outlet BC for an anisotropic vector for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | BC structure |
| [in] | pimpv | Dirichlet value to impose |
| [in] | cflv | local Courant number used to convect |
| [in] | hintt | internal exchange coefficient |
|
inlinestatic |
Imposed value for the convection operator, imposed flux for diffusion, for a scalar.
| [in] | f_id | face id |
| [out] | bc_coeffs | boundary condition structure |
| [in] | pimp | Dirichlet value to impose |
| [in] | dimp | flux value to impose |
|
inlinestatic |
Imposed value for the convection operator, imposed flux for diffusion, for a tensor.
| [in] | f_id | face id |
| [out] | bc_coeffs | BC structure |
| [in] | pimpts | Dirichlet value to impose |
| [in] | qimpts | flux value to impose |
|
inlinestatic |
Imposed value for the convection operator, imposed flux for diffusion, for a vector.
| [in] | f_id | face id |
| [out] | bc_coeffs | BC structure |
| [in] | pimpv | Dirichlet value to impose |
| [in] | qimpv | flux value to impose |
|
inlinestatic |
Set Dirichlet BC for a scalar for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | boundary conditions structure |
| [in] | pimp | Dirichlet value to impose |
| [in] | hint | internal exchange coefficient |
| [in] | hext | external exchange coefficient (assumed infinite/ignored if < 0) |
|
inlinestatic |
Set Dirichlet BC for a tensor for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | BC structure |
| [in] | pimpts | Dirichlet value to impose |
| [in] | hint | internal exchange coefficient |
| [in] | hextts | external exchange coefficient (10^30 by default) |
|
inlinestatic |
Set Dirichlet BC for a vector for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | BC structure |
| [in] | pimpv | Dirichlet value to impose |
| [in] | hint | internal exchange coefficient |
| [in] | hextv | external exchange coefficient (assumed infinite/ignored if < 0) |
|
inlinestatic |
Set Dirichlet BC for a vector for a given face with left anisotropic diffusion.
| [in] | f_id | face id |
| [out] | bc_coeffs | BC structure |
| [in] | pimpv | Dirichlet value to impose |
| [in] | hintt | internal exchange coefficient |
| [in] | hextv | external exchange coefficient (assumed infinite/ignored if < 0) |
|
inlinestatic |
Set generalized Dirichlet BC for a vector for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | boundary conditions structure |
| [in] | pimpv | Dirichlet value to impose on the tangential components |
| [in] | qimpv | flux value to impose on the normal component |
| [in] | hint | internal exchange coefficient |
| [in] | normal | unit normal |
| void cs_boundary_conditions_set_generalized_dirichlet_vector_aniso | ( | cs_lnum_t | f_id, |
| cs_field_bc_coeffs_t * | bc_coeffs, | ||
| const cs_real_t | pimpv[3], | ||
| const cs_real_t | qimpv[3], | ||
| const cs_real_t | hint[6], | ||
| const cs_nreal_t | normal[3] ) |
Set generalized Dirichlet BC for an anisotropic vector for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | boundary conditions structure |
| [in] | pimpv | Dirichlet value to impose on the tangential components |
| [in] | qimpv | flux value to impose on the normal component |
| [in] | hint | internal exchange coefficient |
| [in] | normal | unit normal |
|
inlinestatic |
Set generalized BC for a symmetric vector for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | BC structure |
| [in] | pimpv | Dirichlet value to impose on the normal component |
| [in] | qimpv | flux value to impose on the tangential components |
| [in] | hint | internal exchange coefficient |
| [in] | normal | unit normal |
| void cs_boundary_conditions_set_generalized_sym_vector_aniso | ( | cs_lnum_t | f_id, |
| cs_field_bc_coeffs_t * | bc_coeffs, | ||
| const cs_real_t | pimpv[3], | ||
| const cs_real_t | qimpv[3], | ||
| const cs_real_t | hint[6], | ||
| const cs_nreal_t | normal[3] ) |
Set generalized BC for an anisotropic symmetric vector for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | boundary conditions structure |
| [in] | pimpv | Dirichlet value to impose on the normal component |
| [in] | qimpv | flux value to impose on the tangential components |
| [in] | hint | internal exchange coefficient |
| [in] | normal | unit normal |
|
inlinestatic |
Set Neumann BC for the convection operator, zero flux for diffusion.
| [in] | f_id | face id |
| [out] | bc_coeffs | boundary condition structure |
| [in] | dimp | flux value to impose |
| [in] | hint | internal exchange coefficient |
|
inlinestatic |
Set Neumann BC for a scalar for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | boundary conditions structure |
| [in] | qimp | flux value to impose |
| [in] | hint | internal exchange coefficient |
|
inlinestatic |
Set homogeneous Neumann BC for a scalar for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | boundary conditions structure |
|
inlinestatic |
Set Neumann boundary conditions for a tensor for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | BC structure |
| [in] | qimpts | flux value to impose |
| [in] | hint | internal exchange coefficient |
|
inlinestatic |
Set Neumann BC for a scalar for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | BC structure |
| [in] | qimpv | flux value to impose |
| [in] | hint | internal exchange coefficient |
|
inlinestatic |
Set neumann BC for an anisotropic vector for a given face.
| [in] | f_id | face id |
| [out] | bc_coeffs | BC structure |
| [in] | qimpv | flux value to impose |
| [in] | hint | internal exchange coefficient |
|
inlinestatic |
Set total flux as a Robin condition.
| [in] | f_id | face id |
| [out] | bc_coeffs | boundary condition structure |
| [in] | hext | convective flux to be imposed |
| [in] | dimp | flux value to impose |