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

Use AGM for Greens Calculations #3273

Open
geograham opened this issue May 13, 2024 · 0 comments
Open

Use AGM for Greens Calculations #3273

geograham opened this issue May 13, 2024 · 0 comments
Labels
magnetostatics Tasks relating to the magnetostatics module

Comments

@geograham
Copy link
Contributor

Description of issue / requirement to address

Papercut #205 had three key suggestions for greens.py. The other two have been addressed. This one may still be helpful for speed:

"Scipy function uses interpolation for E and K, this may increase errors for values of k near 1, i.e. the field very close to the loop. Two methods to improve this may be to use the AGM calculation (Wikipedia has the simplest method and finds E and K simultaneously) and/or to use a different modulus, k_1 = (1-sqrt(1-k^2))/(1+sqrt(1-k^2)), this approaches 1 much slower for the same distance and so the AGM converges very quickly. Again Wikipedia has the general method for doing this. Maxwell himself seemed to have cracked this so there are plenty of other sources if required."

Proposed solution

Implement and test the use of AGM alternative.

Alternative solutions

Leave the way it is.

@je-cook je-cook added the magnetostatics Tasks relating to the magnetostatics module label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
magnetostatics Tasks relating to the magnetostatics module
Projects
None yet
Development

No branches or pull requests

2 participants