diff options
author | 2018-08-10 15:12:08 +0000 | |
---|---|---|
committer | 2018-08-10 15:12:08 +0000 | |
commit | d39346c050a5fe664d58a04ce83fc72a576c9362 (patch) | |
tree | 61dfa345a436985ae0d35a3163542e70b50c2383 /Source/LaserParticleContainer.cpp | |
parent | 5f173246296d7ad6a731f71b9feff0b0c020cf5f (diff) | |
parent | 8a2a1156eeccdea8b06c8e428bdda2d346d0ff91 (diff) | |
download | WarpX-d39346c050a5fe664d58a04ce83fc72a576c9362.tar.gz WarpX-d39346c050a5fe664d58a04ce83fc72a576c9362.tar.zst WarpX-d39346c050a5fe664d58a04ce83fc72a576c9362.zip |
Merged in gaussian_stc (pull request #93)
Add chirps to gaussian profile
Approved-by: Maxence Thevenet <mthevenet@lbl.gov>
Diffstat (limited to 'Source/LaserParticleContainer.cpp')
-rw-r--r-- | Source/LaserParticleContainer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/LaserParticleContainer.cpp b/Source/LaserParticleContainer.cpp index abda0cecf..19e93f9ea 100644 --- a/Source/LaserParticleContainer.cpp +++ b/Source/LaserParticleContainer.cpp @@ -57,6 +57,9 @@ LaserParticleContainer::LaserParticleContainer (AmrCore* amr_core, int ispecies) pp.get("profile_duration", profile_duration); pp.get("profile_t_peak", profile_t_peak); pp.get("profile_focal_distance", profile_focal_distance); + pp.query("zeta", zeta); + pp.query("beta", beta); + pp.query("phi2", phi2); } if ( profile == laser_t::Harris ) { @@ -440,7 +443,8 @@ LaserParticleContainer::Evolve (int lev, if (profile == laser_t::Gaussian) { warpx_gaussian_laser( &np, plane_Xp.data(), plane_Yp.data(), &t_lab, &wavelength, &e_max, &profile_waist, &profile_duration, - &profile_t_peak, &profile_focal_distance, amplitude_E.data() ); + &profile_t_peak, &profile_focal_distance, amplitude_E.data(), + &zeta, &beta, &phi2 ); } if (profile == laser_t::Harris) { |