Randomised Bead Machine/Pachinko Problem.
이전 댓글 표시
Hello, I am writing code for Bead Machine problem and while there is no problem with standard model I have some issues with model in which nails are distributed randomly. While horizontal randomization can be resolved by having random chance of ball falling to the right or to the left using random number generator, vertical randomization doesn't look as obvious for me. Do you have any ideas how to implement vertical randomization?
답변 (1개)
Walter Roberson
2018년 3월 5일
0 개 추천
The ball does not simply fall to one side or the other of the peg: the ball bounces off the peg, with the peg vibrating and acting as a bit of a spring. The curved upward bounce might intersect the bottom or side of a peg above the first, leading to a spring-pushed bounce away or down. With the vertical positions not always the same, the velocities obtained are not always going to be the same....
So you model in the acceleration and spring effects and do path planning and a bunch of testing for for intersection...
댓글 수: 5
Adil Baitenov
2018년 3월 5일
Walter Roberson
2018년 3월 5일
However, you are writing code for the Bead Machine problem, and in the Bead Machine, the pegs do vibrate and beads do bounce and are acted upon by gravity but not by electromagnetic fields or strong or nuclear forces.
If you change your mind and decide to model a different system, then we would need to know the properties of the other system to best advise.
Adil Baitenov
2018년 3월 5일
Walter Roberson
2018년 3월 5일
Are the scattering cylinders perfect reflectors? Such that upon scattering, each particle keeps 100% of its momentum but is scattered according to standard angle-of-reflection criteria? And there is no fluid or gravity to consider? What size are the cylinders compared to the particles? Are either one considered points for this purpose?
Adil Baitenov
2018년 3월 6일
카테고리
도움말 센터 및 File Exchange에서 Animation에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!