Accuracy of Bullet: number of iteration vs time step?

Post Reply
Ehsanizadi
Posts: 72
Joined: Mon Dec 02, 2013 4:13 pm

Accuracy of Bullet: number of iteration vs time step?

Post by Ehsanizadi »

Hi,

I'm working on simulation of particulate media when subjected to different stresses (normal and shear) using Bullet. Within the context of my work I have to also measure the accuracy of Bullet.

My simulation involves about 2000 densely positioned spheres subjected to shear and normal stresses. I tried to play with two parameters to see the effects of them on the results.
What is my result?

I mainly focused on contact forces and I plot such forces in form of stress and displacement. So, the x axis would be shear displacement, which is a kind of input to our problem, and y-axis is the shear stress, which is the output of the simulation. The nature of the response is in such a way that at very low shear displacements, there is a high shear stress, but with further increase in shear displacement, the whole system fails and the shear stress tends to decrease as shear displacement increases.
The effect of number of iteration

The effect of number of iterations on the shear stress is demonstrated in the figure below:
The time step for all cases is taken to 0.001 seconds.

Image
As it can bee seen when the number of iterations is taken to 20, which is the bullet default value, there are many fluctuations in the graph, however, with increase in the number of iterations, the bound of fluctuations tend to decrease (which is good) but with further increase in number of iteration, this bound will not be more narrower!
The effect of time step

The effect of time step on the results also is investigated, as shown below.
Image

Well, for delta-t = 10x, the results are quite shaky but with decrease in delta-t, the results will be so nice and with minimized fluctuation bound. That's good!
But the strange thing is that why with more decreasing of delta-time (delta-t/2 and delta-t/10) the fluctuations appear again and the results become more inaccurate?

Could it be due to the fact that force/stress is not a correct parameter to measure the accuracy?
For example the forces can be derived from position of the objects by putting spring between the objects I already measured the forces for them. Below is the same graph as two previous ones, but for this one I derived the forces from spring, which is position dependent:
Image

Note that negligible change observed when changing the iteration number or delta time of the simulation in the latter case.

If the answer is yes (i.e. force is not the correct parameter to measure the accuracy since they are computed externally, or due to integration or etc.) how I can measure the accuracy of the Bullet within the force/stress framework?

Thanks for your help in advance.
Post Reply