Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

e_turb.h

Go to the documentation of this file.
00001 
00009 #ifndef E_TURB_HEADER_ALREADY_INCLUDED
00010 
00011 #include <stdio.h>
00012 #include <stdlib.h>
00013 #include <math.h>
00014 #include "../../util/source/useful.h"
00015 #include "../../util/source/logfile.h"
00016 #include "../../gas_models/source/gas.h"
00017 #include "../../flux_calc/source/flux_calc.h"
00018 #include "../../mb_cns/source/cns_case_id.h"
00019 #include "../../mb_cns/source/cns_work_vector.h"
00020 #include "../../mb_cns/source/cns_debug_level.h"
00021 #include "../../mb_cns/source/cns_cell.h"
00022 #include "../../mb_cns/source/cns_echo.h"
00023 #include "../../mb_cns/source/cns_bc_defs.h"
00024 #include "./e_block.h"
00025 
00026 /*---------------------------------------------------------------------*/
00027 
00028 int turbulent_flux(struct block_data_3D *A);
00029 int calc_alpha(struct block_data_3D *A);
00030 double wall_damping(double z);
00031 int eddy_viscosity_constants(struct block_data_3D *A);
00032 int strain_rate(struct block_data_3D *A);
00033 int filtered_strain_rate(struct block_data_3D *A);
00034 int baldwin_lomax_3D(struct block_data_3D *bp);
00035 int smagorinsky_3D(struct block_data_3D *bp);
00036 int mixed_scale_3D(struct block_data_3D *bp);
00037 int mixed_scale_sgs_energy(struct block_data_3D *bp);
00038 int smagorinsky_strain_rate(struct block_data_3D *A);
00039 
00040 /*---------------------------------------------------------------------*/
00041 
00042 #define E_TURB_HEADER_ALREADY_INCLUDED
00043 #endif
00044 
00054 /* Overall characteristics of the boundary layer model */
00055 #define COMPRESSIBILITY 1
00056 #define TRANSITIONAL 1
00057 
00058 /* Parameters that are not often varied */
00059 #define C_mutm  14.0
00060 #define C_WK    1.0
00061 #define K       0.0168
00062 
00063 /* A_plus should be varied for boundary layers in pressure gradients */
00064 #define A_plus  26
00065 
00066 
00067 /* Parameters that I (Richard) think should be varied in response 
00068  * to changes in the gas and Mach number.
00069  * These parameters are grouped according to publications 
00070  * or cases in which they seem to work well.
00071  *
00072  * note 1: For Richard's simulations of the entire Drummond tunnel facility, 
00073  *         the original coefficients described in Baldwin and Lomax (1978) 
00074  *         worked badly.
00075  * note 2: k_inner is not varied in any other study?
00076  *
00077  * note 3: One and one only set of coefficients should be active.
00078  */
00079 
00080 #if 1
00081 /* Baldwin and Lomax (1978)
00082  * (Used successfully in Peter's models of a Mach 8 nozzle using air)
00083  */
00084  #define C_CP    1.6
00085  #define C_KLEB  0.3
00086  #define k_inner 0.4
00087 #endif
00088 
00089 
00090 #if 0
00091 /* Kim, Harloff and Sverdrup (1988) 
00092  * These parameters were obtained from the graphs for the conditions corresponding to Richard's 
00093  * simulations of the Drummond Tunnel incident shock. Other conditions can be looked up on
00094  * these graphs
00095  */
00096  #define C_CP    1.74
00097  #define C_KLEB  0.4716
00098  #define k_inner 0.4
00099 #endif
00100 
00101 #if 0
00102 /* Other attempts by Richard at calibrating the inner layer thermal conductivity of the 
00103  * turbulent boundary layer */
00104  #define k_inner 0.24
00105  #define k_inner 0.20 (too high)
00106  #define k_inner 0.14 (shown to be too high for both single and double res simulations)
00107  #define k_inner 0.08 (also too low, did show a dip in the pressure right behind the reflected shock?)
00108  #define k_inner 0.06
00109  #define k_inner 0.026 (much too low - approximated laminar boundary layers)
00110 #endif
00111 
00112 
00113 #if 0
00114  /* Notes for Drummond Tunnel modelling:
00115   * Modifying the outer layer coefficients C_cp and C_kleb did not affect the shock speeds or
00116   * post shock pressures. They do affect the outer layer profile and, therefore, the contact 
00117   * surface shape. 
00118   * with k_inner = 0.18 working well for Nitrogen driving Nitrogen, the values of these outer
00119   * layer coefficients were increased. This increased the curvature of the contact surface,
00120   * to be closer to that of the experimental results. 
00121   * These values should be close to that of Kim, Harloff and Sverdrup (1988) above  
00122   */
00123   /* (high Ccp 8x) */
00124  #define C_CP    12.8
00125  /* (mid Ccp 4x) */
00126  #define C_CP    6.4
00127  /* (original Ccp) */
00128  #define C_CP    1.6
00129  #define C_KLEB  0.3
00130  #define k_inner 0.18
00131 #endif
00132 
00133 
00134 #if 0
00135  /* Optimised coefficients for Nitrogen driving Nitrogen in the Drummond Tunnel
00136   * Provides a good model of the turbulent boundary layer behind the Mach 2.4 incident shock
00137   * (used with the aug98 and may99 experiments by David Buttsworth) */
00138  #define C_CP    6.4
00139  #define C_KLEB  0.3
00140  #define k_inner 0.18
00141 #endif
00142 
00143 
00144 #if 0
00145  /* Optimised coefficients for Helium driving Nitrogen in the Drummond Tunnel
00146   * Provides a good model of the turbulent boundary layer behind the Mach 2.4 incident shock
00147   * (used with the feb00 experiments by David Buttsworth) */
00148  #define C_CP    1.6
00149  #define C_KLEB  0.3
00150  #define k_inner 0.12
00151 #endif
00152 
00153 

Generated on Tue Oct 25 10:23:47 2005 for CFCFD by  doxygen 1.4.4