Comments (6)
Take a look at this example with spherical grating. Notice how gratingDensity is defined. You will have to provide coefficients for the line spacing.
If you want realistic efficiencies, take waveGrating example, use the VLSLamiarGrating class, export efficiencies to a file, and feed it to the grating material as efficiencyFile.
from xrt.
I have set the grating and source parameters, how do I judge that the focal plane is planar rather than concave by xrtGlow or XYCPlot ?
from xrt.
Plot the mirror local beam in Y vs Z coordinates (Y - along the beam, Z - height profile). It will look like a thin line, either straight or curved.
from xrt.
Why? Could you explain it in a nutshell.
from xrt.
In local coordinates of the OE: Y is along the beam, X - across, Z - normal to the surface.
If you look at the plane from the side (YZ) you will see just a thin line
For an illuminated part of a sphere, ok, it will be a curved line with finite thickness, depending on the beam shape
When modeling the grating in ray tracing mode we do not consider hills and valleys or any kind of the grating micro-structure, but rather use the grating equation to determine the direction of reflection. This micro-structure is carefully emulated in wave propagation, where we do require correct phases to calculate the diffraction integral.
from xrt.
@yxrmz I think the last question was about visualizing the focus, not the optic.
@gpeng628 We can do wave front reconstruction to analyze its curvature, see an example for 1D cuts of the wave front at around the focal position, but this is only possible for wave propagation, not ray tracing, and wave propagation is much slower than ray tracing and is not feasible in xrtGlow.
While wave propagation is doable in xrt in general, I don't see why you want it in your case. Why not just analyzing focal spot size in ray tracing?
from xrt.
Related Issues (20)
- Python created from XRTGlow show different results 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!
- Some doubts about the energy setting of X-ray sources HOT 12
- 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.