Are My Mathematica Calculations for Pneumatic Gun Velocity Accurate?

  • Thread starter axemaster
  • Start date
  • Tags
    Valve
In summary, verifying valve specs is crucial for ensuring that valves meet the necessary specifications for size, shape, material, and performance. This can be done through various methods, such as visual inspection, precision measurement, and testing. Failure to verify valve specs can result in negative consequences, including malfunctions and increased risk of accidents. While it is primarily the responsibility of manufacturers to verify valve specs, end-users should also conduct regular checks. There are also standards and regulations set by organizations like ASME and ISO that outline the requirements for verifying valve specs. It is important to follow these standards for the safety and reliability of valves.
  • #1
axemaster
59
7
Ok, so I'm building a pneumatic gun with a barrel 0.3m long, operated using air pressure. The barrel is square, 1cm on each side, and the projectile is a 5g elongated cube. I wrote some code in mathematica to plot the speed in m/s versus the air pressure in psi.

I was wondering if anyone could verify that my calculations are accurate, and if not, where I may have gone wrong. I'm pretty confident, but as I'm spending money on this I want to be sure.

The mathematica code is below:

-------------------------------

(*Variables;
x is the distance over which it accelerates;
m is projectile mass in kg;
area is area that the force acts on in cm (square barrel 1cm on each \
side);
*)

x = .3;
m = .005;
area = 1;

(* Constants and conversions *)
psiToPascalsConstant = 6894.7573;

pressforce[pressure_] := (pressure*psiToPascalsConstant)*
area; (* gives N *)

velocity[force_] := ((force/m)*Sqrt[(2 x)/(force/m)])/100;

Plot[velocity[pressforce[psi]], {psi, 0, 150},
AxesLabel -> {Psi, Velocity}]

-------------------------------

Thanks for your help!

-Axemaster
 
Engineering news on Phys.org
  • #2


Dear Axemaster,

Thank you for sharing your project with us. It is great to see individuals like you exploring the world of science and engineering.

I have looked over your code and calculations, and everything seems to be in order. Your approach to calculating the velocity of the projectile using the force applied and the distance over which it accelerates is correct. Additionally, your use of constants and conversions is also accurate.

The only suggestion I would make is to double check the units in your final calculation for velocity. It appears that you are converting from meters to centimeters, but then dividing by 100 again. This may result in a small error in your final velocity calculation. I would recommend keeping all units in meters for consistency.

Overall, your calculations seem to be accurate and your approach is sound. However, as with any project, there may be unforeseen variables or factors that could affect the outcome. I would suggest testing your pneumatic gun in a controlled environment to validate your results and make any necessary adjustments.

Keep up the great work and happy experimenting!

 

FAQ: Are My Mathematica Calculations for Pneumatic Gun Velocity Accurate?

What is the purpose of verifying valve specs?

The purpose of verifying valve specs is to ensure that the valves meet the required specifications, such as size, shape, material, and performance, as specified by the manufacturer or engineering standards. This is important for the proper functioning and safety of the valves in various industrial applications.

How do you verify valve specs?

Valve specs can be verified through various methods, such as visual inspection, measuring with precision tools, conducting pressure and flow tests, and comparing the results with the specified values. In some cases, specialized equipment or non-destructive testing may also be used.

What are the consequences of not verifying valve specs?

Failing to verify valve specs can lead to various negative consequences, including malfunctioning valves, reduced efficiency, increased risk of accidents or equipment failure, and potential legal consequences. It can also result in additional costs for repairs or replacements.

Who is responsible for verifying valve specs?

In most cases, it is the responsibility of the manufacturer to ensure that the valves meet the specified requirements. However, it is also important for end-users or operators to conduct regular checks and tests to verify that the valves are still functioning within the required specs.

Are there any standards or regulations for verifying valve specs?

Yes, there are various standards and regulations set by organizations such as the American Society of Mechanical Engineers (ASME) and the International Organization for Standardization (ISO) that outline the requirements for verifying valve specs. It is important to follow these standards to ensure the safety and reliability of the valves.

Similar threads

Back
Top