porems.shape.
Sphere
(inp)¶This class defines a sphere shape. Needed inputs are
Parameters: |
|
---|
Surface Function
Phi (self, r, theta, phi) |
Surface function of a sphere |
d_Phi_phi (self, r, theta, phi) |
Derivative of the surface function considering the polar angle |
d_Phi_theta (self, r, theta, phi) |
Derivative of the surface function considering the azimuthal angle |
Shape
rim (self, phi[, num]) |
Return x and y values for given polar angle. |
surf (self[, num]) |
Return x, y and z values for the shape. |
Properties
is_in (self, pos) |
Check if given position is inside of shape. |
normal (self, pos) |
Calculate unit normal vector on surface for a given position |
surface (self) |
Calculate inner surface |
volume (self) |
Calculate volume |