.. _potential-api: Potential ========= 3D potentials ------------- General instance routines +++++++++++++++++++++++++ Use as ``Potential-instance.method(...)`` .. toctree:: :maxdepth: 2 __call__ dens dvcircdR epifreq flattening lindbladR omegac phiforce phi2deriv plot plotDensity plotEscapecurve plotRotcurve R2deriv Rzderiv Rforce rl toPlanar toVertical vcirc verticalfreq vesc vterm z2deriv zforce General 3D potential routines +++++++++++++++++++++++++++++ Use as ``method(...)`` .. toctree:: :maxdepth: 2 dvcircdR epifreq evaluateDensities evaluatephiforces evaluatePotentials evaluateR2derivs evaluateRzderivs evaluateRforces evaluatez2derivs evaluatezforces flattening lindbladR omegac plotDensities plotEscapecurve plotPotentials plotRotcurve rl vcirc verticalfreq vesc vterm Specific potentials ++++++++++++++++++++ .. toctree:: :maxdepth: 2 potentialdoubleexp.rst potentialdoublepowerspher.rst potentialjaffe.rst potentialflattenedpower.rst potentialhernquist.rst potentialkepler.rst potentialloghalo.rst potentialmiyamoto.rst potentialnfw.rst potentialpowerspher.rst potentialrazorexp.rst In addition to these classes, a Milky-Way-like potential is defined as ``galpy.potential.MWPotential``. This potential is defined as >>> mp= MiyamotoNagaiPotential(a=0.5,b=0.0375,normalize=.6) >>> np= NFWPotential(a=4.5,normalize=.35) >>> hp= HernquistPotential(a=0.6/8,normalize=0.05) >>> MWPotential= [mp,np,hp] and can thus be used like any list of ``Potentials``. 2D potentials ------------- General instance routines +++++++++++++++++++++++++ Use as ``Potential-instance.method(...)`` .. toctree:: :maxdepth: 2 __call__ phiforce Rforce General axisymmetric potential instance routines ++++++++++++++++++++++++++++++++++++++++++++++++ Use as ``Potential-instance.method(...)`` .. toctree:: :maxdepth: 2 epifreq lindbladR omegac plot plotEscapecurve plotRotcurve vcirc vesc General 2D potential routines +++++++++++++++++++++++++++++ Use as ``method(...)`` .. toctree:: :maxdepth: 2 evaluateplanarphiforces evaluateplanarPotentials evaluateplanarRforces plotEscapecurve plotplanarPotentials plotRotcurve Specific potentials ++++++++++++++++++++ All of the 3D potentials above can be used as two-dimensional potentials in the mid-plane. .. toctree:: :maxdepth: 2 RZToplanarPotential In addition, a two-dimensional bar potential and a two spiral potentials are included .. toctree:: :maxdepth: 2 potentialdehnenbar.rst potentialcosmphidisk.rst potentialellipticaldisk.rst potentiallopsideddisk.rst potentialsteadylogspiral.rst potentialtransientlogspiral.rst 1D potentials ------------- General instance routines +++++++++++++++++++++++++ Use as ``Potential-instance.method(...)`` .. toctree:: :maxdepth: 2 __call__ force plot General 1D potential routines +++++++++++++++++++++++++++++ Use as ``method(...)`` .. toctree:: :maxdepth: 2 evaluatelinearForces evaluatelinearPotentials plotlinearPotentials Specific potentials ++++++++++++++++++++ .. toctree:: :maxdepth: 2 KGPotential One-dimensional potentials can also be derived from 3D axisymmetric potentials as the vertical potential at a certain Galactocentric radius .. toctree:: :maxdepth: 2 RZToverticalPotential