Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General questions #162

Open
floresv299 opened this issue Aug 8, 2023 · 1 comment
Open

General questions #162

floresv299 opened this issue Aug 8, 2023 · 1 comment
Labels

Comments

@floresv299
Copy link

Hello,

Thank you for the work on Lasy. I have been trying it, alongside Warpx and have some questions I was hoping someone can help with. The first one is on the parameter npoints; is this the number of points in the x,y,t dimensions that will also be used in the Warpx simulation? Do these numbers need to be equal the number of grid points in my Warpx simulation? Is increasing the number of points better or worse for my simulation? Another parameter that has been confusing is the t_peak, on paper I know what it is but conceptually I’m a little lost. I’m used to just having my laser be there without having this parameter. I know that when the value of t_peak is too low my gaussian profile starts at a high intensity and loses its shape. Is there a way to calculate t_peak so that my pulse is nice and gaussian ?

@IlianCS
Copy link
Contributor

IlianCS commented Aug 28, 2023

Hi @floresv299,
Thank you for your message.

The number of points is the number of grid points, in the given geometry extent, where the complex laser envelope which will be computed and stored in the lasy file for each x,y and t direction. It does not have to match the number of grid points in the WarpX simulation. That said, a very low value of the number of points will lead to approximate computation that may not correspond to the theoretical envelope.

t_peak corresponds to the time at which the laser envelope reaches its maximum amplitude. If you are looking at the begining of the simulation and notice that the Gaussian pulse is too short in time, you may want to set t_peak=0 and modify tau instead, which corresponds to the duration of the laser pulse.

@ax3l ax3l added the question label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants