Giter Site home page Giter Site logo

build ellipsoidal mirror about xrt HOT 10 CLOSED

leahwang1962 avatar leahwang1962 commented on August 15, 2024
build ellipsoidal mirror

from xrt.

Comments (10)

kklmn avatar kklmn commented on August 15, 2024

Hi,

Indeed, EllipticalMirrorParam did not allow the top part. I have added a new parameter isClosed, see here, that controls this behavior.

We have another class for ellipsoidal closed shape, EllipsoidCapillaryMirror.

The two classes differ in the meaning of center and pitch parameters, as explained in the docs, but they give the same result.

Both classes are exemplified in a new test script tests/raycing/test_ellipsoid_tube_mirror.py.

Please update from GH.

from xrt.

leahwang1962 avatar leahwang1962 commented on August 15, 2024

Thanks for the update.
After copy the new oes.py, I can see isClosed as a parameter for xrt.backends.raycing.oes.EllipticalMirrorParam in XRTQook's document part, but it's not in the beamline pane after EllipticalMirror added. Do I miss more files?
image

from xrt.

kklmn avatar kklmn commented on August 15, 2024

Thank you for testing it also with xrtQook! This is fixed now.

from xrt.

leahwang1962 avatar leahwang1962 commented on August 15, 2024

Thanks for the update. Now the ray tracing works as expected.
It would be more beneficial if xrtQook can show the entire closed rotation optic surface.
image

from xrt.

kklmn avatar kklmn commented on August 15, 2024

This is fixed now, please try again.

from xrt.

leahwang1962 avatar leahwang1962 commented on August 15, 2024

Now the surface very strange.
image

from xrt.

kklmn avatar kklmn commented on August 15, 2024

Please go to tests/raycing/test_ellipsoid_tube_mirror.py, make showIn3D = True in it and run it. Do you see the mirror surface as a circle? You can make tubeLengtgh = 10000 to better see the ellipsoid.

from xrt.

leahwang1962 avatar leahwang1962 commented on August 15, 2024

In xrtQook after I changed the EllipticalMirrorParam shape from "round" to "rect" , the optic closed surface shows correctly. Not sure why "rect" is a right choice. I also tried "None", but the beamline propagation can't complete.
tests/raycing/test_ellipsoid_tube_mirror.py also works to show the surface circle when showIn3D = True
Thanks a lot for your help.

from xrt.

kklmn avatar kklmn commented on August 15, 2024

The "round" shape makes a disk (or a coin), which makes no sense for a closed shape like a capillary. I've now modified xrtGlow to ignore this combination and updated the docstrings. You don't have to update, just don't use "round".
Thank you for spotting this corner case.

from xrt.

leahwang1962 avatar leahwang1962 commented on August 15, 2024

Thanks.

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.