#include "cs_defs.h"
Go to the source code of this file.
Functions | |
void | cs_turbulence_init_by_ref_quantities (void) |
First pass at initialization of turbulence variables. More... | |
int | cs_turbulence_init_clip_and_verify (void) |
Clipping of turbulence variables initialization. More... | |
void cs_turbulence_init_by_ref_quantities | ( | void | ) |
First pass at initialization of turbulence variables.
If the reference velocity is negative (incorrect or not initialized), values of k, Rij, epsilon, and omega are set to -10*cs_math_big_r. We will later test if those values were modified by user initialization or reading a restart file.
int cs_turbulence_init_clip_and_verify | ( | void | ) |
Clipping of turbulence variables initialization.
If the user has prescribed "correct" values (in the sense that k, eps, Rii, ... > 0), we clip these values if needed for consistency.
If the prescribed values are manifestly incorrect (negative values), we assume this is an error, print warnings, and return a positive error count.
The same logic is applied to computation restarts.