#include "base/cs_defs.h"#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include <math.h>#include <float.h>#include "bft/bft_printf.h"#include "atmo/cs_air_props.h"#include "base/cs_ale.h"#include "atmo/cs_atmo.h"#include "base/cs_boundary_conditions_set_coeffs.h"#include "base/cs_dispatch.h"#include "base/cs_field_default.h"#include "base/cs_field_pointer.h"#include "base/cs_internal_coupling.h"#include "base/cs_mem.h"#include "mesh/cs_mesh.h"#include "base/cs_parall.h"#include "base/cs_parameters.h"#include "base/cs_profiling.h"#include "base/cs_physical_constants.h"#include "pprt/cs_physical_model.h"#include "rayt/cs_rad_transfer.h"#include "base/cs_thermal_model.h"#include "base/cs_turbomachinery.h"#include "turb/cs_turbulence_bc.h"#include "turb/cs_turbulence_model.h"#include "base/cs_wall_functions.h"#include "base/cs_boundary_conditions_set_coeffs_turb.h"
Include dependency graph for cs_boundary_conditions_set_coeffs_turb.cpp:Functions | |
| static void | _cs_boundary_conditions_set_coeffs_turb_scalar (cs_field_t *f_sc, int isvhb, cs_real_t byplus[], cs_real_t bdplus[], cs_real_t buk[], cs_real_t buet[], cs_real_t bcfnns[], cs_real_t bdlmo[], cs_real_t hbord[], cs_real_t theipb[], cs_real_t *tetmax, cs_real_t *tetmin, cs_real_t *tplumx, cs_real_t *tplumn) |
| Compute boundary coefficients for smooth/rough walls for scalar. More... | |
| static void | _cs_boundary_conditions_set_coeffs_turb_vector (cs_field_t *f_v, cs_real_t byplus[], cs_real_t bdplus[], cs_real_t buk[]) |
| Compute boundary coefficients for smooth walls for vector. More... | |
| void | cs_boundary_conditions_set_coeffs_turb (int isvhb, cs_real_t velipb[][3], cs_real_t rijipb[][6], cs_real_t visvdr[], cs_real_t hbord[], cs_real_t theipb[]) |
| Boundary conditions for smooth walls (icodcl = CS_BC_WALL_MODELLED). More... | |
Variables | |
| static cs_lnum_t | _ntlast = -1 |
| static cs_lnum_t | _iaff = 0 |
| static int | _kbfid = -1 |
| static const cs_lnum_t | _iv2t [6] = {0, 1, 2, 0, 1, 0} |
| static const cs_lnum_t | _jv2t [6] = {0, 1, 2, 1, 2, 2} |
|
static |
Compute boundary coefficients for smooth/rough walls for scalar.
| [in] | f_sc | scalar field |
| [in] | isvhb | id of field whose exchange coeffient should be saved at the walls, or -1. |
| [in] | byplus | dimensionless distance to the wall |
| [in] | bdplus | dimensionless shift to the wall for scalable wall functions |
| [in] | buk | dimensionless velocity |
| [in] | buet | boundary ustar value |
| [in] | bcfnns | boundary correction factor |
| [in] | bdlmo | boundary Monin Obukhov length inverse, or nullptr |
| [in,out] | hbord | exchange coefficient at boundary |
| [in] | theipb | value of thermal scalar at |
| [out] | tetmax | maximum local ustar value |
| [out] | tetmin | minimum local ustar value |
| [out] | tplumx | maximum local tplus value |
| [out] | tplumn | minimum local tplus value |
|
static |
Compute boundary coefficients for smooth walls for vector.
| [in] | f_v | vector field |
| [in] | byplus | dimensionless distance to the wall |
| [in] | bdplus | dimensionless shift to the wall for scalable wall functions |
| [in] | buk | dimensionless velocity |
| void cs_boundary_conditions_set_coeffs_turb | ( | int | isvhb, |
| cs_real_t | velipb[][3], | ||
| cs_real_t | rijipb[][6], | ||
| cs_real_t | visvdr[], | ||
| cs_real_t | hbord[], | ||
| cs_real_t | theipb[] | ||
| ) |
Boundary conditions for smooth walls (icodcl = CS_BC_WALL_MODELLED).
The wall functions may change the value of the diffusive flux.
The values at a boundary face
stored in the face center
of the variable
and its diffusive flux
are written as:
and
where
is the value of the variable
at the neighboring cell.
Warning:
Please refer to the wall boundary conditions section of the theory guide for more informations, as well as the clptur section.
| [in] | isvhb | id of field whose exchange coeffient should be saved at the walls, or -1. |
| [in] | velipb | value of the velocity at |
| [in] | rijipb | value of |
| [out] | visvdr | dynamic viscosity after V. Driest damping in boundary cells |
| [out] | hbord | exchange coefficient at boundary |
| [in] | theipb | value of thermal scalar at |
|
static |
|
static |
|
static |
|
static |
|
static |