radiasoft / rslaser_old

Integrated modeling of CPA crystal-based laser amplifiers
Apache License 2.0
1 stars 1 forks source link

laser init: file vs func #158

Closed k-wolfinger closed 1 year ago

k-wolfinger commented 1 year ago

When we initialize a laser from function and another from file, with the same parameters, we are getting different values for the total number of photons in the laser.

We should get something similar. Right now, for 1uJ pulse we get 1.6e10 (function) vs 4.0e12 (file)

I assume the intensity plots look different as well. (I'll check this)

k-wolfinger commented 1 year ago

Found the issue:

Now both file and function init (with the same laser params) give the same number of photons and same total energy