File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/picongpu/include/fields/laserProfiles Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ namespace picongpu
42
42
* t = x/c and (x-x_0)/sigma = (t-t_0)/tau and k*(x-x_0) = omega*(t-t_0) with omega/k = c and tau * c = sigma
43
43
* and get:
44
44
* E = Phi_0*omega/c * exp(0.5 * (t-t_0)^2 / tau^2) * [sin(omega*(t - t_0) - phi) + t/(omega*tau^2) * cos(omega*(t - t_0) - phi)]
45
- * and define Phi_0*omega/c = E_0
45
+ * and define:
46
+ * E_0 = Phi_0*omega/c
47
+ * integrationCorrectionFactor = t/(omega*tau^2)
46
48
*
47
49
* Please consider:
48
50
* The above formulae does only apply to a Gaussian envelope. If the plateau length is
@@ -81,14 +83,14 @@ namespace picongpu
81
83
( ( runTime - startDownramp )
82
84
/ PULSE_LENGTH / sqrt ( 2.0 ) );
83
85
envelope *= exp ( -0.5 * exponent * exponent );
84
- integrationCorrectionFactor = ( runTime - startDownramp )/ (2.0 *PULSE_LENGTH*PULSE_LENGTH);
86
+ integrationCorrectionFactor = ( runTime - startDownramp )/ (w* 2.0 *PULSE_LENGTH*PULSE_LENGTH);
85
87
}
86
88
else if ( runTime < endUpramp )
87
89
{
88
90
// upramp = start
89
91
const double exponent = ( ( runTime - endUpramp ) / PULSE_LENGTH / sqrt ( 2.0 ) );
90
92
envelope *= exp ( -0.5 * exponent * exponent );
91
- integrationCorrectionFactor = ( runTime - endUpramp )/ (2.0 *PULSE_LENGTH*PULSE_LENGTH);
93
+ integrationCorrectionFactor = ( runTime - endUpramp )/ (w* 2.0 *PULSE_LENGTH*PULSE_LENGTH);
92
94
}
93
95
94
96
const double timeOszi = runTime - endUpramp;
You can’t perform that action at this time.
0 commit comments