fourBarposesortsolution
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - 4Bar/Linkages
Introduced first in SolidGeometry 5.1, Creation date: 2022-02-10, Last change: 2025-09-15
sorts the solutions of the fourbar struct by some criteria and even selects
Description
SGfindswitchcaseconditions('fourBarposesortsolution');
ground-length: Distance from A0 to B0
crank-length: Distance from A0 to A1
swing-length: Distance from B0 to B1
coupler-length: Distance from A1 to B1
flip: Change sort order
path-rotation: Rotation angle change along the pose path
path-length: Pose track length
path-area: Enclosed area of the pose track
path-stretch: Area to length ratio
base-posy: x-coordinate of the rack points
base-posy: y-coordinate of the rack points
base-CPLW: Base points outside CPLW
base-CPLM: Base points within CPLM
CPLE-CPLW: remaining area CPLE after subtraction of CPLW
See Also: fourBarposeplotsolution
, fourBarCLLL2SGdesign
, fourBarposelayering
Example Illustration
Syntax
[PS,kk]=fourBarposesortsolution(PS,[cmd,lim])
Input Parameter
PS: | | Pose with field "solution" |
cmd: | | command list such as 'path-stretch', [limits], |
lim: | | limitationa |
Output Parameter
PS: | | Pose with sorted or selected poses |
kk: | | last used and sorted criteria |
Examples
Posesample(10); PS=ans;
fourBarposesyntheses(Posesample(10),[2 3 4],[10 1 1]); PS=ans;
fourBarposeCPLmotion(PS,1); [PL0,TL0,wcr,TA1,TB1,TA0,TB0]=fourBarposeCPLmotion(PS,1);
fourBarposesyntheses(Posesample(10),[2 3 4],[20 1 1]); PS=ans;
fourBarposesortsolution(PS,'crank-length')
fourBarposesortsolution(PS,'path-length')
fourBarposesortsolution(PS,{'coupler-length',[18 60],'swing-length',[18 60],'crank-length',[10 60],'path-stretch',[0 2],'path-length',[100 inf]}); PSX=ans
Copyright 2022-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Last html export of this page out of FM database by TL: 2025-09-21