Comments (4)
plot.field3D is a stack of 2D fields per electron (repeat). It has a shape (repeats, nx, ny) and is supposed to be fed to xrt.backends.raycing.coherence.calc_eigen_modes_PCA().
Filament beam is a single electron emission, where the electron has random lateral and angular shifts within the given emittance distributions εx and εz and an energy shift within the given energy spread. If filamentBeam is False, each ray in the beam has its own set of those random samples; you can't do wave propagation then. If you propagate in rays then yes, the results with and without filamentBeam will be equal at many repeats.
Please also read the section Coherence analysis and related plotting. It refers to SoftiMAX examples and also to a test ...\tests\raycing\test_coherent_fraction_stack.py that you may want to scrutinize.
from xrt.
I got it, yes, I found that if the repeats is as large as enough, 1000 in my case. The coherence feature is same with the theoretical value.
In addtion, I found some examples use a inner repeat inside the run_processm. For the filamentBeam, I found that only one spot source was shown for this series of repeated computation, eventhough I did not set accuBeam. I dont get the meanning of this inner-repeat, would you please comment it for me? thanks
from xrt.
This is an attempt to optimize wave propagation. Frequently, only the last few diffraction events need more samples (repeats) whereas the intermediate wave distributions may remain at lower quality. By increasing the internal repeats and decreasing the global ones you may save some computation time with almost the same quality at the final screen. In reality, this saving is little, so I typically go without internal repeats.
from xrt.
thanks for your suggestion.
from xrt.
Related Issues (20)
- 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 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
- OpenGL 3.1.7 but GLUT is not found HOT 4
- Dynamically figured KB mirrors HOT 2
- Parameter setting of ellipsoid monocapillary HOT 11
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.