Giter Club home page Giter Club logo

Comments (5)

Datseris avatar Datseris commented on July 22, 2024

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.

Datseris avatar Datseris commented on July 22, 2024

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.

Datseris avatar Datseris commented on July 22, 2024

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.

dapias avatar dapias commented on July 22, 2024

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.

Datseris avatar Datseris commented on July 22, 2024

yeap we can close this. I just did a commit that changed it to 2inr.

from dynamicalbilliards.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.