Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit f3b68d9a authored by albajacas_a's avatar albajacas_a
Browse files

Correct BEAM momentum to agree with FROMFILE distribution.

parent 331339c7
No related branches found
No related tags found
1 merge request!35Resolve "Fix tests that use default `P0` and `FROMFILE`"
......@@ -18,8 +18,8 @@ REAL beam_bunch_charge = 1e-9; //Charge of bunch. (C)
REAL Edes = 1.4e-9; //initial energy in GeV
REAL gamma = (Edes+EMASS)/EMASS;
REAL beta = sqrt(1-(1/gamma^2));
REAL P0 = gamma*beta*EMASS; //inital z momentum
REAL P0 = 13.234 * EMASS; // Inital z-momentum in the distribution file (GeV/c).
//REAL P0 = beta*gamma * EMASS; // Inital z-momentum in the distribution file (GeV/c).
//Printing initial energy and momentum to terminal output.
value , {Edes, P0, OPALVERSION};
......
......@@ -17,8 +17,7 @@ REAL RF_FREQUENCY = 700.0e6; // Reference frequency of problem (Hz).
REAL RF_WAVELENGTH = CLIGHT / RF_FREQUENCY; // Reference wavelength (m).
REAL Q_E = 1.60217653e-19; // Elementary charge (C).
REAL E_MASS = 9.10938188e-31; // Mass of electron (kg).
REAL P0 = 14.66 * EMASS; // Mean z-momentum in the particle distribution file (GeV/c).
REAL BEAM_BUNCH_CHARGE = 0.0e-15; // Beam bunch charge (C).
REAL NUMBER_OF_PARTICLES = 10000; // Number of particles in simulation
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment