-
Notifications
You must be signed in to change notification settings - Fork 0
/
dynamicViscosity.m
33 lines (31 loc) · 1.01 KB
/
dynamicViscosity.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
function mu = dynamicViscosity(T)
%
% Matt Werner ([email protected]) - Dec 5, 2020
%
% Calculate dynamic viscosity (standard symbol - mu) of dry, ideal air at a
% temperature T according to Sutherland's law,
% 3/2
% / T \ Tref + S
% mu = muref | ------ | ----------,
% \ Tref / T + S
% where muref = 0.00001716 Pa*s (Pascal seconds) and Tref = 273.15 K
% (Kelvin) are the reference viscosity and temperature values and S = 110.4
% K (Kelvin) is Sutherland's constant.
%
% Inputs:
%
% T - Air temperature.
% Size: n-by-1 (vector)
% Units: K (Kelvin)
%
% Outputs:
%
% dynamicViscosity - Dynamic viscosity of air at temperature T.
% Size: n-by-1 (vector)
% Units: Pa*s (Pascal seconds)
%
%% Checks
% No checks
%% Computation
% Calculate dynamic viscosity as based off of Sutherland's law
mu = 0.00000145793265 * T.^1.5 ./ (T + 110.4);