Giter Site home page Giter Site logo

Comments (4)

kklmn avatar kklmn commented on September 17, 2024

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.

yangfg-bsrf avatar yangfg-bsrf commented on September 17, 2024

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.

kklmn avatar kklmn commented on September 17, 2024

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.

yangfg-bsrf avatar yangfg-bsrf commented on September 17, 2024

thanks for your suggestion.

from xrt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.