MergeLinkage

MergeLinkage[{linkage1, l1}, {linkage2, l2}]
Merges l1 and l2 links of linkage1 and linkage2 respectively and returns the resulted linkage.
MergeLinkage[linkage1, linkage2]
Merges linkage1 and linkage2 through the Ground links
MergeLinkage[linkage1, linkage2, {l1, l2, ...}]
Merges linkage1 and linkage2 by gluing linkage1@l1 ->linkage2@l1, linkage1@l2 ->linkage2@l2, etc.
MergeLinkage[{linkage1, linkage2, ...}]
Merges linkages through their Ground links
MergeLinkage[{linkage1, linkage2, ...}, {l1, l2, ...}]
Merges linkages by gluing the common l1, l2,... links
MergeLinkage[{{linkage1, l1}, {linkagei, li}, ...}]
Merges likages to the l1 link of linkage1, by gluing li -> l1
  • MergeLinkage unions two or more linkages by merging the kinematic graphs. This merging process union all parameters variables and rename the non merged link's names , kinematic pairs' name.
  • Common parameters of linkages are by default replaced with unique symbol names unless they are listed in the CommonParameters options.
  • RenameLinkage function can be used on linkages to set the proper variable names before calling the MergeLinkage function
  • The following options can be used:
CommonParametersNoneDefines the list common parameters
Load the LinkageDesigner package
In[1]:=
Click for copyable input
Load the two solution branches of the four-bar mechanism
In[2]:=
Click for copyable input
Out[2]=
Show the kinematic graph of the two linkages
In[3]:=
Click for copyable input
Out[3]//TableForm=
Display the two linkages
In[4]:=
Click for copyable input
Out[4]=
Because the linkage merging considers variables with same names identical , the common variables of linkage1 and linkage2, that are considered different, should be renamed.
Merge Ground, link0 and link1 links of the two linkages
In[5]:=
Click for copyable input
Out[5]=
Display the graph of the merged linkage
In[6]:=
Click for copyable input
Out[6]=
Animate the merged linkage
In[7]:=
Click for copyable input
In[8]:=
Click for copyable input
You can continue adding kinematic pairs to the linkage
In[10]:=
Click for copyable input
Out[10]=
Change the position of "T" point to {0,0} w.r.t link2's reference frame
In[11]:=
Click for copyable input
Out[11]=
Animate the resulted 8 bar mechanism
In[12]:=
Click for copyable input
In[13]:=
Click for copyable input