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"
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... | |
Generation of synthetic turbulence at LES inlets initialization.
See Generation of synthetic turbulence at LES inlets for examples.
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
[in] | zone | pointer to associated boundary zone |
[in,out] | vel_l | velocity a zone faces |
[in,out] | rij_l | reynods stresses at zone faces |
[in,out] | eps_l | reference turbulent dissipation |
void cs_user_les_inflow_define | ( | void | ) |
Define parameters of synthetic turbulence at LES inflow.
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.
[in] | zone | pointer to associated boundary zone |
[out] | vel_r | reference mean velocity |
[out] | k_r | reference turbulent kinetic energy |
[out] | eps_r | reference turbulent dissipation |