Re_func(V_inf, altitude, l)

Calc Reynold's # given altitude, velocity, and length

Sie verfolgen jetzt diese Einreichung

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

Zitieren als

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

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und MATLAB Answers

Allgemeine Informationen

Kompatibilität der MATLAB-Version

  • Kompatibel mit allen Versionen

Plattform-Kompatibilität

  • Windows
  • macOS
  • Linux
Version Veröffentlicht Versionshinweise Action
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