Skip to content

Initializing the self field while using PSATD in a PWFA simulation #5875

@michaelquin

Description

@michaelquin

I’m running a PWFA simulation in RZ geometry.

Numerical dispersion is an issue here so I’m using the PSATD solver with the following boundary conditions:

boundary.field_hi = none damped
boundary.field_lo = none damped

The initial simulations ran more or less as expected, but there are some odd perturbations for the fields (E, rho) inside the driver beam and elsewhere. So, I’d like to repeat this with the self field properly initialized.

My first attempt was to add the following lines to the input file:

warpx.poisson_solver = fft
warpx.use_2d_slices_fft_solver = 1
beam.initialize_self_fields = 1

which throws up the following error:

ERROR : The FFT Poisson solver only works in 3D

This error is a bit confusing:

The documentation suggests that FFT Poisson is implemented for RZ (see warpx.use_2d_slices_fft_solver = 1). It also says that I should be using PML boundaries for the fields – but as far as I’m aware that hasn’t been implemented for PSATD yet.

Also, I’m working under the impression that warpx.poisson_solver = multigrid is just for electrostatic mode, but do correct me if I’m wrong. It seems to require PEC boundary conditions for the fields, which seems to conflict with my need to use PSATD, and isn't really suitable for this simulation anyway.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions