smbCreateSpring

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

smb creates a spring damper link between two point masses

Description

M1 and M2 are connected using LConn1

See Also: smbNewSystem , smbCreateSGMass

Example Illustration

 missing image of smbCreateSpring(M1,M2,SGName,len,sprg,damp)

Syntax

h=smbCreateSpring(M1,M2,[SGName,len,sprg,damp])

Input Parameter

M1: Mass 1
M2: Mass 2
SGName: optional name; default is 'SPRD;
len: len in mm
sprg: spring constant in N/m
damp: Damping in N/(m/s)

Output Parameter

h: spring-damper block

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