8.3
general documentation
cs_turbulence_init.cpp File Reference
#include "cs_defs.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "bft_mem.h"
#include "bft_error.h"
#include "bft_printf.h"
#include "cs_array.h"
#include "cs_assert.h"
#include "cs_field.h"
#include "cs_field_pointer.h"
#include "cs_gradient.h"
#include "cs_log.h"
#include "cs_math.h"
#include "cs_mesh.h"
#include "cs_parall.h"
#include "cs_mesh_location.h"
#include "cs_turbulence_ke.h"
#include "cs_turbulence_model.h"
#include "cs_turbulence_rij.h"
#include "cs_turbulence_init.h"
#include "cs_log_iteration.h"
+ Include dependency graph for cs_turbulence_init.cpp:

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...
 

Detailed Description

Turbulence variables initialization for various models.

Function Documentation

◆ cs_turbulence_init_by_ref_quantities()

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.

◆ cs_turbulence_init_clip_and_verify()

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.