50 likes | 175 Views
Solving a One Degree Freedom System using CAMP-G and Matlab. James Morrison ME 114 Fall 06. Two Mass System. Mass 1 is attached to the wall and to mass 2 by a parallel spring and damper combination. The system initially at rest with a force F being applied to Mass 2.
E N D
Solving a One Degree Freedom System using CAMP-G and Matlab James Morrison ME 114 Fall 06
Two Mass System Mass 1 is attached to the wall and to mass 2 by a parallel spring and damper combination. The system initially at rest with a force F being applied to Mass 2. M1 = 2 M2 = 2 b1 = 3 b2 = 4 k1 = 40 k2 = 60 F=1 b1b2 F k1 k2 M1 M2
Bond Graph C R I 1 I C 1 0 1 SE R 1/k2 b2 To solve for displacement and momentum of M1 and M2, the system is first modeled as a bond graph in CAMP-G. C = Spring I = Mass R = Damper SE = Force Input 1 = Common Mass Point Junction 0 = Mechanical Series Junction 5 6 M1 M2 4 2 8 7 1/k1 F 3 1 9 10 b1
Matlab CAMP-G generates four first order differential equations describing the system which can be solved using Matlab for momentum and displacement. In Matlab the values of the system (dampers, springs ect.) are added as well as the initial conditions (displacement, momentum).