radiasoft / rslaser_old

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

generalize file-based constructor of LaserPulse for multiple slices #152

Closed bruhwiler closed 1 year ago

bruhwiler commented 1 year ago

The initial implementation is documented in #82

The present implementation will not work for multiple laser pulse slices.

k-wolfinger commented 1 year ago

Add 'one' laser wavefront from data files to multiple laser slices by dividing fields by number of slices

Also, need to make changes to crystal.py (just added them to this issue):

k-wolfinger commented 1 year ago

Can't find a description of the files object for formatting when passing to LaserPulse constructor. I'll try to write it based on how files is used.

k-wolfinger commented 1 year ago

When the propagators change the size of wfr.mesh, they don't affect the size of the n_photons_2d mesh. This can cause the gain calculation to fail.

I will fix this by interpolating the mesh of photon numbers to match wfr.mesh, within the gain calculation.

To make this easier, I'll combine _interpolate_pop_change and _interpolate_pop_inversion into a generic _interpolate_a_to_b(a,b) like function.

k-wolfinger commented 1 year ago

@gurhar1133 I made changes to _wavefront() in pulse.py so that it can initialize a pulse from file with multiple laser slices. This is causing tests/pulse_test.py::test_from_file to fail. Can you take a look at it?

gurhar1133 commented 1 year ago

@gurhar1133 I made changes to _wavefront() in pulse.py so that it can initialize a pulse from file with multiple laser slices. This is causing tests/pulse_test.py::test_from_file to fail. Can you take a look at it?

Sure 👍 what branch are the changes on?

k-wolfinger commented 1 year ago

@gurhar1133 I made changes to _wavefront() in pulse.py so that it can initialize a pulse from file with multiple laser slices. This is causing tests/pulse_test.py::test_from_file to fail. Can you take a look at it?

Sure 👍 what branch are the changes on?

Great! They're on the one linked to this issue, 154-file-based-multiple-laser-slices

gurhar1133 commented 1 year ago

@gurhar1133 I made changes to _wavefront() in pulse.py so that it can initialize a pulse from file with multiple laser slices. This is causing tests/pulse_test.py::test_from_file to fail. Can you take a look at it?

Sure 👍 what branch are the changes on?

Great! They're on the one linked to this issue, 154-file-based-multiple-laser-slices

Ok, I'll take a look