This class defines a sphere shape. Needed inputs are
central - Central axis
centroid - Sphere Centroid
diameter - Sphere diameter
Dictionary of necessary inputs
Methods
|
Surface function of a sphere |
|
This helper method rotates the given data to match the global central axis and translates it so that the center point is aligned. |
|
Derivative of the surface function considering the polar angle \(\phi\) |
|
Derivative of the surface function considering the azimuthal angle \(\theta\) |
|
Return full input dictionary. |
|
Check if given position is inside of shape. |
|
Calculate unit normal vector on surface for a given position |
|
Plot surface and rim. |
|
Return x and y values for given polar angle. |
|
Return x, y and z values for the shape. |
|
Calculate inner surface |
|
Calculate volume |