Comments (5)
Hi Diego,
unfortunately you are correct... periodic doesn't work for n=6
for exactly the reason you said. But isn't it straightforward to do the condition:
if n==6 && setting == "periodic"
normal = normalize([-w[2], w[1]])*sqrt(3)*r
else
normal = inr*normalize([-w[2], w[1]])
end
? What would the new function do differently?
Also you are right about the plotting: it only works for orthogonal vectors :(
A new function has to be made for triangular/hexagonal periodicity as far as plotting is concerned...
from dynamicalbilliards.jl.
Also, are you using this package? What are you working on? I am very curious and also very happythat somebody else is using this package!
from dynamicalbilliards.jl.
Hm, also, I just took a much closer look at the source code there. I think the only problem is that I use
normal = inr*normalize([-w[2], w[1]])
instead of normal = 2inr*normalize([-w[2], w[1]])
(notice the 2). Since two opposite faces have distance of twice the inner radius, shouldn't this fix all problems? (besides plotting)
from dynamicalbilliards.jl.
Hi there! Oh, you are right.: it seems than normal = 2.0*inr*normalize([-w[2], w[1]])
fix the problem.
I am using the package to calculate the spectrum of Lyapunov exponents in Billiards. Just changing few things in the main code it seems very suitable for this purpose.
I take this chance to thank you for sharing the package :)
Let me know if I should close the issue
from dynamicalbilliards.jl.
yeap we can close this. I just did a commit that changed it to 2inr
.
from dynamicalbilliards.jl.
Related Issues (20)
- simple function that returns transmission and refraction of given refractive index HOT 2
- Implent collision with MagneticParticle and Ellipse
- Direct computation of evolution timeseries HOT 3
- Broken documentation link
- Glue HOT 4
- Add "order of 1" note
- A few missing shapes HOT 4
- Plotting with BigFloats HOT 5
- Adding absorption HOT 4
- Make the speed of the particle dependent on the refractive index of the medium HOT 3
- Include the reflection rule as a field of a new wall/disk object HOT 1
- Add automatic normal for Walls
- Error tagging new release
- Fresnel laws for curved surfaces HOT 4
- [FR] : polygon billiard from vertices HOT 1
- timeseries! is clearly wrong for default dt=Inf ! ! ! HOT 2
- Update to static arrays 0.12
- Simplification and unification of source code: evolve conditionally and collect data?
- TagBot trigger issue HOT 5
- bdplot not defined HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynamicalbilliards.jl.