PoreMS 0.3
  • API
  • Molecule
  • Pore
  • Workflow
  • Pore shape examples
  • Site
    • Page
        • Sphere.Phi
          • Sphere.Phi()
    • Sphere.Phi
      • Sphere.Phi()
    Source

    Sphere.Phi¶

    Sphere.Phi(r, theta, phi)¶

    Surface function of a sphere

    \[\begin{split}\Phi(r,\phi,\theta)= \begin{bmatrix}r\cos(\phi)\sin(\theta)\\r\sin(\phi)\sin(\theta)\\r\cos(\theta)\end{bmatrix}\end{split}\]

    with radius \(r\), polar angle \(\phi\) and azimuthal angle \(\theta\).

    Parameters:
    rfloat

    Radius

    thetafloat

    Azimuth angle

    phifloat

    Polar angle

    Returns:
    poslist

    Cartesian coordinates for given spherical coordinates

    Back to top

    © Copyright 2021, Hamzeh Kraus.
    Created using Sphinx 7.4.6.