Giter Site home page Giter Site logo

Comments (7)

kklmn avatar kklmn commented on September 18, 2024

On the documentation page Tests for Materials one can see reflectivity curves for various asymmetry angles (alphas). The script that makes these curves is tests/raycing/test_materials.py. Look for compare_rocking_curves() in it for flat crystals and compare_rocking_curves_bent() for bent ones.

from xrt.

zhangyujun08 avatar zhangyujun08 commented on September 18, 2024

from xrt.

zhangyujun08 avatar zhangyujun08 commented on September 18, 2024

Another related question.
Now I understand that by using get_amplitude(E, beamInDotNormal, beamOutDotNormal, beamInDotHNormal), reflectivity can be calculated for asymmetrically cut crystals. However, here beamInDotNormal, beamOutDotNormal, and beamInDotHNormal all correspond to the angles within the crystal. Is there any way to calculate the angles outside the crystal (the angle of incidence and emergence)?
Thank you very much!

from xrt.

kklmn avatar kklmn commented on September 18, 2024

beamInDotNormal is cosine of the angle of incidence counted from the normal. Subtract it from π/2 to have it relative to the surface.

The emergence direction for a general asymmetric case is given by the grating equation as explained in the docs with a reference to Sánchez del Río and Cerrina.

from xrt.

zhangyujun08 avatar zhangyujun08 commented on September 18, 2024

Thanks for your instruction.
So does it mean that I need to implement these following formula into the code by myself? Or is there an easier way to do it?
1719481123270

from xrt.

kklmn avatar kklmn commented on September 18, 2024

I thought you didn't want any optical element, did you? The method reflect() does the job: it finds a new propagation direction for each ray and applies material reflectivity/transmittivity. As you don't want it, you need to implement these formulas yourself.

from xrt.

zhangyujun08 avatar zhangyujun08 commented on September 18, 2024

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.