#include "base/cs_defs.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "bft/bft_error.h"
#include "bft/bft_printf.h"
#include "base/cs_array.h"
#include "base/cs_assert.h"
#include "base/cs_field.h"
#include "base/cs_field_pointer.h"
#include "alge/cs_gradient.h"
#include "base/cs_log.h"
#include "base/cs_math.h"
#include "base/cs_mem.h"
#include "mesh/cs_mesh.h"
#include "base/cs_parall.h"
#include "mesh/cs_mesh_location.h"
#include "turb/cs_turbulence_ke.h"
#include "turb/cs_turbulence_model.h"
#include "turb/cs_turbulence_rij.h"
#include "turb/cs_turbulence_init.h"
#include "base/cs_log_iteration.h"
Functions | |
void | cs_turbulence_init_by_ref_quantities (void) |
First pass at initialization of turbulence variables. | |
int | cs_turbulence_init_clip_and_verify (void) |
Clipping of turbulence variables initialization. |
Turbulence variables initialization for various models.
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.