Skip to content

B=0 field output in magnetostatic mode #5242

@jwestern

Description

@jwestern

I get zero magnetic field in the field output running with the magnetostatic solver on.

I'm running in electromagnetostatic mode via PICMI. I setup the solver like this:

solver = picmi.ElectrostaticSolver(
    grid=grid,
    method='Multigrid',
    required_precision=1e-6,
    warpx_self_fields_verbosity = 0,
    warpx_magnetostatic=True,
)

And I install the field diagnostic like this:

field_diag = picmi.FieldDiagnostic(write_dir = f'./diags/{diagdire}',
                                       warpx_file_prefix = 'field',
                                       grid = grid,
                                       period=100,
                                       warpx_openpmd_backend='h5',
                                       warpx_format='openpmd',
                                       data_list=['B', 'E', 'J', 'rho'])
    sim.add_diagnostic(field_diag)

This happens with both GPU and CPU runs.

Does anyone know what's going on? Let me know if other details are needed, such as the creation of grid or sim.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions