储油罐的变位识别与罐容表标定附件除excel表的附件外的其余附件.docx
《储油罐的变位识别与罐容表标定附件除excel表的附件外的其余附件.docx》由会员分享,可在线阅读,更多相关《储油罐的变位识别与罐容表标定附件除excel表的附件外的其余附件.docx(80页珍藏版)》请在冰豆网上搜索。
储油罐的变位识别与罐容表标定附件除excel表的附件外的其余附件
附件一:
%part1:
formatshort
h=[159.02
176.14
192.59
208.50
223.93
238.97
253.66
268.04
282.16
296.03
309.69
323.15
336.44
349.57
362.56
375.42
388.16
400.79
413.32
425.76
438.12
450.40
462.62
474.78
486.89
498.95
510.97
522.95
534.90
546.82
558.72
570.61
582.48
594.35
606.22
618.09
629.96
641.85
653.75
665.67
677.63
678.54
690.53
690.82
702.85
714.91
727.03
739.19
751.42
763.70
764.16
776.53
788.99
801.54
814.19
826.95
839.83
852.84
866.00
879.32
892.82
892.84
906.53
920.45
934.61
949.05
963.80
978.91
994.43
1010.43
1026.99
1044.25
1062.37
1081.59
1102.33
1125.32
1152.36
1193.49
];h=h./1000;
v=(1.78/1.2)*2.45*((h-0.6).*sqrt(h.*(2*0.6-h))+0.6^2*asin(h./0.6-1)+pi*0.6^2/2)*1000;
vy=([50
100
150
200
250
300
350
400
450
500
550
600
650
700
750
800
850
900
950
1000
1050
1100
1150
1200
1250
1300
1350
1400
1450
1500
1550
1600
1650
1700
1750
1800
1850
1900
1950
2000
2050
2053.83
2103.83
2105.06
2155.06
2205.06
2255.06
2305.06
2355.06
2404.98
2406.83
2456.83
2506.83
2556.83
2606.83
2656.83
2706.83
2756.83
2806.83
2856.83
2906.83
2906.91
2956.91
3006.91
3056.91
3106.91
3156.91
3206.91
3256.91
3306.91
3356.91
3406.91
3456.91
3506.91
3556.91
3606.91
3656.91
3706.91
]+262);
figure
(1)
plot(h,v,'r.'),holdon;
plot(h,vy,'b.'),holdon;
legend('理论计算','实际')
%part2:
附件:
h=0.01:
0.01:
1.20;
v=(1.78/1.2)*2.45*((h-0.6).*sqrt(h.*(2*0.6-h))+0.6^2*asin(h./0.6-1)+pi*0.6^2/2)*1000;
guanxi=[h',v'];
vdaozhi=v'
附件三:
functionv=tuo(h,a)
a=a*pi/180;
symsyz;
fori=1:
length(h)
vv=int(int(1.78*sqrt(1-y^2/0.6^2),y,-0.6,h(i)-0.6-(z-0.4)*tan(a)),z,0,2.45);v(i)=subs(vv);
end
附件四:
formatshort
h=[411.29
423.45
438.33
450.54
463.90
477.74
489.37
502.56
514.69
526.84
538.88
551.96
564.40
576.56
588.74
599.56
611.62
623.44
635.58
646.28
658.59
670.22
680.63
693.03
704.67
716.45
727.66
739.39
750.90
761.55
773.43
785.39
796.04
808.27
820.80
832.80
844.47
856.29
867.60
880.06
892.92
904.34
917.34
929.90
941.42
954.60
968.09
980.14
992.41
1006.34
1019.07
1034.24
1035.36
]./1000;
va=tuo(h,4.1)*1000;
vay=[747.86
797.86
847.86
897.86
947.86
997.86
1047.86
1097.79
1147.79
1197.73
1247.73
1297.73
1347.73
1397.73
1447.73
1497.73
1547.73
1597.73
1647.73
1697.73
1747.73
1797.73
1847.73
1897.73
1947.73
1997.73
2047.73
2097.73
2147.73
2197.73
2247.73
2297.73
2347.73
2397.73
2447.73
2497.73
2547.73
2597.73
2647.73
2697.73
2747.73
2797.73
2847.73
2897.73
2947.73
2997.73
3047.73
3097.73
3147.73
3197.73
3247.73
3297.73
3299.74
]+215;
figure
(2)
plot(h,va,'r.'),holdon
plot(h,vay,'b.'),holdon
legend('ÀíÂÛ¼ÆËã','ʵ¼Ê')
附件六:
formatshort
h=[159.02
176.14
192.59
208.50
223.93
238.97
253.66
268.04
282.16
296.03
309.69
323.15
336.44
349.57
362.56
375.42
388.16
400.79
413.32
425.76
438.12
450.40
462.62
474.78
486.89
498.95
510.97
522.95
534.90
546.82
558.72
570.61
582.48
594.35
606.22
618.09
629.96
641.85
653.75
665.67
677.63
678.54
690.53
690.82
702.85
714.91
727.03
739.19
751.42
763.70
764.16
776.53
788.99
801.54
814.19
826.95
839.83
852.84
866.00
879.32
892.82
892.84
906.53
920.45
934.61
949.05
963.80
978.91
994.43
1010.43
1026.99
1044.25
1062.37
1081.59
1102.33
1125.32
1152.36
];h=h./1000;
v=(1.78/1.2)*2.45*((h-0.6).*sqrt(h.*(2*0.6-h))+0.6^2*asin(h./0.6-1)+pi*0.6^2/2)*1000;
va=tuo(h,4.1)*1000;
plot(h,v,'r.',h,va,'b-');
legend('ÎÞ±äλ','±äλ')
附件七:
functionv1=tuo1(h,a)
a=a*pi/180;
symsyz;
fori=1:
length(h)
vv=int(int(1.78*sqrt(1-y^2/0.6^2),y,-0.6,h(i)-0.6-(z-0.4)*tan(a)),z,0,h(i)/tan(a)+0.4);v1(i)=abs(subs(vv));
end
附件八:
functionv3=tuo3(h,a)
a=a*pi/180;
symsyz;
fori=1:
length(h)
vv=4.11-int(int(1.78*sqrt(1-y^2/0.6^2),y,h(i)-0.6-(z-0.4)*tan(a),0.6),z,0.4-(1.2-h(i))/tan(a),2.45);v3(i)=abs(subs(vv));
end
附件九:
formatshort
h=0:
10:
140;
h=h./1000;
a1=tuo1(h,4.1)*1000;
formatshort
h=150:
10:
1700;
h=h./1000;
a2=tuo(h,4.1)*1000;
formatshort
h=1180:
10:
1200;
h=h./1000;
a3=tuo3(h,4.1)*1000;
附件十:
Tiji.m
h=[2632.23
2624.30
2620.67
2610.29
2606.61
2599.59
2587.60
2582.05
2579.57
2575.44
2569.46
2564.12
2559.83
2548.47
2539.63
2528.01
2521.63
2510.23
2508.17
2500.07
2490.06
2485.73
2474.40
2464.77
2454.51
2446.77
2436.85
2431.55
2427.32
2422.20
2414.35
2404.05
2399.15
2393.12
2382.50
2374.35
2362.44
2358.40
2348.13
2339.37
2334.88
2328.13
2322.14
2314.14
2304.14
2301.09
2290.87
2280.46
2274.92
2268.61
2260.89
2251.88
2242.46
2232.88
2226.99
2220.70
2209.13
2201.40
2190.91
2186.14
2177.92
2170.04
2158.40
2155.54
2148.54
2141.32
2138.42
2127.37
2116.53
2110.14
2100.32
2096.84
2088.64
2084.03
2077.58
2067.14
2063.17
2058.14
2051.30
2045.92
2035.94
2024.06
2020.47
2016.11
2007.08
2001.33
1989.59
1977.87
1969.43
1958.83
1952.81
1944.49
1932.64
1925.05
1913.71
1904.51
1897.67
1889.27
1878.40
]./1000;
fori=1:
length(h)
[v(i),v2(i),v3(i)]=h7(h(i),0.000001,0);
end
v=1000*v;
vy=[60448.88
60311.43
60248.03
60065.11
59999.69
59874.06
59657.02
59555.51
59509.94
59433.77
59322.85
59223.17
59142.66
58927.69
58758.61
58534.01
58409.58
58185.31
58144.52
57983.36
57782.53
57695.08
57464.67
57267.02
57054.65
56893.24
56684.86
56572.86
56483.12
56374.11
56206.14
55984.22
55878.05
55746.87
55514.45
55334.90
55070.68
54980.57
54750.40
54552.85
54451.17
54297.75
54161.06
53977.71
53747.27
53676.72
53439.37
53196.16
53066.14
52917.56
52735.08
52521.14
52296.37
52066.65
51924.85
51772.96
51492.32
51303.95
51047.20
50930.04
50727.53
50532.69
50243.62
50172.37
49997.62
49816.82
49744.05
49465.96
49191.94
49029.86
48779.99
48691.21
48481.56
48363.42
48197.79
47928.87
47826.34
47696.24
47518.96
47379.23
47119.35
46808.88
46714.83
46600.46
46363.09
46211.59
45901.47
45590.80
45366.43
45083.88
44923.05
44700.35
44382.33
44178.12
43872.31
43623.60
43438.33
43210.41
42914.84];
plot(h,v,'r.'),holdon;
plot(h,vy,'bd'),holdon;
function[vv,v2,v3]=h7(h0,a,b)
a=(a/180)*pi;b=(b/180)*pi;
rt=1.625;r=1.5;
zt=1.5;yt=4;l1=2;l2=6;d=0.625;
hx=r+(h0-r).*cos(b);
h1=hx+l1*tan(a);h2=hx-l2*tan(a);
z0=((l1+l2)/2)*tan(a)+h2-r;
h1x=(-(h1-r+d/tan(a))+sqrt((h1-r+d/tan(a)).^2-(1+(cot(a))^2)*(d^2-rt^2+(h1-r).^2)))./(1+(cot(a))^2);
h2x=(-(h2-r+d/tan(a))+sqrt((r-h2+d/tan(a)).^2-(1+(cot(a))^2)*(d^2-rt^2+(h2-r).^2)))./(1+(cot(a))^2);
symsxyz;
fori=1:
length(h0)
yt1=min([(3-h0(i))/tan(a)+2yt]);yt2=min([h0(i)/tan(a)-2yt]);l=max([yt-yt10]);
v1(i)=int(int(2.*sqrt(1.5^2-z^2),z,-zt,z0(i)-y*tan(a)),y,-yt1,yt2)+l.*pi*r^2;h1(i)=min([3h1(i)]);h2(i)=max([0h2(i)]);
end
v1=subs(v1);
v2=vjiemian(h1x,h1,a)+(pi/(6*3))*h1.^2.*(3*3-2*h1);
v3=(pi/(6*3))*h2.^2.*(3*3-2*h2)-vjiemian(h2x,3-h2,a);
vv=abs(v1'+v2+v3)-0.4921101.*h0+0.1332825;
functionv=vjiemian(hx,h1,a)
z=h1-1.5+hx./3;
dx=(z-h1+1.5)./tan(a);
v=((1.625^2-z.^2).*acos((dx+0.625)./sqrt(1.625^2-z.^2))-tan(acos((dx+0.625)./sqrt(1.625^2-z.^2))).*(cot(a).*(z-h1+1.5)+0.625).^2).*hx;
附件十一:
h0=[2632.23
2490.06
2334.88
2177.92
2035.94
1868.46
1710.10
1581.14
1450.53
1305.06
1163.62
1020.05
870.36
726.89
597.55
473.22
]./1000;
vout=[2852.68
3486.38
3840.55
3681.36
4525.97
4400.31
3623.30
3672.12
4050.00
3853.96
3779.67
3748.08
3348.23
2760.98
2373.78
];
[a,b]=findab(h0,vout);
a,b
function[a,b]=findab(h0,vout)
a1=0;a2=10;b1=0;b2=10;
n=0;
whilen<=10
v(:
1)=h7(h0,(3*a1+a2)/4,(3*b1+b2)/4)*1000;
v(:
2)=h7(h0,(a1+3*a2)/4,(3*b1+b2)/4)*1000;
v(:
3)=h7(h0,(3*a1+a2)/4,(b1+3*b2)/4)*1000;
v(:
4)=h7(h0,(a1+3*a2)/4,(b1+3*b2)/4)*1000;
vv(:
1)=-diff(v(:
1));
vv(:
2)=-diff(v(:
2));
vv(:
3)=-diff(v(:
3));
vv(:
4)=-diff(v(:
4));
e=sum((vv-[voutvoutvoutvout]).^2)
emin=min(e);
switchemin
casee
(1)
a=(3*a1+a2)/4;b=(3*b1+b2)/4;a1=a1;b1=b1;a2=(a1+a2)/2;b2=(b1+b2)/2;
casee
(2)
a=(a1+3*a2)/4;b=(3*b1+b2)/4;a1=(a1+a2)/2;a2=a2;b1=b1;b2=(b1+b2)/2;
casee(3)
a=(3*a1+a2)/4;b=(b1+3*b2)/4;a1=a1;a2=(a1+a2)/2;b1=(b1+b2)/2;b2=b2;
otherwise
a=(a1+3*a2)/4;b=(b1+3*b2)/4;a1=(a1+a2)/2;a2=a2;b1=(b1+b2)/2;b2=b2;
end
n=n+1;a,b
end
附件十四:
h0=[2632.23
2624.30
2620.67
2610.29
2606.61
2599.59
2587.60
2582.05
2579.57
2575.44
2569.46
2564.12
2559.83
2548.47
2539.63
2528.01
2521.63
2510.23
2508.17
2500.07
2490.06
2485.73
2474.40
2464.77
2454.51
2446.77
2436.85
2431.55
2427.32
2422.20
2414.35
2404.05
2399.15
2393.12
2382.50
2374.35
2362.44
2358.40
2348.13
2339.37
2334.88
2328.13
2322.14
2314.14
2304.14
2301.09
2290.87
2280.46
2274.92
2268.61
2260.89
2251.88
2242.46
2232.88
2226.99
2220.70
2209.13
2201.40
2190.91
2186.14
2177.92
2170.04
2158.40
2155.54
2148.54
2141.32
2138.42
2127.37
2116.53
2110.14
2100.32
2096.84
2088.64
2084.03
2077.58
2067.14
2063.17
2058.14
2051.30
2045.92
2035.94
2024.06
2020.47
2016.11
2007.08
2001.33
1989.59
1977.87
1969.43
1958.83
1952.81
1944.49
1932.64
1925.05
1913.71
1904.51
1897.67
1889.27
1878.40
]./1000;
vout=[60448.88
60311.43
60248.03
60065.11
59999.69
59874.06
59657.02
59555.51
59509.94
59433.77
59322.85
59223.17
59142.66
58927.69
58758.61
58534.01
58409.58
58185.31
58144.52
57983.36
57782.53
57695.08
57464.67
57267.02
57054.65
56893.24
56684.86
56572.86
56483.12
56374.11
56206.14
55984.22
55878.05
55746.87
5