@@ -47,9 +47,11 @@ namespace picongpu
47
47
* integrationCorrectionFactor = t/(omega*tau^2)
48
48
*
49
49
* Please consider:
50
- * The above formulae does only apply to a Gaussian envelope. If the plateau length is
51
- * not zero, the integral over the volume will only vanish if the plateau length is
52
- * a multiple of the wavelength,
50
+ * 1) The above formulae does only apply to a Gaussian envelope. If the plateau length is
51
+ * not zero, the integral over the volume will only vanish if the plateau length is
52
+ * a multiple of the wavelength.
53
+ * 2) Since we define our envelope by a sigma of the laser intensity,
54
+ * tau = PULSE_LENGTH / sqrt(2)
53
55
*/
54
56
namespace laserPlaneWave
55
57
{
@@ -70,6 +72,7 @@ namespace picongpu
70
72
const double mue = 0.5 * RAMP_INIT * PULSE_LENGTH;
71
73
72
74
const double w = 2.0 * PI * f;
75
+ const double tau = PULSE_LENGTH / sqrt ( 2.0 );
73
76
74
77
const double endUpramp = mue;
75
78
const double startDownramp = mue + LASER_NOFOCUS_CONSTANT;
@@ -79,18 +82,16 @@ namespace picongpu
79
82
if ( runTime > startDownramp )
80
83
{
81
84
// downramp = end
82
- const double exponent =
83
- ( ( runTime - startDownramp )
84
- / PULSE_LENGTH / sqrt ( 2.0 ) );
85
+ const double exponent = (runTime - startDownramp) / tau;
85
86
envelope *= exp ( -0.5 * exponent * exponent );
86
- integrationCorrectionFactor = ( runTime - startDownramp )/ (w*2.0 *PULSE_LENGTH*PULSE_LENGTH );
87
+ integrationCorrectionFactor = ( runTime - startDownramp )/ (w*tau*tau );
87
88
}
88
89
else if ( runTime < endUpramp )
89
90
{
90
91
// upramp = start
91
- const double exponent = ( ( runTime - endUpramp ) / PULSE_LENGTH / sqrt ( 2.0 ) ) ;
92
+ const double exponent = (runTime - endUpramp) / tau ;
92
93
envelope *= exp ( -0.5 * exponent * exponent );
93
- integrationCorrectionFactor = ( runTime - endUpramp )/ (w*2.0 *PULSE_LENGTH*PULSE_LENGTH );
94
+ integrationCorrectionFactor = ( runTime - endUpramp )/ (w*tau*tau );
94
95
}
95
96
96
97
const double timeOszi = runTime - endUpramp;
0 commit comments