-
Notifications
You must be signed in to change notification settings - Fork 200
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
Implementation of 4th order particle shape beyond implicit solver cases #4706
Conversation
Modified shape factors written for Villasenor algorithm to use simpler (mathematically equivalent) expressions
Added test for particle_shape=4 Choice of 2d Langmuir wave case is based on cost (resolution would need to be increased relative to existing 3d tests) Fixed bugs related to rebase
Removed tabs that did not properly convert to whitespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me, thank you!
I let @JustinRayAngus also take a 2nd look and then we can merge :)
Sounds good -- happy to see this finally get off my personal branch |
sx[1] = (T(1.0))/(T(24.0))*(T(4.75) - T(11.0)*xint + T(4.0)*xint*xint*(T(1.5) + xint - xint*xint)); | ||
sx[2] = (T(1.0))/(T(24.0))*(T(14.375) + T(6.0)*xint*xint*(xint*xint - T(2.5))); | ||
sx[3] = (T(1.0))/(T(24.0))*(T(4.75) + T(11.0)*xint + T(4.0)*xint*xint*(T(1.5) - xint - xint*xint)); | ||
sx[4] = (T(1.0))/(T(24.0))*(T(0.5) + xint)*(T(0.5) + xint)*(T(0.5) + xint)*(T(0.5)+xint); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR!
I left a cosmetic suggestion :)
Co-authored-by: Revathi Jambunathan <41089244+RevathiJambunathan@users.noreply.github.com>
Extension of 4th order particle shape to (hopefully all) other gather and deposition schemes
Motivation:
4th order particle shape improves energy conservation. This can be needed for laser-solid interaction problems if one does not use current filtering, especially if strong magnetic fields are present.
Overview of changes:
Benchmarking done:
Notes: