Shapes.Sphere#

Shapes.Sphere.py

class Sphere(radius, center=None)#

Bases: object

Sphere class to represent a spherical density space.

get_condition(xx, yy, zz, center=None)#

Get the condition for the sphere.

get_rg()#

Calculate the radius of gyration of the sphere.

Returns:

The radius of gyration of the sphere.

Return type:

float

get_volume()#

Calculate the volume of the sphere.

Returns:

The volume of the sphere.

Return type:

float