Skip to content

Commit

Permalink
re-add z0*cos
Browse files Browse the repository at this point in the history
  • Loading branch information
huixingjian committed Jan 11, 2024
1 parent 615061b commit 6f1bb35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/laser/MultiLaser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1030,7 +1030,7 @@ MultiLaser::InitLaserSlice (const amrex::Geometry& geom, const int islice, const
arr(i, j, k, comp + 1 ) = 0._rt;
}
// Compute envelope for time step 0
Complex diffract_factor = 1._rt + I * (z-zfoc*std::cos(propagation_angle_yz)+z0) * 2._rt/( k0 * w0 * w0 );
Complex diffract_factor = 1._rt + I * (z-zfoc*std::cos(propagation_angle_yz)+z0*std::cos(propagation_angle_yz)) * 2._rt/( k0 * w0 * w0 );
Complex inv_complex_waist_2 = 1._rt /( w0 * w0 * diffract_factor );
Complex prefactor = a0/diffract_factor;
Complex time_exponent = z*z/(L0*L0);
Expand Down

0 comments on commit 6f1bb35

Please sign in to comment.