7.1
general documentation
cs_user_les_inflow.c File Reference

Generation of synthetic turbulence at LES inlets initialization. More...

#include "cs_defs.h"
#include <assert.h>
#include <math.h>
#include <string.h>
#include <ple_coupling.h>
#include "cs_headers.h"
+ Include dependency graph for cs_user_les_inflow.c:

Functions

void cs_user_les_inflow_define (void)
 Define parameters of synthetic turbulence at LES inflow. More...
 
void cs_user_les_inflow_update (const cs_zone_t *zone, cs_real_t vel_r[3], cs_real_t *k_r, cs_real_t *eps_r)
 Update of the characteristics of a given synthetic turbulence inlet. More...
 
void cs_user_les_inflow_advanced (const cs_zone_t *zone, cs_real_3_t vel_l[], cs_real_6_t rij_l[], cs_real_t eps_l[])
 Definition of mean velocity, Reynolds stresses and dissipation rate for each boundary face of the given synthetic turbulence inlet. More...
 

Detailed Description

Generation of synthetic turbulence at LES inlets initialization.

See Generation of synthetic turbulence at LES inlets for examples.

Function Documentation

◆ cs_user_les_inflow_advanced()

void cs_user_les_inflow_advanced ( const cs_zone_t zone,
cs_real_3_t  vel_l[],
cs_real_6_t  rij_l[],
cs_real_t  eps_l[] 
)

Definition of mean velocity, Reynolds stresses and dissipation rate for each boundary face of the given synthetic turbulence inlet.

Accurate definition of mean velocity, Reynolds stresses and dissipation rate for each boundary face of the given synthetic turbulence inlet

Rij components are ordered as usual: XX, YY, ZZ, XY, YZ, XZ

Arrays are pre-initialized before this function is called (see cs_user_les_inflow_define).

vel_l[face_id][coo_id] = vel_r[coo_id]

rij_l[face_id][0] = 2./3. * k_l rij_l[face_id][1] = 2./3. * k_l rij_l[face_id][2] = 2./3. * k_l rij_l[face_id][3] = 0 rij_l[face_id][4] = 0 rij_l[face_id][5] = 0

eps_l[face_id] = eps_r

Parameters
[in]zonepointer to associated boundary zone
[in,out]vel_lvelocity a zone faces
[in,out]rij_lreynods stresses at zone faces
[in,out]eps_lreference turbulent dissipation

◆ cs_user_les_inflow_define()

void cs_user_les_inflow_define ( void  )

Define parameters of synthetic turbulence at LES inflow.

◆ cs_user_les_inflow_update()

void cs_user_les_inflow_update ( const cs_zone_t zone,
cs_real_t  vel_r[3],
cs_real_t k_r,
cs_real_t eps_r 
)

Update of the characteristics of a given synthetic turbulence inlet.

Parameters
[in]zonepointer to associated boundary zone
[out]vel_rreference mean velocity
[out]k_rreference turbulent kinetic energy
[out]eps_rreference turbulent dissipation