how to calculate weight of rectangular tube?

how to calculate weight of rectangular tube?

There are two ways to calculate the weight of a rectangular tube: theoretical weight calculation and actual weighing
The weight per meter of rectangular pipe (kg)=[(outer diameter inner diameter) x inner diameter] x 0.02466, where 0.02466 is a fixed coefficient. During operation, it is necessary to accurately measure the outer and inner diameters of the pipe, which are the basis for calculation. For example, the weight per meter of a rectangular tube with an outer diameter of 50mm and an inner diameter of 30mm is [(50-30) × 30] × 0.02466=14.796kg. In addition, the wall thickness of the pipe is also a key factor affecting weight and cannot be ignored. Professional tools must be used during measurement to ensure accurate and error free data. Finally, the obtained result is the weight per meter. If the total weight is required, it needs to be multiplied by the length of the pipe material.
Actual weighing is to calculate the weight of the rectangular tube based on the actual weight value.