Comments (18)
Hi,
The meaning of source parameters is explained in the docs.
How can I set the X-ray energy I need?
You set the value of energies field of your source instance. The interpretation of energies depends on the value of distE.
In the same example, there are three versions of energy definition:
beamLine.sources[0].distE = 'flat'
beamLine.sources[0].energies = eAxisMin, eAxisMax
beamLine.sources[0].distE = 'lines'
beamLine.sources[0].energies = E0,
beamLine.sources[0].distE = 'lines'
beamLine.sources[0].energies = [E0 + dEStep * i for i in range(-3, 4)]
from xrt.
Hi,
The meaning of source parameters is explained in the docs.
How can I set the X-ray energy I need?
You set the value of energies field of your source instance. The interpretation of energies depends on the value of distE.
In the same example, there are three versions of energy definition:
beamLine.sources[0].distE = 'flat' beamLine.sources[0].energies = eAxisMin, eAxisMax
beamLine.sources[0].distE = 'lines' beamLine.sources[0].energies = E0,
beamLine.sources[0].distE = 'lines' beamLine.sources[0].energies = [E0 + dEStep * i for i in range(-3, 4)]
Hello! Thank you for your answer. At the same time, I would like to know how the Takagi Taupin equation is reflected in the code, but I was unable to find it in the code for this example. I hope you can give me some guidance.
Hi,
The meaning of source parameters is explained in the docs.
How can I set the X-ray energy I need?
You set the value of energies field of your source instance. The interpretation of energies depends on the value of distE.
In the same example, there are three versions of energy definition:
beamLine.sources[0].distE = 'flat' beamLine.sources[0].energies = eAxisMin, eAxisMax
beamLine.sources[0].distE = 'lines' beamLine.sources[0].energies = E0,
beamLine.sources[0].distE = 'lines' beamLine.sources[0].energies = [E0 + dEStep * i for i in range(-3, 4)]
Hello! Thank you for your answer. At the same time, I would like to know how the Takagi Taupin equation is reflected in the code, but I was unable to find it in the code for this example. I hope you can give me some guidance.
from xrt.
If you look at the same compiled doc strings (here), you would see that the link the Takagi-Taupin equations <useTT>
leads you to the useTT parameter of the Crystal
class. There is a variable with the same name in the script that you may want to change.
from xrt.
If you look at the same compiled doc strings (here), you would see that the link
the Takagi-Taupin equations <useTT>
leads you to the useTT parameter of theCrystal
class. There is a variable with the same name in the script that you may want to change.
First of all, thank you for your reply. Through the document you provided, I may be able to understand the content of the Takagi Taupin equation. But in the example I used, useTT seems to only be equal to True or False. Is it enough to change it to True or False according to my needs?
from xrt.
Is it enough to change it to True or False according to my needs?
Yes. What holds you from trying?
from xrt.
Yes. What holds you from trying?
Thank you for your reply. Currently, I have not yet understood the specific content of this equation. I will try again after understanding the content of the equation.
from xrt.
Is it enough to change it to True or False according to my needs?
Yes. What holds you from trying?
Hello! may I bother you again.
I have two questions to ask. Firstly, does changing the crystal thickness cause any changes in the curve?
I changed the crystal thickness, as shown in Figures 1 and 2, and the curve seems to have not changed.
Secondly, the Bragg angle calculated by setting the crystal plane index to (6,6,0) should be between 89 ° and 90 °, but Figure 3 shows that the Bragg angle is 90 °. Why is this?
Looking forward to your reply!
from xrt.
Well, the curve will stop changing after certain thickness threshold as it gets closer to "infinitely" thick crystal limit. Try 0.05-0.01mm, you will see the difference.
Regarding the Bragg angle, there might be a tiny difference between the value you use for the Si crystal lattice parameter and the one used in xrt, that becomes important as you approach 90deg. I get 89.923 deg for 9686.06eV.
from xrt.
Well, the curve will stop changing after certain thickness threshold as it gets closer to "infinitely" thick crystal limit. Try 0.05-0.01mm, you will see the difference. Regarding the Bragg angle, there might be a tiny difference between the value you use for the Si crystal lattice parameter and the one used in xrt, that becomes important as you approach 90deg. I get 89.923 deg for 9686.06eV.
Thank you for your reply
from xrt.
Well, the curve will stop changing after certain thickness threshold as it gets closer to "infinitely" thick crystal limit. Try 0.05-0.01mm, you will see the difference. Regarding the Bragg angle, there might be a tiny difference between the value you use for the Si crystal lattice parameter and the one used in xrt, that becomes important as you approach 90deg. I get 89.923 deg for 9686.06eV.
Hello, I'm sorry to bother you. I may need to insert a capillary optical element for simulation. May I ask if there is a model of the optical element capillary in xrt?
from xrt.
Hi,
Looking the documentation website for "capillary" is not an option for you?
from xrt.
Hi, Looking the documentation website for "capillary" is not an option for you?
thank you!
from xrt.
Related Issues (20)
- Python created from XRTGlow show different results HOT 6
- simulation of VLS HOT 6
- build spherical mirror from elliptical optic HOT 4
- simulation of Hyperboloid mirror HOT 3
- Question about plotting energy spectrum HOT 6
- How to change the screen size or resolution when viewing a small focus image? HOT 2
- problem with xrtBentXtal in Laue geometry HOT 5
- plot error with matplotlib 3.8.2 HOT 6
- ParabolicalMirrorParam optics with figure error HOT 3
- Some doubts about custom faceted lenses HOT 4
- xyz_to_param and param_to_xyz for class ParabolicalMirrorParam HOT 2
- How to simulate nested shells HOT 9
- Problems encountered while running trace examples HOT 5
- Error when run xrtQook on Nvidia V100 GPU node
- How to add a caliber setting!
- 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
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.