'Used to set the potential energy of this RigidBody.
Parameters
scalar: Sympifyable
The potential energy (a scalar) of the RigidBody.
Examples
>>> from sympy.physics.mechanics import Particle, Point, outer
>>> from sympy.physics.mechanics import RigidBody, ReferenceFrame
>>> from sympy import symbols
>>> b = ReferenceFrame(\'b\')
>>> M, g, h = symbols(\'M g h\')
>>> P = Point(\'P\')
>>> I = outer (b.x, b.x)
>>> Inertia_tuple = (I, P)
>>> B = RigidBody(\'B\', P, b, M, Inertia_tuple)
>>> B.potential_energy = M * g * h'

@potential_energy.setter
def potential_energy(self, scalar):

    self._pe = sympify(scalar)
