MATLAB_Vertical_Spring_Semilinear Description and Help

Description:

MATLAB_Vertical_Spring_Semilinear is a graphical user interface (GUI) that plots solutions to a semilinear spring-mass model. The GUI assumes the position of the mass relative to the spring’s natural length can be modeled by

    ′′        ′                  3                   ′
mx   (t) + rx  (t) + kx (t) - μx (t)  = mg, x(0) = x0,x (0) = x1
where m is a positive parameter representing mass, in kilograms, and k,μ the positive parameters from the restoring force. The parameter r represents the proportionality constant from the resistance force assumption (see text for complete details); x0 the initial position of the mass, in meters; and x1 the initial velocity of the mass. As mentioned above and in the text, x(t) represents the position of the mass relative to its natural position at time t measured in seconds. Furthermore due to a choice made in the modeling process, x(t) > 0 means below the natural length position.

To use the GUI, click on the ‘Input Parameters and Solve’ Button.


PIC

Figure 1: MATLAB_Vertical_Spring GUI


Pop-up boxes will appear guiding you through the input process.


PIC

Figure 2: Pop-up boxes for parameters


Once all the inputs have been made a movie will display the position of the mass over time.


PIC

Figure 3: Final frame of movie displaying spring-mass motion


Lastly, a second graph will display the linear model and the difference between the solutions of the linear and semilinear model.


PIC

Figure 4: Final frame of movie displaying spring-mass motion