Comments (2)
Hi Soeren,
Sorry for my late reply, and thanks for the feedback.
It is true that it would be nice for restart_from_checkpoint
to reinitialize a fresh Particle
object for every species in the checkpoint openPMD file. However, in practice the openPMD file is missing a few information that are needed to initialize a fresh Particles
in a robust manner. For instance, the openPMD file does not tell whether the particles should be continuously injected or not, and if they should, it does not contain the parameters of the injection (density profile, etc.).
For the case of the electron bunch, it would be fine, as this species is not continuously injected and thus (I think) the openPMD file would contain all the information needed for initialization of a new Particles
object. However, this would not generalize to other species.
Therefore, for now, I would prefer the solution in which we put add_laser
/add_elec_bunch
outside of the if
block. It is not ideal (e.g. since we are doing extra work to calculate the space-charge field which is then overwritten by restart_from_checkpoint
), but at least it is robust.
Does the above make sense, and if yes, would you be willing to do a corresponding pull request?
from fbpic.
I see the problem. I've created a pull request with the changes I suggested above. Again as this such a minor issue, if you are not happy with the change feel free to reject the PR.
from fbpic.
Related Issues (20)
- Conducting boosted frame simulation on self-modulated LWFA with Gaussian-like transverse density HOT 1
- anode cathode definition HOT 2
- Question about LWFA with ionization HOT 3
- issue of running fbpic by multi-cores HOT 3
- settings of laser focus position and beam focus position HOT 1
- Error in running the simulation HOT 4
- cuda- memory overflow. HOT 2
- Transverse focusing field HOT 5
- Convergence of boosted frame and lab frame simulations (external injection emittance) HOT 2
- plotting rho in x and z axis HOT 2
- Highly uneven memory usage distribution in a parallel 2-GPU job HOT 2
- Spurious fields at MPI boundaries HOT 7
- Strong density filaments in underdense plasma HOT 1
- openPMD diagnostics HOT 1
- Issue with last version of pyfftw on power9 HOT 1
- Problem about particle tracking in ionization injection HOT 3
- Set the delay between two Laser profile traveling in the same direction
- Feature request HOT 3
- About ionization elements in FBPIC HOT 1
- Bug in particle sorting when particle travel beyond guard cells HOT 1
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 fbpic.