Week 5 - Oct.2nd
Progress
Progress
- Chance get_next_collision function to take current_boundry as a parameter
avoid some rounding, also save unnecessary calculation by putting this as a if-else statement
- refactor some if-else statement, better reuse of code in the future
- code for reflection on circles (r>=1/2) with bugs
During meeting:
During meeting:
- debug code and make simulation - get this to work correctly!
- save simulation pics
- note: red is incoming, green is exiting
To do
To do
Code
- use inf instead of big numbers like 100000
- use draw sector function to draw part ofter circle
- work on when r<1/2, use straight line for part that circles not intersect
- refactor simulation function to take x and vin as parameter, generating random variables outside simulate function
- search on functions that solve non quadratic functions, get rid of expression for specific t’s
- animation
- take v out as v in for next periodic micro geometry, simulate over multiple ones (like a tube)
- calculate escape time
Latex
- detail calculation for reflection on triangles
- how simulations are done
- documentation for R code