Posts

Showing posts with the label epsilon

MATLAB SCRIPT TO CALCULATE THE TURBULENCE PROPERTIES AND TO ESTIMATE THE WALL DISTANCE

This script is an adaptation of the original script written by Dr. Nguyen Vinh Tan, Agency for Science, Technology and Research, Singapore.  A matlab script with (.m) extension can be adopted from the following formula and the same can be run using mathwork or octave o n the linux platform. The turbulence properties and mesh layer thicknesses can be predicted using the same.  rho=1000; %This is density, a value 1.225 for air can be assigned nu=1.0e-6; %kinematic viscosity for air/water L=0.5; %L is the wheelbase length of a car/length of a flatplate/diameter for a cylinder simulation % If the reynolds number is assigned and the flow velocity has to be found out use: ReL = 60000; %global reynolds number Va = ReL*nu/L %If the flow velocity is assigned and the Reynolds number has to be calculated use: Va = 30; ReL = Va*L/nu %Turulence intensity can either be assigned or calculated I = 0.02; % 2 percentage(assigned) I = 0.05; % 5 percentage...