pyNastran  0.5.0
pyNastran BDF Reader/Writer, OP2 Parser, and GUI
pyNastran.bdf.cards.coordinateSystems.SphericalCoord Class Reference

\[ r = \rho = \sqrt(x^2+y^2+z^2) \]

\[ \theta = tan^-1(\frac{y}{x}) \]

\[ \phi = cos^-1(\frac{z}{r}) \]

More...

Inheritance diagram for pyNastran.bdf.cards.coordinateSystems.SphericalCoord:
pyNastran.bdf.cards.coordinateSystems.CORD1S pyNastran.bdf.cards.coordinateSystems.CORD2S

List of all members.

Public Member Functions

def coordToXYZ
def XYZtoCoord

Detailed Description

\[ r = \rho = \sqrt(x^2+y^2+z^2) \]

\[ \theta = tan^-1(\frac{y}{x}) \]

\[ \phi = cos^-1(\frac{z}{r}) \]

\[ x = r cos(\theta)sin(\phi) \]

\[ y = r sin(\theta)sin(\phi) \]

\[ z = r cos(\phi) \]

\[ p = [x,y,z] + e_1 \]

http://en.wikipedia.org/wiki/Spherical_coordinate_system

Note:
\( \phi \) and \( \theta \) are flipped per wikipedia to be consistent with nastran's documentation
See also:
refman.pdf

Definition at line 312 of file coordinateSystems.py.


Member Function Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables