Giter Site home page Giter Site logo

Cylindrical Beam Stopper about xrt HOT 6 OPEN

kklmn avatar kklmn commented on August 15, 2024
Cylindrical Beam Stopper

from xrt.

Comments (6)

kklmn avatar kklmn commented on August 15, 2024

Hi,

If the question is about making a beam stop then it can be implemented by RoundBeamStop class from
xrt.backends.raycing.apertures.
If you ask about geometry/alignment then please better explain the problem.

Also, be advised that you can create a conic ring source by specifying distxprime or distzprime = 'annulus' so that you illuminate only your crystal and not the inner cone in the HOPG cylinder (I suppose it is a whole cylinder).

from xrt.

kklmn avatar kklmn commented on August 15, 2024

RoundBeamStop wasn't documented. Now it is.

from xrt.

ts8guest avatar ts8guest commented on August 15, 2024

Thank you for your response.
At the beginning, I implemented the HOPG cylinder with two RoundBeamStops at the both sides of the cylinder. But, there is a cylindrical beam stopper inside the real HOPG monochromator. Furthermore, I would like to implement a source with some values of dx and dz (not a point source). I understand the specification of distx or distz = 'annulus' in the case of a point source, but for source-disc definition can I apply the same without implementation of a cylindrical beam stopper?

from xrt.

kklmn avatar kklmn commented on August 15, 2024

You can give independent specifications for size (distx, distz, dx, dz) and divergence (distxprime, distzprime, dxprime, dzprime). So you can define a cone with a hole in it with distxprime or distzprime = 'annulus' while in linear dimensions the source can be a flat or a Gaussian spot.

A conic source with an annulus distribution is more efficient, as you don't waste the rays which are not supposed to come to the crystal. In order to mimic reality, you may still want to add beamstops, as present in your physical setup.

from xrt.

ts8guest avatar ts8guest commented on August 15, 2024

Thank you very much! I have one more question.
I would like to define a source with discrete energies and associated relative probabilities. Would it be correct to add a new energy distribution in 'xrt.backends.raycing.sources.make_energy' given by a function 'random.choices(energies, probabilities)'?

from xrt.

kklmn avatar kklmn commented on August 15, 2024

please make a new issue with it

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.