2#ifndef __CS_LES_INFLOW_H__
3#define __CS_LES_INFLOW_H__
#define BEGIN_C_DECLS
Definition: cs_defs.h:542
double cs_real_t
Floating-point value.
Definition: cs_defs.h:342
cs_real_t cs_real_3_t[3]
vector of 3 floating-point values
Definition: cs_defs.h:359
cs_real_t cs_real_6_t[6]
vector of 6 floating-point values
Definition: cs_defs.h:361
#define END_C_DECLS
Definition: cs_defs.h:543
int cs_lnum_t
local mesh entity id
Definition: cs_defs.h:335
cs_les_inflow_type_t
Definition: cs_les_inflow.h:56
@ CS_INFLOW_BATTEN
Definition: cs_les_inflow.h:60
@ CS_INFLOW_LAMINAR
Definition: cs_les_inflow.h:58
@ CS_INFLOW_SEM
Definition: cs_les_inflow.h:61
@ CS_INFLOW_RANDOM
Definition: cs_les_inflow.h:59
void cs_les_inflow_set_restart(bool allow_read, bool allow_write)
Define behavior of the LES inflow module in case of restart.
Definition: cs_les_inflow.cpp:2191
void cs_les_synthetic_eddy_restart_read(void)
Definition: cs_les_inflow.cpp:1055
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.
Definition: cs_user_les_inflow.cpp:97
void cs_les_synthetic_eddy_restart_write(void)
Definition: cs_les_inflow.cpp:1404
void cs_les_inflow_add_inlet(cs_les_inflow_type_t type, bool volume_mode, const cs_zone_t *zone, int n_entities, int verbosity, const cs_real_t *vel_r, cs_real_t k_r, cs_real_t eps_r)
Add an inlet definition for synthetic turbulence inflow generation.
Definition: cs_les_inflow.cpp:649
int cs_les_synthetic_eddy_get_n_restart_structures(void)
Return number of structures used for volume SEM when restarting from another turbulence model.
Definition: cs_les_inflow.cpp:2150
struct _cs_inlet_t cs_inlet_t
Definition: cs_les_inflow.h:73
void cs_les_inflow_get_restart(bool *allow_read, bool *allow_write)
Query behavior of the LES inflow module in case of restart.
Definition: cs_les_inflow.cpp:2167
void cs_les_rescale_fluctuations(cs_lnum_t n_points, const cs_real_6_t statistics[], cs_real_3_t fluctuations[])
Rescale fluctuations by statistics following the Lund method.
Definition: cs_les_inflow.cpp:2082
void cs_les_inflow_initialize(void)
Creation of structures for the LES inflows.
Definition: cs_les_inflow.cpp:483
void cs_les_inflow_finalize(void)
Finalize turbulent inflow generation API.
Definition: cs_les_inflow.cpp:499
void cs_user_les_inflow_define(void)
Define parameters of synthetic turbulence at LES inflow.
Definition: cs_user_les_inflow.cpp:79
void cs_les_synthetic_eddy_method(cs_lnum_t n_points, const cs_lnum_t elt_ids[], const cs_real_3_t point_coordinates[], const cs_real_t *point_weight, int initialize, int verbosity, cs_inflow_sem_t *inflow, cs_real_t t_cur, const cs_real_3_t vel_m_l[], const cs_real_6_t rij_l[], const cs_real_t eps_l[], cs_real_3_t fluctuations[])
Generation of synthetic turbulence via the Synthetic Eddy Method (SEM).
Definition: cs_les_inflow.cpp:1617
void cs_les_synthetic_eddy_set_n_restart_structures(int n_structures)
Set number of structures used for volume SEM when restarting from another turbulence model.
Definition: cs_les_inflow.cpp:2135
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 giv...
Definition: cs_user_les_inflow.cpp:138
void cs_les_inflow_compute(void)
General synthetic turbulence generation.
Definition: cs_les_inflow.cpp:810
Definition: cs_les_inflow.h:75
int volume_mode
Definition: cs_les_inflow.h:78
int n_structures
Definition: cs_les_inflow.h:77
cs_real_3_t * energy
Definition: cs_les_inflow.h:81
cs_real_3_t * position
Definition: cs_les_inflow.h:80