Giter VIP home page Giter VIP logo

Comments (6)

kklmn avatar kklmn commented on August 17, 2024 1

Hi,

See the docs for BentLaue2D class and an example for it: examples/withRaycing/03_LaueMono/04_sagittal_bending.py.

from xrt.

kklmn avatar kklmn commented on August 17, 2024 1

The easiest way is to assign to the Rs field of the optical element instance a new value. The best place for this is in a generator where you can loop over a list of predefined values. Look for generator in the supplied examples.

from xrt.

kklmn avatar kklmn commented on August 17, 2024 1

You are free to implement any geometry by defining two methods: local_z(x, y) for surface height and local_n(x, y) for surface normal. If you don't want a double parabolic shape, you don't need this class (BentLaue2D), just build your own.

from xrt.

luweb avatar luweb commented on August 17, 2024

Thank you Konstantin, that is very helpful. After playing with the BentLaue2D class I just have one more follow up question: Is there a built-in way to vary the sagittal bending radius? Or any alternative strategy to accomplish that? I was thinking about stacking multiple bent crystals together with different radii, but I am not sure if that is the best approach. Thank you!

from xrt.

luweb avatar luweb commented on August 17, 2024

From what I understood about the generator is that it automatizes a sequence of ray tracing runs. Sorry for not being clear before, but what I meant by varying the sagittal bending radius was varying with respect to energy, so that rays of different energies will "see" different radii. The final geometry would be a "warped" toroid. Is it possible to implement something like that in xrt with generator or another method?

from xrt.

luweb avatar luweb commented on August 17, 2024

Got it, thank you very much for the guidance, I will try that!

from xrt.

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.