Skip to content

momentum w/o mass #314

Open
Open
@ax3l

Description

@ax3l

Just documenting this so we don't forget.

At the moment, we cannot read or visualize the momentum (u(x|y|z)) record of particle species that do not write mass as well.

openpmd_viewer/openpmd_timeseries/data_reader/io_reader/particle_reader.py in read_species_data(series, iteration, species_name, component_name, extensions)
     95         if np.all( m != 0 ):
     96             norm_factor = 1. / (m * constants.c)
---> 97             data *= norm_factor
     98 
     99 
ValueError: operands could not be broadcast together with shapes (265489,) (0,) (265489,) 

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions