#71

http://office.microsoft.com/en-gb/excel-help/rand-function-HP010342816.aspx

This is flat. You can convert it into gaussian if you want.

There is discussion about it:

http://elsmar.com/Forums/showthread.php?t=22358

There seems to be an agreement what robert said about it. It would be interesting to hear why and how bad rand() actually is.

This is flat. You can convert it into gaussian if you want.

There is discussion about it:

http://elsmar.com/Forums/showthread.php?t=22358

There seems to be an agreement what robert said about it. It would be interesting to hear why and how bad rand() actually is.

#72

Quote from: admin on June 25, 2014, 01:47:55 PM

In visual basic and as an Excel function I have published random number generators, two of them generate numbers with a constant probability ("flat").

The other one. =bfx_rang(....) generates numbers according to a gaussian distribution.

The properties of Excels random generators did not suit my purpose.

The "flat" distribution is the basis for generating numbers distributed according to another distribution.

For gaussian distributions efficient algorithms can be googled.

Nevertheless, the more random variables involved in a simulation, the less details of a certain random variable matter.

Understood the last part, but it's not clear why RANDOM in VB is not good enough. I got the point on Gaussian but I read somewhere that random() is indeed gaussian, so more confussion for me at least

#73

What's wrong with excel's RAND ( ) ? My monte carlo is based on that and I got same averages as some references I used...

#74

In visual basic and as an Excel function I have published random number generators, two of them generate numbers with a constant probability ("flat").

The other one. =bfx_rang(....) generates numbers according to a gaussian distribution.

The properties of Excels random generators did not suit my purpose.

The "flat" distribution is the basis for generating numbers distributed according to another distribution.

For gaussian distributions efficient algorithms can be googled.

Nevertheless, the more random variables involved in a simulation, the less details of a certain random variable matter.

The other one. =bfx_rang(....) generates numbers according to a gaussian distribution.

The properties of Excels random generators did not suit my purpose.

The "flat" distribution is the basis for generating numbers distributed according to another distribution.

For gaussian distributions efficient algorithms can be googled.

Nevertheless, the more random variables involved in a simulation, the less details of a certain random variable matter.

#75

I'll let robert answer the programming stuff...

If you look into commercial programs gaussian distribution is the most common for gun accuracy. To apply anything else you would need really extensive testing and fitting.

I have done a shooting diary as well (see Group and velocity statistics thread) and I have now around 500 groups in my database. When it comes to statistics it's not much but it is something. In avarage all the real world group measures I have saved fit very well to gaussian distribution. So I would say it really is pretty good probability distribution for the application.

If you accept that holes distribute according to gaussian distribution you can calculate lot's of things. For example I have done extensive testing with monte carlo comparing different group size measures. There are lots of them. To mention few: radial extreme spread (the most common and worst), ES X and Y directions, radial standard deviation, SD X and Y directions, diagonal, Circular error probability (which is best I have found). There are at least two important things which define the best measure: 1. effectivenes which means that how many rounds you have to shoot for two different loads to define which is more accurate. 2. independence which means how number of shots or group shape affects to measure in question.

The best feature in SD based group measures is that they are not depended on number of shots in the group like extreme spread measures. For example with monte carlo you can calculate that 10-shot group is around 1,6x (if my memory serves me right) larger than 3-shot group. And that's only true if groups are round in average. While CEP is in average approx. the same for both 3- or 10-shot groups. If group ellipcity factor is not higher than 4.

If you look into commercial programs gaussian distribution is the most common for gun accuracy. To apply anything else you would need really extensive testing and fitting.

I have done a shooting diary as well (see Group and velocity statistics thread) and I have now around 500 groups in my database. When it comes to statistics it's not much but it is something. In avarage all the real world group measures I have saved fit very well to gaussian distribution. So I would say it really is pretty good probability distribution for the application.

If you accept that holes distribute according to gaussian distribution you can calculate lot's of things. For example I have done extensive testing with monte carlo comparing different group size measures. There are lots of them. To mention few: radial extreme spread (the most common and worst), ES X and Y directions, radial standard deviation, SD X and Y directions, diagonal, Circular error probability (which is best I have found). There are at least two important things which define the best measure: 1. effectivenes which means that how many rounds you have to shoot for two different loads to define which is more accurate. 2. independence which means how number of shots or group shape affects to measure in question.

The best feature in SD based group measures is that they are not depended on number of shots in the group like extreme spread measures. For example with monte carlo you can calculate that 10-shot group is around 1,6x (if my memory serves me right) larger than 3-shot group. And that's only true if groups are round in average. While CEP is in average approx. the same for both 3- or 10-shot groups. If group ellipcity factor is not higher than 4.

Quote from: 375CT on June 24, 2014, 07:29:08 AMRead the article about CEP. Derivation includes few approximations at least on ellipcity and bias. Then again I have assumed that all the dispersion factors are independed. This is pretty good approximation but not exactly true as roberts states on Hit probability thread.

Mman, if you don't me asking, why you state your work is not mathematically exact?

#76

Excellente discussion and insight!

Just a simple question, since I'm not that familiar with Excel programming (just the basics), do you think that using a random number generator (RNG), for using a common programming language, could do the same? I mean, assuming that the RNG is based on a Gaussian distribution?

On the other hand, what other kind of probability distribution do you guys thinks is worth exploring for a realistic scenario?

I find this subject very interesting for developing some sort of BfX simulator, besides the excellent work already done by Robert.

Mman, if you don't me asking, why you state your work is not mathematically exact?

Just a simple question, since I'm not that familiar with Excel programming (just the basics), do you think that using a random number generator (RNG), for using a common programming language, could do the same? I mean, assuming that the RNG is based on a Gaussian distribution?

On the other hand, what other kind of probability distribution do you guys thinks is worth exploring for a realistic scenario?

I find this subject very interesting for developing some sort of BfX simulator, besides the excellent work already done by Robert.

Mman, if you don't me asking, why you state your work is not mathematically exact?

#77

You are digging into fundamental questions about rifle internal ballistics. I been interested in this for years and when I started using finite element method (FEM) for guns I had a dream of 'perfect' gun design. That design would minimize vibrations and ultimately leave only intermediate and external ballistic effects to harm accuracy.

First thing you have to accept is that you can't use analytical methods to accurately estimate recoil nor vibrations. Only sophistic numerical methods like Finite element method are capable of taking into account everything from time depended excitation to flexible materials and supports. Analytical methods like your excel spreadsheet can be pretty good in estimating what are total forces, moments and torques when whole recoil phenomenon is over. However you should be interested in what happens while bullet is still in the barrel. That's far more complicated since material flexibility plays major role in that. Usually only minor part of the recoil is transferred to your shoulder during barrel time. Rest of it comes after and that has only psychological effect (which can be important as well). See picture below. It is calculated recoil force felt on your shoulder for gun and ballistics very similar to your's. This is also very sensitive to hold, recoil pad and even your clothing and body composition. The point still remains; usually most part of the recoil comes after.

From the Internet you can find lot's of general rules what kind of designs can minimize or optimize vibrations. However first thing you learn doing FEM is that gun vibrations are actually really sensitive to many things. For example change of load, stock or rifle scope can significantly alter vibration behavior. This leads to conclusion that general rules that always have a positive effect to accuracy are very hard to come by.

Okay, how did I do in my way to ultimate gun design? As I'm still here writing and not enriched by my inventions so pretty poorly I guess. I have still found many useful trends that work most of the time. Beyond that you have to calculate everything case by case. Usually that requires calibration of calculation model with measurements. However in the past I have got great results even without calibration. I still believe luck has played a some role in those situations. Couple of the most successful cases are combination gun projects where I was able to calculate how two free floating barrels should be assembled in relation to each other so that zero would be the same. According to calculation relative vibration amplitude was about 6 MRAD and same zero was achieved withing 0,5 mrad. The other barrel was shotgun barrel so accuracy was good enough. At the moment I have couple of gun projects going on where I have optimized barrel profile for bending vibration. Load testing will give me feedback how it did work.

About "BARREL VIBRATIONS SIMULATOR" you posted; it's first time I see it. It still obvious that it can't be useful in optimizing barrel profile. Reason is simple; too few input parameters. Only barrel profile is taken into account and excitation can't be altered to mention couple of things that would alone ruin the accuracy. I still agree many points mentioned in the text below calculator.

First thing you have to accept is that you can't use analytical methods to accurately estimate recoil nor vibrations. Only sophistic numerical methods like Finite element method are capable of taking into account everything from time depended excitation to flexible materials and supports. Analytical methods like your excel spreadsheet can be pretty good in estimating what are total forces, moments and torques when whole recoil phenomenon is over. However you should be interested in what happens while bullet is still in the barrel. That's far more complicated since material flexibility plays major role in that. Usually only minor part of the recoil is transferred to your shoulder during barrel time. Rest of it comes after and that has only psychological effect (which can be important as well). See picture below. It is calculated recoil force felt on your shoulder for gun and ballistics very similar to your's. This is also very sensitive to hold, recoil pad and even your clothing and body composition. The point still remains; usually most part of the recoil comes after.

From the Internet you can find lot's of general rules what kind of designs can minimize or optimize vibrations. However first thing you learn doing FEM is that gun vibrations are actually really sensitive to many things. For example change of load, stock or rifle scope can significantly alter vibration behavior. This leads to conclusion that general rules that always have a positive effect to accuracy are very hard to come by.

Okay, how did I do in my way to ultimate gun design? As I'm still here writing and not enriched by my inventions so pretty poorly I guess. I have still found many useful trends that work most of the time. Beyond that you have to calculate everything case by case. Usually that requires calibration of calculation model with measurements. However in the past I have got great results even without calibration. I still believe luck has played a some role in those situations. Couple of the most successful cases are combination gun projects where I was able to calculate how two free floating barrels should be assembled in relation to each other so that zero would be the same. According to calculation relative vibration amplitude was about 6 MRAD and same zero was achieved withing 0,5 mrad. The other barrel was shotgun barrel so accuracy was good enough. At the moment I have couple of gun projects going on where I have optimized barrel profile for bending vibration. Load testing will give me feedback how it did work.

About "BARREL VIBRATIONS SIMULATOR" you posted; it's first time I see it. It still obvious that it can't be useful in optimizing barrel profile. Reason is simple; too few input parameters. Only barrel profile is taken into account and excitation can't be altered to mention couple of things that would alone ruin the accuracy. I still agree many points mentioned in the text below calculator.

#78

See Hit probability thread as well. My tool is based on analytical formulas. I have compared the results with litz's tool and the difference is usually less than 5%. I have done some assumptions that are not mathematically exact. However it's still pretty close. In theory benefit is that calculation time is reduced significantly compared to monte carlo method. However I'm not an expert in programming and my code is not as effective as robert's. My program also includes more variables. That's why theoretical benefit in calculation time is not redeemed in practice.

The limitation also is that I can only calculate round targets while with monte carlo target shape is not limited.

Here is as an article about circular probability error which I have used. It is also far better measure for gun accuracy than extreme spread when it comes to probability of hitting something.

Robert, how many iterations you need to do with monte carlo before you get hit probability say in accuracy of 1%? 99 % of the time?

The limitation also is that I can only calculate round targets while with monte carlo target shape is not limited.

Here is as an article about circular probability error which I have used. It is also far better measure for gun accuracy than extreme spread when it comes to probability of hitting something.

Robert, how many iterations you need to do with monte carlo before you get hit probability say in accuracy of 1%? 99 % of the time?

#79

I started shooting 230gr Berger hybrid bullets in my 300WM for use at long range in F-Open competition. While not driving these bullets hard at 2850 fps the 10kg rifle still generates considerable recoil. This set my accuracy back initially until I learned some new skills to cope with the increased recoil.

One of the things I have set out to do is understand the forces involved. I am hoping this might lead to understanding stock design and the best place to add weight to the rifle to maximise the allowed limit of 10kg. So far I have put together a spreadsheet for free recoil calculation, (force and velocity) and also for "torque". The spreadsheet can be downloaded from here: http://fclassdu.com/origin/wp-content/uploads/2014/06/Rifle-Torque-Recoil-Calculator.xls

To state the obvious, recoil comes into consideration for accuracy only for the time the bullet is in the barrel. That usually means for the first few milliseconds and the first few millimeters of rear recoil movement. The rotation of the barrel due to the torque effect for my loads is approx 0.06 degrees as the bullet leaves the muzzle.

I am also very interested in barrel vibration and wonder if anyone using this forum has looked at calculating the effects of barrel profile, weight and load effects on barrel oscillations. I found this link really interesting. http://www.geoffrey-kolbe.com/articles/rimfire_accuracy/barrel_vibrations.htm

Ian

One of the things I have set out to do is understand the forces involved. I am hoping this might lead to understanding stock design and the best place to add weight to the rifle to maximise the allowed limit of 10kg. So far I have put together a spreadsheet for free recoil calculation, (force and velocity) and also for "torque". The spreadsheet can be downloaded from here: http://fclassdu.com/origin/wp-content/uploads/2014/06/Rifle-Torque-Recoil-Calculator.xls

To state the obvious, recoil comes into consideration for accuracy only for the time the bullet is in the barrel. That usually means for the first few milliseconds and the first few millimeters of rear recoil movement. The rotation of the barrel due to the torque effect for my loads is approx 0.06 degrees as the bullet leaves the muzzle.

I am also very interested in barrel vibration and wonder if anyone using this forum has looked at calculating the effects of barrel profile, weight and load effects on barrel oscillations. I found this link really interesting. http://www.geoffrey-kolbe.com/articles/rimfire_accuracy/barrel_vibrations.htm

Ian

#80

Version 3.0.5 is live. I've added a full metric feature and a tertiary special functions page that gives deltas for -1,-2,-3,+1,+2,+3InHg for wind and drop. 3.0.7 will be out in a few days with more improvements.