Comments (1)
Good morning,
Sorry for editing wrongly the python xrt issue.
I am very new in this community.
I would like to calculate the 2D flux density at the sample position after the beam has been diffracted from a DMM.
For this purpose I have specified the DMM as described in the script below to get the 2D flux at 10000 eV.
mL1 = rmats.Material('Si', rho=2.33)
mBC4 = rmats.Material(('B','C'),quantities=(1,4),rho=2.52)
mW = rmats.Material('W',rho=19.3)
mSi = rmats.Material('Si', rho=2.33)
mL = rmats.Multilayer(mW, 18, mBC4, 36, 80, mSi)
P23_Main.SSRL_DMM = roes.DCM(
bl=P23_Main,
name=r"DMM",
center=[0, 50000, r"auto"],
surface =(mL1,), material=(mL,),
material2=(mL,),
fixedOffset=20,
bragg=[10000])
To get the histogram I used this plot option:
plot05 = xrtplot.XYCPlot(
beam=r"SampleScreenFootprint",
xaxis=xrtplot.XYCAxis(
label=r"x"),
yaxis=xrtplot.XYCAxis(
label=r"z"),
caxis=xrtplot.XYCAxis(
label=r"energy",
unit=r"eV",
limits=[4820,4890],
offset=0),
title=r"05 - Sample",
fluxFormatStr=r"%g")
plots.append(plot05)
return plots
where:
SampleScreenFootprint = P23_Main.SampleScreen.expose(
beam=SSRL_DMMbeamGlobal01)
the program does not work with the DMM optical element.
Can I ask you for help?
thank you in advance for the help.
Best Greetings, Angelica
from xrt.
Related Issues (20)
- How to add a caliber setting!
- 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
- Question about toroidally bent crystal in Laue geometry HOT 6
- 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
- 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
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.