Coder Social home page Coder Social logo

Comments (5)

yxrmz avatar yxrmz commented on May 23, 2024

Are you working with synchrotron sources or geometric ones? Flux and power only make sense for the real sources.

from xrt.

mmnmjm avatar mmnmjm commented on May 23, 2024

I use the geometric source. Can I use plots.intensity instead of plots.flux?

from xrt.

yxrmz avatar yxrmz commented on May 23, 2024

It depends on what result you expect to see. Plot.intensity is simply the sum of individual intensities of all good rays in the beam you plot. Ray intensity equals 1 in the moment of generation and gets adjusted regarding the reflectivity/transmissivity of the materials of the optical elements on the path. Some rays may get lost on apertures or falling outside of the OE, these are marked as bad and do not contribute to the intensity sum. So, "intensity" is always related to the number of rays in the initial distribution, whereas "flux" and "power" in photons/s and watts are absolute values (in the given spectral boundaries, of course).

from xrt.

mmnmjm avatar mmnmjm commented on May 23, 2024

I am interested to quantify the photon throughput. If I understand correctly plot.intensity is a measure for the number of photons that go through the setup in relation to the number of photons that are emitted from the source.

from xrt.

kklmn avatar kklmn commented on May 23, 2024

If I understand correctly plot.intensity is a measure for the number of photons that go through the setup in relation to the number of photons that are emitted from the source.

Yes, this is the number of good rays times the reflectivity/transmittivity at each optical surface. The name "intensity" is not the best for this quantity and should rather be "flux" but it was borrowed from Shadow.

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.