CylindricalCoordinateSystem#
- class pisces.geometry.coordinates.coordinate_systems.CylindricalCoordinateSystem(**parameters)[source]#
Cylindrical coordinate system in three dimensions.
Coordinates#
\(r\): Radial distance from the z-axis.
\(\theta\): Azimuthal angle (radians) from the x-axis.
\(z\): Height along the z-axis.
Conversion to Cartesian#
\[\begin{split}x = r \cos\theta \\ y = r \sin\theta \\ z = z\end{split}\]Conversion from Cartesian#
\[\begin{split}r = \sqrt{x^2 + y^2} \\ \theta = \arctan2(y, x) \\ z = z\end{split}\]Notes
Suitable for problems with axial or cylindrical symmetry.
Methods
__init__
(**parameters)Initialize the coordinate system with validated parameters.
convert_coords_from
(other, *coordinates)Convert coordinates from another coordinate system into this system.
convert_coords_to
(other, *coordinates)Convert coordinates from this system into another coordinate system.
convert_from_cartesian
(x, y, z)Convert coordinates from Cartesian to this system.
convert_to_cartesian
(r, theta, z)Convert coordinates from this system to Cartesian.
copy
()Return a shallow copy of the coordinate system.
Return a copy of the default parameters for this coordinate system.
from_dict
(data)Deserialize a coordinate system from a dictionary.
from_json_string
(json_string)Deserialize a coordinate system from a JSON string.
to_dict
()Return a dictionary representation of the coordinate system, including its class name and parameters.
Serialize the coordinate system to a JSON string.
Attributes
Return the names of the axes in this coordinate system.
Return the number of dimensions of this coordinate system.
Return a copy of the coordinate system's parameters.