Skip to content

Commit

Permalink
Store additional beam metadata (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
RemiLehe authored Jul 11, 2023
1 parent 9c12d6b commit 1724569
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/particles/elements/diagnostics/openPMD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,11 @@ namespace detail
}
}

// beam mass
beam.setAttribute( "mass", ref_part.mass );
beam.setAttribute( "beta_ref", ref_part.beta() );
beam.setAttribute( "gamma_ref", ref_part.gamma() );

// openPMD coarse position
{
beam["positionOffset"]["x"].resetDataset(d_fl);
Expand Down

0 comments on commit 1724569

Please sign in to comment.