GetLinkageRules

GetLinkageRules[linkage, opts]
returns a list of parameter rule of the linkage.
GetLinkageRules[linkage, {recID1, recID2, ...}]
returns a list of parameter rule, that belongs to the specified Linkage records (recIDi).
GetLinkageRules[linkage, !{recID1, recID2, ...}]
returns all parameter rule except those that belongs the specified Linkage records (recIDi)
GetLinkageRules[linkage, drvls]
returns a two dimensional list of interpolated parameters. The interpolation is specified with the drvls, which is a list of driving variables.
  • One parameter rule constitute a symbol and its current numerical value. Example: 1→
  • Driving variable interpolation is specified as a 2 dimensional list e.g. {{q1->1,q2->2},{q2->2}}. The number of internal interpolation points is defined with the Resolution option.
  • Parameter rule can be filtered using options such as IncludeDrivingVariables, IncludeSimpleParameters, etc.
  • The following options can be specified :
IncludeDrivingVariablesTrueInclude/Exclude the parameters in the $DrivingVariables record
IncludeSimpleParametersTrueInclude/Exclude the parameters in the $SimpleParameters record
IncludeDerivedParametersATrueInclude/Exclude the parameters in the $DerivedParametersA record
IncludeDerivedParametersBTruenclude/Exclude the parameters in the $DerivedParametersB record
SubstituteParametersTrueSubstitute the parameter values on the right side of the rules.
Resolution10Number of interpolation steps between the driving variable values
Load LinkageDesigner package
In[1]:=
Click for copyable input
Load the predefined crank-slider mechanism.
In[2]:=
Click for copyable input
Out[2]=
Get the parameter substitution rules of crank-slider mechanism
In[3]:=
Click for copyable input
Out[3]=
Get only the parameter substitution rules of the $SimpleParameters record.
In[4]:=
Click for copyable input
Out[4]=
Get all parameter substitution rules except the $SimpleParameters record.
In[5]:=
Click for copyable input
Out[5]=
Get the list of interpolated parameter substitution rule, as q1 driving variable is interpolated between {0, 90°}. Repress the $LDSimpleParameters to be included into the returned list.
In[6]:=
Click for copyable input
Out[6]=