Coder Social home page Coder Social logo

Comments (3)

pots007 avatar pots007 commented on September 3, 2024

Hey guys!
This'd be awesome! The algorithm for the implementation in FBPIC is detailed in the appendix of this paper. I think the only difficulty in FBPIC was with storing the 'old' momentum.
For FBPIC we have written a test to compare the spin evolution to the plane wave case, not sure if something similar would be applicable here.

from hipace.

AlexanderSinn avatar AlexanderSinn commented on September 3, 2024

Hello @pots007,
I am looking into adding this to HiPACE++ and I have a few questions regarding what is needed:

  • Do you need openpmd input for sx sy and sz? If so, should they be multiplied by h bar?
  • Do you need openpmd output for sx sy and sz?
  • Should there be a standalone initialization option (no openpmd) for sx, sy and sz? Should this be uniform or random on a sphere surface or both? Would this be dependent on the beam particle positions?
  • Should there be support for in-situ diagnostics with sx, sy and sz? If so what kind of moments should be collected?
  • Is sx^2 + sy^2 + sz^2 always equal to 1, or another constant value that is the same for all particles?  

from hipace.

pots007 avatar pots007 commented on September 3, 2024

Hey @AlexanderSinn ,
awesome, thanks for working on this! My thoughts would be:

  • Do you need openpmd input for sx sy and sz? If so, should they be multiplied by h bar? -> no, they are all normalised so just the 'raw' value is OK.
  • Do you need openpmd output for sx sy and sz? -> Yes, I've implemented them in FBPIC under 'spin/x' etc, similarly to momentum.
  • Should there be a standalone initialization option (no openpmd) for sx, sy and sz? Should this be uniform or random on a sphere surface or both? Would this be dependent on the beam particle positions? -> this is a tricky one. I think in the first instance, fixed values (eg sz=1 ) are fine - as long as the user-inputted values are normalised. We can think of more complex values later, what I did here may be a good starting point for discussions.
  • Should there be support for in-situ diagnostics with sx, sy and sz? If so what kind of moments should be collected? -> I am not sure what you mean here. I think OpenPMD output is fine.
  • Is sx^2 + sy^2 + sz^2 always equal to 1, or another constant value that is the same for all particles? -> it's always 1 for all particles.

Cheers!

from hipace.

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.