Skip to content

Commit 4568194

Browse files
committed
Refactor GaussianPulse:
* update, expand, and fix language typos in doc-strings * allow for elliptic transverse shape by having different W0 per axis * remove pulse-front tilt (use via DispersivePulse for TEM_00, for all other modes the propagation is not known anyways) * adapt to new definition of internalCoordinates and time * straighten expressions for field computation (implementation follows Pausch et al. paper now) * rename Unitless::w -> Unitless::OMEGA0
1 parent 80919b1 commit 4568194

File tree

2 files changed

+158
-117
lines changed

2 files changed

+158
-117
lines changed

include/picongpu/fields/incidentField/profiles/GaussianPulse.def

+9-2
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@ namespace picongpu::fields::incidentField::profiles
3737
* W0_SI = FWHM_of_Intensity / sqrt{ 2* ln(2) }
3838
* [ 1.17741 ]
3939
*
40+
* AXIS_1 is directed according to POLARISATION_DIRECTION parameters.
41+
* AXIS_2 is a cross product of the propagation direction and AXIS_1.
42+
*
43+
* For 2d simulations W0_AXIS_2_SI must be defined but its value has no effect.
44+
*
4045
* unit: meter
4146
*/
42-
static constexpr float_64 W0_SI = 5.0e-6 / 1.17741;
47+
static constexpr float_64 W0_AXIS_1_SI = 5.0e-6 / 1.17741;
48+
static constexpr float_64 W0_AXIS_2_SI = W0_AXIS_1_SI;
4349

4450
/** The laser pulse will be initialized PULSE_INIT times of the PULSE_DURATION after
4551
* TIME_DELAY_SI
@@ -77,7 +83,8 @@ namespace picongpu::fields::incidentField::profiles
7783
auto gaussianMetadata = nlohmann::json::object();
7884

7985
// Adding units to Gaussian-specific parameters
80-
gaussianMetadata["W0"] = {{"value", My::W0_SI}, {"unit", "m"}};
86+
gaussianMetadata["W0_AXIS_1"] = {{"value", My::W0_AXIS_1_SI}, {"unit", "m"}};
87+
gaussianMetadata["W0_AXIS_2"] = {{"value", My::W0_AXIS_2_SI}, {"unit", "m"}};
8188
gaussianMetadata["PULSE_INIT"] = {{"value", My::PULSE_INIT}, {"unit", "none"}};
8289
gaussianMetadata["Mode number"] = {{"value", My::numModes}, {"unit", "none"}};
8390

0 commit comments

Comments
 (0)