Cody

# Problem 45413. Characterize fluid flow in a pipe as to laminar or turbulent

Solution 2908084

Submitted on 3 Sep 2020 by pign_an
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
assert(isequal(flow_pattern([0.025 0.089 986.29 0.00087]),'TRANSITION'))

2   Pass
assert(isequal(flow_pattern([0.036 0.095 976.11 0.00089]),'TURBULENT'))

3   Pass
assert(isequal(flow_pattern([0.035 0.124 1089.38 0.00080]),'TURBULENT'))

4   Pass
assert(isequal(flow_pattern([0.036 0.095 1069.84 0.00078]),'TURBULENT'))

5   Pass
assert(isequal(flow_pattern([0.035 0.148 1004.66 0.00079]),'TURBULENT'))

6   Pass
assert(isequal(flow_pattern([0.024 0.082 922.17 0.00078]),'TRANSITION'))

7   Pass
assert(isequal(flow_pattern([0.027 0.084 1063.42 0.00081]),'TURBULENT'))

8   Pass
assert(isequal(flow_pattern([0.030 0.127 924.05 0.00083]),'TURBULENT'))

9   Pass
assert(isequal(flow_pattern([0.027 0.083 1014.92 0.00087]),'TRANSITION'))

10   Pass
assert(isequal(flow_pattern([0.024 0.117 1080.37 0.00074]),'TURBULENT'))

11   Pass
assert(isequal(flow_pattern([0.026 0.100 1077.98 0.00080]),'TURBULENT'))

12   Pass
assert(isequal(flow_pattern([0.026 0.103 1014.85 0.00078]),'TURBULENT'))

13   Pass
assert(isequal(flow_pattern([0.020 0.120 1001.35 0.00078]),'TURBULENT'))

14   Pass
assert(isequal(flow_pattern([0.021 0.086 946.85 0.00074]),'TRANSITION'))

15   Pass
assert(isequal(flow_pattern([0.036 0.089 910.72 0.00078]),'TURBULENT'))

16   Pass
assert(isequal(flow_pattern([0.035 0.067 1082.44 0.00076]),'TURBULENT'))

17   Pass
assert(isequal(flow_pattern([0.027 0.070 1053.44 0.00071]),'TRANSITION'))

18   Pass
assert(isequal(flow_pattern([0.039 0.066 957.29 0.00084]),'TURBULENT'))

19   Pass
assert(isequal(flow_pattern([0.023 0.101 1044.27 0.00089]),'TRANSITION'))

20   Pass
assert(isequal(flow_pattern([0.035 0.125 981.46 0.00075]),'TURBULENT'))

21   Pass
assert(isequal(flow_pattern([0.030 0.072 1068.48 0.00083]),'TRANSITION'))

22   Pass
assert(isequal(flow_pattern([0.036 0.129 993.82 0.00076]),'TURBULENT'))

23   Pass
assert(isequal(flow_pattern([0.034 0.149 1053.99 0.00087]),'TURBULENT'))

24   Pass
assert(isequal(flow_pattern([0.034 0.110 1050.57 0.00080]),'TURBULENT'))

25   Pass
assert(isequal(flow_pattern([0.037 0.057 1093.71 0.00072]),'TURBULENT'))

26   Pass
assert(isequal(flow_pattern([0.031 0.090 921.41 0.00084]),'TURBULENT'))

27   Pass
assert(isequal(flow_pattern([0.032 0.128 1013.32 0.00086]),'TURBULENT'))

28   Pass
assert(isequal(flow_pattern([0.032 0.144 1074.29 0.00080]),'TURBULENT'))

29   Pass
assert(isequal(flow_pattern([0.036 0.097 1065.76 0.00076]),'TURBULENT'))

30   Pass
assert(isequal(flow_pattern([0.040 0.078 914.57 0.00085]),'TURBULENT'))

31   Pass
assert(isequal(flow_pattern([0.037 0.142 965.40 0.00086]),'TURBULENT'))

32   Pass
assert(isequal(flow_pattern([0.031 0.096 1064.15 0.00089]),'TURBULENT'))

33   Pass
assert(isequal(flow_pattern([0.022 0.121 946.99 0.00078]),'TURBULENT'))

34   Pass
assert(isequal(flow_pattern([0.025 0.133 1099.07 0.00083]),'TURBULENT'))

35   Pass
assert(isequal(flow_pattern([0.034 0.143 1037.53 0.00081]),'TURBULENT'))

36   Pass
assert(isequal(flow_pattern([0.028 0.113 972.65 0.00078]),'TURBULENT'))

37   Pass
assert(isequal(flow_pattern([0.027 0.097 1000.68 0.00088]),'TURBULENT'))

38   Pass
assert(isequal(flow_pattern([0.024 0.084 1014.83 0.00080]),'TRANSITION'))

39   Pass
assert(isequal(flow_pattern([0.025 0.108 1075.67 0.00071]),'TURBULENT'))

40   Pass
assert(isequal(flow_pattern([0.029 0.058 1012.65 0.00081]),'LAMINAR'))

41   Pass
assert(isequal(flow_pattern([0.035 0.073 1017.47 0.00079]),'TURBULENT'))

42   Pass
assert(isequal(flow_pattern([0.037 0.116 970.78 0.00077]),'TURBULENT'))

43   Pass
assert(isequal(flow_pattern([0.025 0.145 959.64 0.00073]),'TURBULENT'))

44   Pass
assert(isequal(flow_pattern([0.027 0.124 1041.18 0.00084]),'TURBULENT'))

45   Pass
assert(isequal(flow_pattern([0.020 0.087 1080.30 0.00076]),'TRANSITION'))

46   Pass
assert(isequal(flow_pattern([0.032 0.080 925.00 0.00078]),'TURBULENT'))

47   Pass
assert(isequal(flow_pattern([0.036 0.148 1072.40 0.00072]),'TURBULENT'))

48   Pass
assert(isequal(flow_pattern([0.027 0.074 963.56 0.00090]),'LAMINAR'))

49   Pass
assert(isequal(flow_pattern([0.031 0.125 1068.37 0.00073]),'TURBULENT'))

50   Pass
assert(isequal(flow_pattern([0.038 0.061 1049.02 0.00085]),'TRANSITION'))

51   Pass
assert(isequal(flow_pattern([0.034 0.063 989.16 0.00080]),'TRANSITION'))

52   Pass
assert(isequal(flow_pattern([0.031 0.136 1035.54 0.00086]),'TURBULENT'))

53   Pass
assert(isequal(flow_pattern([0.031 0.146 913.34 0.00081]),'TURBULENT'))

54   Pass
assert(isequal(flow_pattern([0.026 0.098 1036.97 0.00074]),'TURBULENT'))

55   Pass
assert(isequal(flow_pattern([0.032 0.083 1076.17 0.00073]),'TURBULENT'))

56   Pass
assert(isequal(flow_pattern([0.022 0.146 930.58 0.00073]),'TURBULENT'))

57   Pass
assert(isequal(flow_pattern([0.023 0.059 990.88 0.00083]),'LAMINAR'))

58   Pass
assert(isequal(flow_pattern([0.037 0.129 1042.54 0.00079]),'TURBULENT'))

59   Pass
assert(isequal(flow_pattern([0.034 0.146 1001.16 0.00076]),'TURBULENT'))

60   Pass
assert(isequal(flow_pattern([0.036 0.074 946.86 0.00079]),'TURBULENT'))

61   Pass
assert(isequal(flow_pattern([0.032 0.112 924.52 0.00072]),'TURBULENT'))

62   Pass
assert(isequal(flow_pattern([0.026 0.124 982.26 0.00087]),'TURBULENT'))

63   Pass
assert(isequal(flow_pattern([0.039 0.090 910.44 0.00081]),'TURBULENT'))

64   Pass
assert(isequal(flow_pattern([0.035 0.082 998.59 0.00074]),'TURBULENT'))

65   Pass
assert(isequal(flow_pattern([0.039 0.098 1008.00 0.00074]),'TURBULENT'))

66   Pass
assert(isequal(flow_pattern([0.022 0.056 1063.90 0.00085]),'LAMINAR'))

67   Pass
assert(isequal(flow_pattern([0.024 0.140 1036.86 0.00083]),'TURBULENT'))

68   Pass
assert(isequal(flow_pattern([0.040 0.053 984.85 0.00080]),'TRANSITION'))

69   Pass
assert(isequal(flow_pattern([0.032 0.058 1032.03 0.00071]),'TRANSITION'))

70   Pass
assert(isequal(flow_pattern([0.031 0.121 997.58 0.00082]),'TURBULENT'))

71   Pass
assert(isequal(flow_pattern([0.024 0.115 976.13 0.00072]),'TURBULENT'))

72   Pass
assert(isequal(flow_pattern([0.028 0.076 948.26 0.00082]),'TRANSITION'))

73   Pass
assert(isequal(flow_pattern([0.030 0.091 943.56 0.00087]),'TURBULENT'))

74   Pass
assert(isequal(flow_pattern([0.037 0.078 1023.08 0.00086]),'TURBULENT'))

75   Pass
assert(isequal(flow_pattern([0.039 0.142 976.96 0.00073]),'TURBULENT'))

76   Pass
assert(isequal(flow_pattern([0.036 0.061 931.76 0.00077]),'TRANSITION'))

77   Pass
assert(isequal(flow_pattern([0.037 0.108 1017.24 0.00089]),'TURBULENT'))

78   Pass
assert(isequal(flow_pattern([0.032 0.051 1061.88 0.00082]),'LAMINAR'))

79   Pass
assert(isequal(flow_pattern([0.030 0.077 951.62 0.00080]),'TRANSITION'))

80   Pass
assert(isequal(flow_pattern([0.025 0.055 933.85 0.00075]),'LAMINAR'))

81   Pass
assert(isequal(flow_pattern([0.024 0.111 1064.74 0.00086]),'TURBULENT'))

82   Pass
assert(isequal(flow_pattern([0.036 0.121 1071.88 0.00086]),'TURBULENT'))

83   Pass
assert(isequal(flow_pattern([0.024 0.149 918.72 0.00083]),'TURBULENT'))

84   Pass
assert(isequal(flow_pattern([0.024 0.074 967.94 0.00074]),'TRANSITION'))

85   Pass
assert(isequal(flow_pattern([0.030 0.145 978.92 0.00082]),'TURBULENT'))

86   Pass
assert(isequal(flow_pattern([0.032 0.121 980.31 0.00087]),'TURBULENT'))

87   Pass
assert(isequal(flow_pattern([0.038 0.125 957.12 0.00086]),'TURBULENT'))

88   Pass
assert(isequal(flow_pattern([0.023 0.100 1022.14 0.00084]),'TRANSITION'))

89   Pass
assert(isequal(flow_pattern([0.028 0.123 1077.46 0.00071]),'TURBULENT'))

90   Pass
assert(isequal(flow_pattern([0.023 0.136 984.35 0.00078]),'TURBULENT'))

91   Pass
assert(isequal(flow_pattern([0.039 0.125 1096.20 0.00075]),'TURBULENT'))

92   Pass
assert(isequal(flow_pattern([0.022 0.088 1000.05 0.00081]),'TRANSITION'))

93   Pass
assert(isequal(flow_pattern([0.040 0.099 980.18 0.00090]),'TURBULENT'))

94   Pass
assert(isequal(flow_pattern([0.025 0.117 1092.85 0.00083]),'TURBULENT'))

95   Pass
assert(isequal(flow_pattern([0.026 0.103 900.29 0.00088]),'TRANSITION'))

96   Pass
assert(isequal(flow_pattern([0.028 0.080 1090.12 0.00079]),'TURBULENT'))

97   Pass
assert(isequal(flow_pattern([0.026 0.058 1016.44 0.00073]),'LAMINAR'))

98   Pass
assert(isequal(flow_pattern([0.021 0.108 957.40 0.00077]),'TRANSITION'))

99   Pass
assert(isequal(flow_pattern([0.034 0.136 969.58 0.00089]),'TURBULENT'))

100   Pass
assert(isequal(flow_pattern([0.039 0.071 1053.65 0.00082]),'TURBULENT'))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!