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

[mini] Set default subcycling to 10 #895

Merged
merged 4 commits into from
Mar 26, 2023

Conversation

MaxThevenet
Copy link
Member

@MaxThevenet MaxThevenet commented Mar 15, 2023

This figures shows the final emittance (of a beam-driven wakefield stage) as a function of number of time steps, for various tolerance (of the adaptive time step) and sub-cycling levels. Each line is a scan over the number of time steps per betatron period. Subcycling dramatically improved convergence, and with 10 sub-cycles it should increase the runtime by < 10 %.
Screenshot 2023-03-24 at 10 19 45.

Comment on lines +56 to +57
assert((std_sim_x-std_theory)/std_theory < 2.e-3)
assert((std_sim_y-std_theory)/std_theory < 2.e-3)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to increase the tolerance, not sure why as the new solver should be more accurate. Should be OK, since this value is still low, and arbitrary.

@AlexanderSinn
Copy link
Member

It would be nice to have lines for 10 subcycles in the plot.

@MaxThevenet
Copy link
Member Author

MaxThevenet commented Mar 24, 2023

Indeed, thanks, I added a few points with sub=10 in the plot above.

@MaxThevenet MaxThevenet merged commit 55b7abd into Hi-PACE:development Mar 26, 2023
@MaxThevenet MaxThevenet deleted the subc branch March 26, 2023 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants