Code Monkey home page Code Monkey logo

Comments (6)

lfarv avatar lfarv commented on August 21, 2024

Anybody willing to do something about that ? Or shall I do it ?

from at.

swhite2401 avatar swhite2401 commented on August 21, 2024

I think @lcarver said he would do it, but most likely not for matlab...

from at.

lfarv avatar lfarv commented on August 21, 2024

Fine. Apart from naming, better being done before the function gets widely used, all my other suggestions are neither critical nor urgent, just ideas!

For Matlab, same: not urgent, I might do it some time later…

from at.

lcarver avatar lcarver commented on August 21, 2024

Sorry, I was off yesterday. I will do it for your first 2 points. But yes, I will not do the MATLAB! Although I am not sure of the following point:

"one could even accept a Σ-matrix, which can replace alpha*, beta*, emit*, sigma_dp*.`"

This is not clear to me.

from at.

lfarv avatar lfarv commented on August 21, 2024

This is not clear to me.

The Σ-matrix (beam matrix as returned by ohmienvelope, for instance) contains all the optics and emittance information. So, with Σ and tunes, you can get the M66 matrix and the emittances. Adding the damping times, you have everything.

Here, since the longitudinal motion is treated apart, I think we should use a 4D twiss_in input, generate a 4x4 transfer map and add the 44, 45, 54 and 55 terms as you do it now.

So to start from the R matrix in twiss_in, the easiest is first to build Σ = ε1.R1 + ε2.R2, then use a_matrix to get the A matrix, use the tunes to generate the rotation matrix S and finally build M44 = A.S.A-1

If starting directly from Σ, a_matrix will also return the needed emittances.

from at.

lcarver avatar lcarver commented on August 21, 2024

fixed in #655

from at.

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.