Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
S src
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OPAL
  • src
  • Issues
  • #475

Closed
Open
Created Feb 24, 2020 by albajacas_a@albajacas_aDeveloper2 of 2 tasks completed2/2 tasks

Formula momentum conversion

  • Add two functions to Utilities/Util
  • Update documentation

Summary

I'm not sure if this is a bug, but I don't understand the formula used to convert P [eV/c] to \beta\gamma [dimensionless] in the function Distribution::converteVToBetaGamma:

(\beta_x\gamma)=\sqrt{(\frac{P_x[{eV/c}]}{m_0c}+1)^2-1}.

If the user gives momentum in eV/c, I would imagine that the conversion should be

\gamma\beta_x = \frac{P_xc}{mc^2}.

If it's not a bug then I think it should be better explained in the manual.

Edited Jun 30, 2020 by albajacas_a
Assignee
Assign to
OPAL 2.4.0
Milestone
OPAL 2.4.0 (Past due)
Assign milestone
Time tracking