8.1
general documentation
cs_boundary_conditions_set_coeffs.c File Reference

Translation of the boundary conditions given by the user in a form that fits to the solver. More...

#include "cs_defs.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <mpi.h>
#include "bft_printf.h"
#include "cs_1d_wall_thermal.h"
#include "cs_ale.h"
#include "cs_array.h"
#include "cs_assert.h"
#include "cs_base.h"
#include "cs_boundary.h"
#include "cs_boundary_conditions.h"
#include "cs_boundary_conditions_check.h"
#include "cs_boundary_conditions_set_coeffs_symmetry.h"
#include "cs_boundary_conditions_set_coeffs_turb.h"
#include "cs_boundary_conditions_type.h"
#include "cs_coupling.h"
#include "cs_field.h"
#include "cs_field_default.h"
#include "cs_field_operator.h"
#include "cs_field_pointer.h"
#include "cs_gradient_boundary.h"
#include "cs_gui_boundary_conditions.h"
#include "cs_gui_mobile_mesh.h"
#include "cs_gui_util.h"
#include "cs_ht_convert.h"
#include "cs_internal_coupling.h"
#include "cs_les_inflow.h"
#include "cs_mesh.h"
#include "cs_mesh_quantities.h"
#include "cs_mobile_structures.h"
#include "cs_parall.h"
#include "cs_parameters.h"
#include "cs_physical_constants.h"
#include "cs_physical_model.h"
#include "cs_prototypes.h"
#include "cs_rad_transfer.h"
#include "cs_rad_transfer_bcs.h"
#include "cs_sat_coupling.h"
#include "cs_syr_coupling.h"
#include "cs_thermal_model.h"
#include "cs_time_step.h"
#include "cs_turbulence_model.h"
#include "cs_turbomachinery.h"
#include "cs_velocity_pressure.h"
#include "cs_vof.h"
#include "cs_boundary_conditions_set_coeffs.h"

Macros

#define NOZPPM   2000 /* max number of boundary conditions zone */
 

Functions

int * cs_f_boundary_conditions_get_bc_type (void)
 
void cs_f_ppprcl (int itypfb[], cs_real_t dt[])
 
void cs_f_tagmri (void)
 
void cs_f_cou1di (void)
 
void cs_f_mmtycl (const int *itypfb)
 
void cs_f_pptycl (bool init, int *itypfb, const int *izfppp, cs_real_t dt[])
 
void cs_f_cscloc (void)
 
void cs_f_cscfbr (int *itypfb, cs_real_t *dt)
 
void cs_f_cscfbr_init (int *itypfb)
 
void cs_f_user_boundary_conditions_wrapper (const cs_lnum_t itrifb[], int itypfb[], const int izfppp[], cs_real_t dt[])
 
static void _boundary_condition_ale_type (const cs_mesh_t *m, const cs_mesh_quantities_t *mq, const bool init, const cs_real_t dt[], const int bc_type[])
 
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. More...
 
void cs_boundary_conditions_set_coeffs_init (void)
 Initialization of boundary condition arrays. More...
 
void cs_boundary_conditions_set_convective_outlet_scalar (cs_real_t *a, cs_real_t *af, cs_real_t *b, cs_real_t *bf, cs_real_t pimp, cs_real_t cfl, cs_real_t hint)
 Set convective oulet boundary condition for a scalar. More...
 
void cs_boundary_conditions_set_generalized_sym_vector_aniso (cs_real_t a[3], cs_real_t af[3], cs_real_t b[3][3], cs_real_t bf[3][3], const cs_real_t pimpv[3], const cs_real_t qimpv[3], const cs_real_t hint[6], const cs_real_t normal[3])
 Set generalized BC for an anisotropic symmetric vector for a given face. More...
 
void cs_boundary_conditions_set_generalized_dirichlet_vector_aniso (cs_real_t a[3], cs_real_t af[3], cs_real_t b[3][3], cs_real_t bf[3][3], const cs_real_t pimpv[3], const cs_real_t qimpv[3], const cs_real_t hint[6], const cs_real_t normal[3])
 Set generalized Dirichlet BC for an anisotropic vector for a given face. More...
 

Detailed Description

Translation of the boundary conditions given by the user in a form that fits to the solver.

Macro Definition Documentation

◆ NOZPPM

#define NOZPPM   2000 /* max number of boundary conditions zone */

Function Documentation

◆ _boundary_condition_ale_type()

static void _boundary_condition_ale_type ( const cs_mesh_t m,
const cs_mesh_quantities_t mq,
const bool  init,
const cs_real_t  dt[],
const int  bc_type[] 
)
static

◆ cs_boundary_conditions_set_coeffs()

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 $ \fib $ stored in the face center $ \centf $ of the variable $ P $ and its diffusive flux $ Q $ are written as:

\[ P_{\face} = A_P^g + B_P^g P_{\centi} \]

and

\[ Q_{\face} = A_P^f + B_P^f P_{\centi} \]

where $ P_\centi $ is the value of the variable $ P $ at the neighboring cell.

Warning
  • If we consider an increment of a variable, the boundary conditions read:

    \[ \delta P_{\face} = B_P^g \delta P_{\centi} \]

    and

    \[ \delta Q_{\face} = -B_P^f \delta P_{\centi} \]

  • For a vector field such as the velocity $ \vect{u} $ the boundary conditions may read:

    \[ \vect{u}_{\face} = \vect{A}_u^g + \tens{B}_u^g \vect{u}_{\centi} \]

    and

    \[ \vect{Q}_{\face} = \vect{A}_u^f + \tens{B}_u^f \vect{u}_{\centi} \]

    where $ \tens{B}_u^g $ and $ \tens{B}_u^f $ are 3x3 tensor matrix which coupled velocity components next to a boundary.

Please refer to the boundary conditions section of the theory guide for more informations, as well as the condli section.

Parameters
[in]nvartotal number of variables
[in]iternsiteration number on Navier-Stokes equations
[in]isvhbindicator to save exchange coeffient at the walls
[in]itraleALE iteration number
[in]italimfor ALE
[in]itrfinfor ALE
[in]ineeflfor ALE
[in]itrfupfor ALE
[in,out]isostdindicator for standard outlet and reference face index
[out]visvdrdynamic viscosity after V. Driest damping in boundary cells
[out]hbordexchange coefficient at boundary
[out]theipbvalue of thermal scalar at $ \centip $ of boundary cells
[in]nftcdtGlobal indicator of condensation source terms (ie. sum on the processors of nfbpcd) cells associated to the face with condensation phenomenon

◆ cs_boundary_conditions_set_coeffs_init()

void cs_boundary_conditions_set_coeffs_init ( void  )

Initialization of boundary condition arrays.

◆ cs_boundary_conditions_set_convective_outlet_scalar()

void cs_boundary_conditions_set_convective_outlet_scalar ( cs_real_t a,
cs_real_t af,
cs_real_t b,
cs_real_t bf,
cs_real_t  pimp,
cs_real_t  cfl,
cs_real_t  hint 
)

Set convective oulet boundary condition for a scalar.

Parameters
[out]aexplicit BC coefficient for gradients
[out]afexplicit BC coefficient for diffusive flux
[out]bimplicit BC coefficient for gradients
[out]bfimplicit BC coefficient for diffusive flux
[in]pimpflux value to impose
[in]cfllocal Courant number used to convect
[in]hintinternal exchange coefficient

◆ cs_boundary_conditions_set_generalized_dirichlet_vector_aniso()

void cs_boundary_conditions_set_generalized_dirichlet_vector_aniso ( cs_real_t  a[3],
cs_real_t  af[3],
cs_real_t  b[3][3],
cs_real_t  bf[3][3],
const cs_real_t  pimpv[3],
const cs_real_t  qimpv[3],
const cs_real_t  hint[6],
const cs_real_t  normal[3] 
)

Set generalized Dirichlet BC for an anisotropic vector for a given face.

Parameters
[out]aexplicit BC coefficient for gradients
[out]afexplicit BC coefficient for diffusive flux
[out]bimplicit BC coefficient for gradients
[out]bfimplicit BC coefficient for diffusive flux
[in]pimpvDirichlet value to impose on the tangential components
[in]qimpvflux value to impose on the normal component
[in]hintinternal exchange coefficient
[in]normalnormal

◆ cs_boundary_conditions_set_generalized_sym_vector_aniso()

void cs_boundary_conditions_set_generalized_sym_vector_aniso ( cs_real_t  a[3],
cs_real_t  af[3],
cs_real_t  b[3][3],
cs_real_t  bf[3][3],
const cs_real_t  pimpv[3],
const cs_real_t  qimpv[3],
const cs_real_t  hint[6],
const cs_real_t  normal[3] 
)

Set generalized BC for an anisotropic symmetric vector for a given face.

Parameters
[out]aexplicit BC coefficient for gradients
[out]afexplicit BC coefficient for diffusive flux
[out]bimplicit BC coefficient for gradients
[out]bfimplicit BC coefficient for diffusive flux
[in]pimpvDirichlet value to impose on the normal component
[in]qimpvflux value to impose on the tangential components
[in]hintinternal exchange coefficient
[in]normalnormal

◆ cs_f_boundary_conditions_get_bc_type()

int* cs_f_boundary_conditions_get_bc_type ( void  )

◆ cs_f_cou1di()

void cs_f_cou1di ( void  )

◆ cs_f_cscfbr()

void cs_f_cscfbr ( int *  itypfb,
cs_real_t dt 
)

◆ cs_f_cscfbr_init()

void cs_f_cscfbr_init ( int *  itypfb)

◆ cs_f_cscloc()

void cs_f_cscloc ( void  )

◆ cs_f_mmtycl()

void cs_f_mmtycl ( const int *  itypfb)

◆ cs_f_ppprcl()

void cs_f_ppprcl ( int  itypfb[],
cs_real_t  dt[] 
)

◆ cs_f_pptycl()

void cs_f_pptycl ( bool  init,
int *  itypfb,
const int *  izfppp,
cs_real_t  dt[] 
)

◆ cs_f_tagmri()

void cs_f_tagmri ( void  )

◆ cs_f_user_boundary_conditions_wrapper()

void cs_f_user_boundary_conditions_wrapper ( const cs_lnum_t  itrifb[],
int  itypfb[],
const int  izfppp[],
cs_real_t  dt[] 
)