Comments (2)
It depends actually (and it is true that the documentation is lacking some explanation).
In Smilei, each macro-particle has a (statistical) weight that is initialized as its species' number density in the cell where it is born, divided by the initial number of macro-particles in that cell. Thus the weight has the dimension of a density. The ParticleBinning diagnostic collects and sums the weights of macro-particle in some user-defined binning. This means that the data written in the ParticleBinning*.h5
files has the dimension of a density, which is the sum of each macro-particle contribution.
However, as the size of a bin is not the same size as a PIC grid cell, there is some adjustment needed. This is done in happi
when using the ParticleBinning
python function. This function returns the particle binning data corrected so that the result is really the plasma number density. If your binning axes are not only x, y or z, then happi
also divides by the bin size so that the result can be interpreted as a distribution. For instance, a phase-space binning (x, px) will have the dimension of a number density divided by m_e * c
.
What is important to recall here is that the raw data in the ParticleBining*.h5 files is not the same as that analysed by happi
. There is some correction applied.
from smilei.
@phyax hi!
did @mccoys' answer worked for you?
If so, think about closing the issue ;)
from smilei.
Related Issues (20)
- Opening partly written HDF5 files with happi after simulation crash HOT 8
- Envelope Probes HOT 9
- Probe diagnostics dependent on the number of points in 3D HOT 11
- A difference of physical results for physically equivalent initial species configurations in intense laser-particle interaction. HOT 2
- multiSlide HOT 6
- Wrong Magnetic field (Bx) from ParticleBinning diagnostic HOT 1
- Error with Fujitsu clang mode on Fugaku HOT 5
- Unexpected behavior with 2D M4 solver HOT 12
- Custom integrated diagnostics HOT 6
- A laser with 4 parameters is ok? HOT 4
- Injector initialization crashes if temperature profile not defined HOT 1
- I get errors whenever I have been trying to use select in TrackParticles diagnostics HOT 4
- Segmentation fault when using the ExternalField block in 3D HOT 21
- How 'reflective' particle boundary works HOT 2
- Particle injector dosen't work with profile HOT 1
- AMcylindrical geometry, origin of transverse axes in Probes HOT 9
- error compiling v5.0 with amd_gpu config HOT 17
- dump_minutes failing to correctly dump restart files HOT 3
- smilei v5.0 problems with compiling on GPU on new HPC HOT 32
- "auto" keyword for automatic range calculation in ParticleBinning diagnostic causes fatal crash HOT 2
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 smilei.