Comments (6)
Hi,
See the docs for BentLaue2D
class and an example for it: examples/withRaycing/03_LaueMono/04_sagittal_bending.py
.
from xrt.
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.
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.
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.
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.
Got it, thank you very much for the guidance, I will try that!
from xrt.
Related Issues (20)
- Some doubts about the energy setting of X-ray sources HOT 18
- Absorbing wall along the beam propagation direction?
- Help needed! Clarification on the Meaning and Origin of eAxesFlat Values in 07_AnalyzerBent2D.py HOT 2
- Rocking curve theta and energy range converter HOT 3
- Problems generating code from materials HOT 7
- Calculating crystal reflectivity without constructing a beamline HOT 7
- VLS grating local_g direction HOT 2
- Regarding the size of light sources and the output of light source images
- How to add and use compound refractive index materials? HOT 9
- The light source image does not match the image at the detector
- Problem when using pytte and OpenCL for bent asymmetric Laue crystal HOT 2
- Passing in_plane_rotation parameter to pytte HOT 2
- Question about making dispersion plots HOT 1
- Report an error when set useTT is true for using elastic deformation in crystal reflectivity HOT 6
- Saving histogram data HOT 3
- GPU calculation for geometric sources HOT 1
- build ellipsoidal mirror HOT 10
- adding surface error on Ellipsoidal mirror HOT 2
- Help on the X-ray Diffraction of polycrystal HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xrt.