PoreMS 0.2
  • API
  • Process
  • Molecule
  • Pore
  • Workflow
  • Site
    • Page
        • Sphere.Phi

    Sphere.Phi¶

    Sphere.Phi(self, 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:
    r : float

    Radius

    theta : float

    Azimuth angle

    phi : float

    Polar angle

    Returns:
    pos : list

    Cartesian coordinates for given spherical coordinates

    Back to top

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