smbCreateSGMass
by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - SimMechanics
Introduced first in SolidGeometry 3.6, Creation date: 2017-03-17, Last change: 2025-09-14
smbcreates a double mass model with random inertia and point mass
Description
Since smb start the movement in the origin, it is very easy to create singularity condition without intention. Therefor, this function links a point mass with a random inertia deviation to create objects that can be connected by springs
See Also: smbNewSystem
, smbCreateSpring
Example Illustration
Syntax
smbCreateSGMass([SG,SGName,SGcol])
Input Parameter
SG: | | Solid Geometry; default is a sphere with radius 1 |
SGName: | | Optional Name; default is 'MASS' |
SGcol: | | Optional Color |
Examples
smbNewSystem ('smb_exp_2017_03_17b',[0 0 -9.81]);
M1=smbCreateSGMass;
M2=smbCreateSGMass;
smbCreateSpring(M1,M2);
smbAddLine( 'WORLD/RConn1', [M1 '/LConn1']);
Copyright 2017-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