CalculatePotentialEnergy

CalculatePotentialEnergy[linkage, {links}]
calculates the potential energy of the links. Links are specified as a list link names.
CalculatePotentialEnergy[linkage]
calculates the potential energy of all links in the linkage. Only the links that has assigned mass properties are included in the calculation.
  • The following options can be given:
GravityVector{0, -9.81, 0}GravityVector specifies the gravity vector. The unit of the vector is defined in the $LDMechanismID record
Load LinkageDesigner package
In[1]:=
Click for copyable input
Load the example double pendulum linkage
In[2]:=
Click for copyable input
Out[2]=
View the records of the linkage
In[3]:=
Click for copyable input
Out[3]=
Calculate the potential energy of the linkage
In[4]:=
Click for copyable input
Out[4]=
List the potential energy of the double pendulum if 2 is fixed at /2 and 1 is rotated a full circle
In[5]:=
Click for copyable input
In[6]:=
Click for copyable input
Out[6]=
Animate the linkage through the points used in the potential energy calculation
In[7]:=
Click for copyable input
Out[7]=
Animate the potential energy by interpolation anchor points
In[8]:=
Click for copyable input
Out[8]=
Display the two animation together
In[9]:=
Click for copyable input
Out[9]=