Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The meaning of uz #4746

Open
chiehjen opened this issue Mar 4, 2024 · 0 comments
Open

The meaning of uz #4746

chiehjen opened this issue Mar 4, 2024 · 0 comments
Assignees
Labels
component: documentation Docs, readme and manual question Further information is requested

Comments

@chiehjen
Copy link

chiehjen commented Mar 4, 2024

Hi,
I am new to WarpX. Please help me with a very basic question: I want to output the velocity of each particles, is that ux,uy,uz ?

For example, I use spatial resolution for an aluminium target about 30nm, the e- momentum is distributed as:

electrons.species_type = electron
electrons.injection_style = NUniformPerCell
electrons.num_particles_per_cell_each_dim = 1 1 # 8 8
electrons.momentum_distribution_type = "maxwell_boltzmann"
electrons.theta = 8.6e-11*temp/mass_e

where temp=300 and mass_e=0.511.

My diagnosis is:

diag2.particle_fields_to_plot = z uz
diag2.particle_fields_species = electrons p aluminium
diag2.particle_fields.z(x,y,z,ux,uy,uz) = z
diag2.particle_fields.uz(x,y,z,ux,uy,uz) = uz

and I use the default "do average=1".

However, when I check the output uz, it's much higher than it should be (before laser hit the target, the thermal velocity of e- at room temperature should be 10^-2 in 1/c unit, but I got something at order 1 instead). And the value of uz seems to depend on the number of macro particle per cell also (in any case, the uz is too high for all results using 1 up to 64 marco particle per cell).

My question is: what uz actually means? Is it still (Lorentz factor)*v/c for each physical particle as stated in the introductory document or there is some macro-particle stuff involved?

Thank you in advance.

@ax3l ax3l added question Further information is requested component: documentation Docs, readme and manual labels Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: documentation Docs, readme and manual question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants