Re_func(V_inf, altitude, l)

Calc Reynold's # given altitude, velocity, and length
185 Downloads
Updated 4 Sep 2015

View License

function [ Re ] = Re_func(V_inf, altitude, l)
%This function outputs the Reynolds number for dry air given an altitude [m],
%free stream velocity [ m/s], and characteristic length [ m]. Often the characteristic
%length for airfoils is the chord length.
%Inputs = altitude [m], V_inf = free stream velocity [m/s], l = characteristic length [m]
%Outputs = Reynolds numbers [ dimensionless ]
% arg2 and arg3 are optional,
% arg1 is mandatory

%You can call this function by either somefcn(arg1),somefcn(arg1,arg2) or somefcn(arg1,arg2,arg3), but not somefcn(ar1,arg3).

Cite As

Noel Puldon (2026). Re_func(V_inf, altitude, l) (https://www.mathworks.com/matlabcentral/fileexchange/52837-re_func-v_inf-altitude-l), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Develop Apps Using App Designer in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0

Added flexibility to function by allowing for optional input arguments.
if nargin < 3
l = 1; %[m] Default characteristic length to one.
end
if nargin < 2
altitude = 0; %[m] Default altitude to sea level.
end