lanl / vpic

Vector Particle-In-Cell (VPIC) Project
Other
152 stars 76 forks source link

How to load non-uniform density of the species in VPIC #104

Closed rkbera closed 4 years ago

rkbera commented 4 years ago

Hi,

I need to specify a non-uniform plasma density for my VPIC study. How to specify a linear density ramp in VPIC in x- direction ?

Please help me. Thanks.

Regards,

Ratan

rfbird commented 4 years ago

Hey,

The easiest way to do this is to increase the number of particles you place in each cell during user initialization, in your input deck. This may lead to some load imbalance, depending on how large a density gradient you need.

Best, Bob