0% found this document useful (0 votes)
32 views5 pages

Experiment 2

control lab experiment

Uploaded by

225037
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views5 pages

Experiment 2

control lab experiment

Uploaded by

225037
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Control Engineering Lab

Lab Experiment # 02

Implementation of Mathematical Modeling of a Physical System in MATLAB of the


following

• Mass‐Spring System Model

Objective:
The objective of this exercise is to grasp the important role mathematical models of
physical systems in the design and analysis of control systems. We will learn how MATLAB
helps in solving such models.
Apparatus:

• Computer having MATLAB software

Theory:

• Mass-Spring System Model


Consider the following Mass-Spring system shown in the Figure 2.1. Where Fs(x) is the
spring force, Ff is the friction coefficient, x(t) is the displacement and Fa(t) is the applied force:

1
Department of Mechanical Engineering, Air University A&AC Kamra
Control Engineering Lab

The linear differential equation of second order describes the relationship between the
displacement and the applied force. The differential equation can then be used to study the time
behavior of x(t) under various changes of the applied force. In reality, the spring force and/or the
friction force can have a more complicated expression or could be represented by a graph or
data table. It is shown in Figure 2.2. For instance, a nonlinear spring can be designed such that

Figure 2.2: Non-linear Spring system

• Solving The Differential Equation Using MATLAB:


The objectives behind modeling the mass-damper system can be many and may include
• Understanding the dynamics of such system
• Studying the effect of each parameter on the system such as mass M, the friction
coefficient B, and the elastic characteristic Fs(x).
• Designing a new component such as damper or spring.
• Reproducing a problem in order to suggest a solution.

Lab Tasks # 02

Q1: Consider the mechanical system shown below. The input is given by f(t), and the output is
given by y(t). Determine the transfer function fromf(t) to y(t). Apply MATLAB command, write a
m-file and plot the system response to a unit step input. Let m=10, k=1 and b=0.5. Execute that
the peak amplitude of the output is about 1.8.

2
Department of Mechanical Engineering, Air University A&AC Kamra
Control Engineering Lab

Q2: Consider the differential equation

Where

an du(t) is a unit step. Apply the Matlab command to develop the M file. And also Execute the
results.

: Consider the mechanical system shown below. The input is given by f(t), and the output is
given by y(t). Determine the transfer function fromf(t) to y(t). Apply MATLAB command to model
and also write a m-file and plot the system response to a unit step input. Let m=10, k=1 and
b=0.5. Execute the command to generate the peak amplitude of the output is about 1.8.

Fig. 2.5

Q2: Consider the differential equation

Where

an du(t) is a unit step. Apply the Matlab command to develop the M file. And also Execute the
command to generate the results.

3
Department of Mechanical Engineering, Air University A&AC Kamra
Control Engineering Lab

Results:

Q1:

4
Department of Mechanical Engineering, Air University A&AC Kamra
Control Engineering Lab

Q2:

5
Department of Mechanical Engineering, Air University A&AC Kamra

You might also like