Add files via upload - #876
Conversation
|
Thank you @swainkipr . This is a very interesting PR but I won't have time to review it seriously before at least 2 weeks. |
|
Hello @swainkipr,
|
|
Hello @Z10Frank Thanks for your comments! Regarding the second comment, Yes Lasy stores the azimuthal modes. Additionally, Lasy give both options, one can store the modes or just store the input values without decomposing into modes. Here, its the second case. It is definitely possible to add support for importing a laser defined directly in Cartesian geometry without azimuthal mode decomposition. But then, is it intended to use in Smilei-cartesian or cylindrical? If we use in 3D-cartesian geometry, will it not be computationally expensive with the realistic-laser? Could you help clarify this point? |
|
Hi |
|
@swainkipr The cost of a 3D simulation will be expensive whether the laser used is realistic or not. Introducing a measured laser or a theoretical one doesn't make a difference in the cost of the simulation. |
|
From my understanding the reconstruction and computation of modes is needed when going from a Cartesian description to a cylindrical one. From @swainkipr comment I understand that this is the case here. So it is only a particular case of application of Lasy that is supported by this PR. Could it be extended to also support reading the AM modes directly ? (Lasy doc is here https://github.com/LASY-org/lasy) Also it looks like only Ex(Lasy) / Ey(Smilei) component is imported. This limits the application to linear polarization along this direction only. Could a support for the second transverse component be added ? |
This PR introduces a new laser snippet to src/Python/pyprofiles.py designed to interface Lasy with Smilei's Azimuthal Mode (AM) solver. The goal is to allow users to import realistic experimental laser profiles directly into cylindrical geometry simulations.
Key Implementation Details:
I have tested in vacuum to ensure this workflow works well. Here I am attaching the namelist and the input laserfilefromlasy.
laserfileFromlasy.tar.gz
namelist.py
pyprofiles.py
Lasy_smilei_workflow.pdf