CalculateGeneralizedForce

CalculateGeneralizedForce[linkage, id]
Calculates the generalized forces from id force or torque.
CalculateGeneralizedForce[linkage]
Calculates generalized forces for all force and torque definition of linkage.
  • Generalized forces are calculated from the force and torque definition stored in the $LDTorques and $LDForces records of LinkageData
  • Generalized forces are calculated by using the Principal of Virtual Work. The generalized forces corresponds to the generalized coordinates of the linkage. The generalized coordinates are the $LDDrivingVariables of the linkage.
  • In case the driving variable is a periodic variable ( rotational type ), the corresponding generalized fore is a moment. In case of the driving variable is linear (translational type) the corresponding generalized fore is force.
  • CalculateGeneralizedForce works on time dependent linkages.
Load LinkageDesigner package
In[1]:=
Click for copyable input
Load the example double pendulum linkage
In[2]:=
Click for copyable input
Out[2]=
Add force definition
In[3]:=
Click for copyable input
Out[3]=
View the records of the linkage
In[4]:=
Click for copyable input
Out[4]=
Calculate the generalized force of the linkage
In[5]:=
Click for copyable input
Out[5]=
Display the generalized force vectors with the generalized coordinates
In[6]:=
Click for copyable input
Out[6]=
Calculate the numerical value of the generalized forces
In[7]:=
Click for copyable input
Out[7]=
Show the linkage with the force definition
In[8]:=
Click for copyable input
Out[8]=