Skip to content

Boost external fields on particles #820

Open
@MaxThevenet

Description

@MaxThevenet

When running in a boosted frame, all parameters are entered in the lab frame in the input file, and transformed inside WarpX (for convenience).

This is however not true for external fields on particles (and I believe for external fields on the grid either), where the expression used in the code is directly the one parsed from the input file.

The solution would be to transform them in WarpX, as we do for other quantities. Currently, the only way to use external fields for a boosted-frame simulation is to do as this inputs file, where the Lorentz transform is done directly in the parsed expression, which is inconsistent with the rest of the input file, error-prone and not very readable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    changes input scripts / defaultsChanges the syntax or meaning of input scripts and/or defaultscleaningClean code, improve readability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions