50 likes | 171 Vues
This document presents a MATLAB implementation for calculating the allowable pressure of thin-walled tubing using Barlow's equation. The analysis focuses on tubing diameters of 1/4", 3/8", and 1/2", with a constant wall thickness. The allowable tensile strength of the tubing wall is taken into account to compute the permissible internal pressure for each tubing diameter. Results are visualized in a plot showing the relationship between tubing diameter and allowable pressure. The calculated pressures are: 14822.92 psi for 0.25", 9881.95 psi for 0.38", and 7411.46 psi for 0.50".
E N D
Tubing Calculations Allowable Pressure as a function of Diameter
Where: Test pressure shall be determined by Barlow's equation for thin hollow cylinders under tension.
MATLAB Tubing Allowable Pressure Calculations %Jared Foley %Green Machine Transmission %11/21/08 dmat=[1/4; 3/8; 1/2]; %outter diameter of tubing (ihch) t=[0.035; 0.035; 0.035]; %tubing wall thickness (inch) S= 52939; %allowable tensile strength in wall (psi) P=((2*S).*t)./dmat; %allowable pressure of tube (psi) fprintf('Allowable pressure for %3.2f inch is %10.2f psi\n', dmat(1,1), P(1,1)); fprintf('Allowable pressure for %3.2f inch is %10.2f psi\n', dmat(2,1), P(2,1)); fprintf('Allowable pressure for %3.2f inch is %10.2f psi\n', dmat(3,1), P(3,1)); figure plot(dmat,P); title('Tubing Diameter vs. Allowable Pressure'); ylabel('Pressure (psi)') xlabel('Tubing Diameter (inch)')
Calculation results Allowable pressure for 0.25 inch is 14822.92 psi Allowable pressure for 0.38 inch is 9881.95 psi Allowable pressure for 0.50 inch is 7411.46 psi