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

Add general classes for implementing spherical potentials and interpolated spherical potentials #424

Merged
merged 25 commits into from Jul 16, 2020

Conversation

jobovy
Copy link
Owner

@jobovy jobovy commented Jul 16, 2020

Adds:

  • SphericalPotential: a general class for defining spherical potentials from functions representing the potential, radial force, force derivative, and density as a function of spherical radius (the natural way to define these)
  • interpSphericalPotential: a general class for defining interpolated versions of spherical potentials

Both implemented in both Python and C. Use of SphericalPotential in C mirrors that of EllipsoidalPotential.

…polated range when using interpSphericalPotential
…lipsoidalPotential, using the SphericalPotential way) and use this to implement interpSphericalPotential in C
…ng the Poisso =n eqn. at r < rmax and set to zero outside to avoid numerical issues
@jobovy jobovy changed the title Add general classes for implementing spherical potentials and interpolated spherical potentials` Add general classes for implementing spherical potentials and interpolated spherical potentials Jul 16, 2020
@jobovy jobovy self-assigned this Jul 16, 2020
@jobovy jobovy added this to the v1.7 milestone Jul 16, 2020
@codecov
Copy link

codecov bot commented Jul 16, 2020

Codecov Report

Merging #424 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master     #424    +/-   ##
========================================
  Coverage   99.81%   99.82%            
========================================
  Files         162      166     +4     
  Lines       24947    25141   +194     
========================================
+ Hits        24902    25096   +194     
  Misses         45       45            
Impacted Files Coverage Δ
galpy/potential/EllipsoidalPotential.py 100.00% <ø> (ø)
galpy/orbit/Orbits.py 99.94% <100.00%> (+<0.01%) ⬆️
galpy/orbit/integrateFullOrbit.py 100.00% <100.00%> (ø)
galpy/orbit/integratePlanarOrbit.py 100.00% <100.00%> (ø)
galpy/orbit/orbit_c_ext/integrateFullOrbit.c 100.00% <100.00%> (ø)
galpy/orbit/orbit_c_ext/integratePlanarOrbit.c 100.00% <100.00%> (ø)
galpy/potential/BurkertPotential.py 100.00% <100.00%> (ø)
galpy/potential/SphericalPotential.py 100.00% <100.00%> (ø)
galpy/potential/SphericalShellPotential.py 100.00% <100.00%> (ø)
galpy/potential/__init__.py 100.00% <100.00%> (ø)
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 34a9307...e79b100. Read the comment docs.

@jobovy jobovy merged commit 7dfe9e7 into master Jul 16, 2020
@jobovy jobovy deleted the interpsphericalpotential branch July 16, 2020 13:53
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.

None yet

1 participant