Rigid Body#

type

Cylinder

Sphere

class elastica.rigidbody.rigid_body.RigidBodyBase[source]#

Base class for rigid body classes.

Notes

All rigid body class should inherit this base class.

compute_position_center_of_mass()[source]#

Return positional center of mass

compute_translational_energy()[source]#

Return translational energy

compute_rotational_energy()[source]#

Return rotational energy

class elastica.rigidbody.cylinder.Cylinder(start, direction, normal, base_length, base_radius, density)[source]#
class elastica.rigidbody.sphere.Sphere(center, base_radius, density)[source]#