You are on page 1of 11

August 09, 2017

A. PROBLEM STATEMENT
To determine the mathematical model and block diagram of the following electrical
system.

B. PROCEDURE

Step 1: Formulate equations for the required parameters (ii(t), i2(t), i3(t), and Vo(t)). Solve
for the mathematical model in time domain and make a block diagram for the system.
Step 2: Run MATLAB on your PC and create a new script

CLICK

Step 3: Enter the codes for the program.


Step 4: Save and try to run (press F5 or ) the program.
C. PROGRAMS

clc

clear all
close all %closes all figures

syms s

% 3 equation 3 unknowns (i1, i2, i3)


x=[s+1/s -1/s -s; -1/s (-2/s)+1 1/s; s 1/s -s+1+(1/s)];
y=[12/s; 0; 0];

% i1, i2, and i3 respectively


z=linsolve(x,y)

% laplace i1, i2, and i3 respectively


Z=ilaplace(z)

% value of Vo(t)
v=ilaplace(-(12*(s + 1))/(- s^4 + 2*s^3 - s^2 + 2*s + 4))

D. RESULTS (PLOTS, CALCULATION, BLOCK DIAGRAM)

1
Vi(s) = s(i1(s) i3(s)) + (i1(s) i2(s))
s
2
sVi(s) = s (i1(s) i3(s)) + (i1(s) i2(s))
d d2
Vi(t) = (i1(t) i3(t)) + (i1(t) i2(t))
dt dt2
d2 d2 d
ii(t) = i
2 3(t) 1(t) i + Vi(t) + i2(t) >>>>>>>eq 1.
dt dt2 dt
1 1
- i2(s) = (i2(s) i3(s)) + (i2(s) i1(s))
s s
- si2(s) = 2i2(s) i1(s) i3(s)
0 = (2 + s) i2(s) i1(s) i3(s)
d
0 = 2 i2(t) + i2(t) i1(t) i3(t)
dt
d
2 i2(t) = - i2(t) + i1(t) + i3(t)
dt
1 1 d 1
i2(t) = ( ) i1(t) ( ) i2(t) +( ) i3(t) >>>>>>>eq 2.
2 2 dt 2
1
- i3(s) = s(i3(s) i1(s)) + (i3(s) i2(s))
s
- si3(s) = s2 (i3(s) i1(s)) + i3(s) i2(s)
i3(s) = -s2 (i3(s) i1(s)) + si3(s) + i2(s)
d2 d2 d
i3(t) = i
2 1(t)
i
3(t) i3(t) + i2(t) >>>>>>> eq 3.
dt dt2 dt
V1 V2 V0(t) = 0

where:
d 1
i1 i2 = C1 C1(t) >>>>> (i1 i2)dt = dC1
dt C1
d 1
i2 i3 = C2 C2(t) >>>>>>> (i2 i3)dt = dvC2
dt C2
d 1 1
dt C1
[ (i1 i2 )dt C2
(i2 i3 )dt = Vo(t) ]
1 1
dVo(t) = (i1(t) i2(t)) (i2(t) i3(t))
C1 C2
d
Vo(t) = i1(t) 2i2(t) i3(t)
dt
d
Vo(t) = i1(t) 2i2(t) i3(t) >>>>>>>eq 4.
dt

Frequency Domain:
1() = 2 3() 2 1() + 12 + 2()

1 1 1
2() = 1 () 2() + 3()
2 2 2
3() = 2 1() 2 3() 3() +2()

()= 1() 22() 3()


1
[12=( 2 + 1) 1() 2() 2 3()]
2
1 1 1
[0= 1() ( + 1) 2() + 3() ] 2
2 2 2

2 +1 2 1 1
6=[ + ] 1() [ + 2 ( + 1)] 2()
2 2 2 2

1 1 1
[0= 1() ( + 1) 2() + 3()]( 2 + + 1)
2 2 2
1
[0= 2 1() + 2() ( 2 + + 1)3() ]
2
2 ++1 2 1 1
0=[ + ] 1() + [ ( + 1)( 2 + + 1)] 2()
2 2 2 2

2 +1 2 1 1 1 1
{6=( + ) 1() [ + 2 ( + 1)2() ]}[ ( + 1)( 2 + + 1)]
2 2 2 2 2 2

2 ++1 2 1 1 1 1
0=( + ) 1() + [ ( + 1)( 2 + + 1)2() ][( + 2)( + 1)]
2 2 2 2 2 2
1 1 22 +1 1 1 22 ++1 1 1
6[ ( + 1)( 2 + + 1)]={( )[ ( + 1)( 2 + + 1)]+( )[ + 2 ( + 1)]} 1()
2 2 2 2 2 2 2 2
1 1 1
[0= 1() ( + 1) 2() + 3()]( 2 + + 1)
2 2 2
1
[0= 2 1() + 2() ( 2 + + 1)3() ]
2

2 ++1 2 1 1
0=[ + ] 1() + [ ( + 1)( 2 + + 1)] 2()
2 2 2 2

2 +1 2 1 1 1 1
{6=( + ) 1() [ + 2 ( + 1)2() ]}[ ( + 1)( 2 + + 1)]
2 2 2 2 2 2

2 ++1 2 1 1 1 1
0=( + ) 1() + [ ( + 1)( 2 + + 1)2() ][( + 2)( + 1)]
2 2 2 2 2 2

1 1 22 +1 1 1 22 ++1 1 1
6[ ( + 1)( 2 + + 1)]={( )[ ( + 1)( 2 + + 1)]+( )[ + 2 ( + 1)]} 1()
2 2 2 2 2 2 2 2

1
3 6( + 1)( 2 + + 1)
1() = 2
2 2 + 1 1 1 2 2 + + 1 1 1
{ [ ( + 1) ( 2 + + 1)] + ( )[ + 2 ( + 1)]}
2 2 2 2 2 2

22 +1 1 1 22 ++1
{6=( ) 1() [ + 2 ( + 1)]2()}( )
2 2 2 2
22 ++1 1 1 22 +1
{0=( ) 1() + [ ( + 1)( 2 + + 1)]2() }( )
2 2 2 2

22 ++1 1 1 22 ++1 1 1 22 +1
-6( )={[ + 2 ( + 1)]( )+[ ( + 1)( 2 + + 1)] ( )} 2()
2 2 2 2 2 2 2

3(2 2 + + 1)
2() =
1 1 2 2 + +1 1 1 2 2 + 1
[ + 2 ( + 1)] + [ ( + 1)( 2 + + 1)]( )
2 2 2 2 2 2
1
[12=( 2 + 1) 1() 2() 2 3()] ( + 1)
2
1 1 1
[0= 1() ( + 1) 2() + 3()](-1)
2 2 2
1 1 1 1 1
12( + 1)=[( 2 + 1)( + 1) ] 1() [ 2 ( + 1) + ] 3()
2 2 2 2 2

1 1 1
[0= 1() ( + 1) 2() + 3()]
2 2 2
1
[0= 2 1() + 2() ( 2 + + 1)3() ] ( + 1)
2

1 1 1 1
{0=[ + 2 ( + 1)] 1() + [ ( 2 + + 1) ( + 1)]3() }
2 2 2 2

1 1 1 1 1 1 1 1 1
-12( + 1)[ + 2 ( + 1)] ={[ ( 2 + + 1) ( + 1)][ ( 2 + 1) ( + 1) ]+[ 2 ( + 1) + ]
2 2 2 2 2 2 2 2 2

1 1
[ + 2 ( + 1)]} 3()
2 2

1 1 1
12( + 1)[ + 2 ( + 1)]
3() = 1 2 2 2
1 1 1 1 1
BlOCK DIAGRAM MODEL

A. PROBLEM STATEMENT
To determine the mathematical model and block diagram of the following electrical
system.
B. PROCEDURE
Step 1: Formulate equations for the required parameters. Solve for the mathematical
model in time domain and make a block diagram for the system.
Step 2: Run MATLAB on your PC and create a new script

CLICK

Step 3: Enter the codes for the program.


Step 4: Save and try to run (press F5 or ) the program.

C. PROGRAMS
clc
clear all
close all %closes all figures

syms s

% 2 equation 2 unknowns (x, y)


x=[(30*s^2)+(15*s)+10 -15*s;-3*s (10*s^2)+(3*s)+4];
y=[0;12/s];

% x and y respectively
z=linsolve(x,y)

% laplace x and y respectively


Z=ilaplace(z)
D. RESULTS

CALCULATIONS

FOR MASS 1:

1 = 1 + 1 () = 1 + 2 + 2

2 2
B( () ()=1 () + 1 () () =B( () ( ) + 2 ( ) + 2 ( )

60
B(sy sx)= 1 + 1 2 = 15 15 + 50 2 + 20

15sy-15sx=10x+30 2
10 +30 2 +15
y=
15

2
y= + 2 +
3

Substitute:
60 2 2 2
= 15( + 2 + ) 15 + 50 2 ( + 2 + ) + 20( + 2 + )
3 3 3
60 220 40
= 100 3 + 80 2 + + 30 +
3 3
220 40
60=100 4 + 80 3 + 2 + 30 +
3 3

1
180
x= ( 10 )
300 4 +240 3 +220 2 +90+40 1 10

18
x=
30 4 +24 3 +222 +9+4

2 18 18 18
y==[ 3 (30 4 +243 +22 2 +9+4 ) + 2(30 4 +24 3 +222 +9+4) + 30 4 +24 3 +222 +9+4]
36+36( 3) +18(3)
y=
3(30 4 +243 +22 2 +9+4)

36+108 2 +54
y=
(905 +72 4 +663 +27 2 +12)

18(62 +3+2)
y=
3(30 4 +243 +22 2 +9+4)

6(62 +3+2)
y=
(304 +243 +222 +9+4)
BLOCK DIAGRAM MODEL

E. CONCLUSIONS AND LEARNING EXPERIENCE

Through this experiment the group learned how to solve for mechanical and
electrical systems, this includes formulating equations for the parameters required,
expressing the system in its time domain and sketching the block diagram for each. The
group also revisited previous circuit analysis topics in order to find and isolate the
parameters. In making use of Matlab, the group had found it difficult to plot the system
in program. Nonetheless, it does not take away the softwares ability to plot the system
response for mechanical and electrical systems.
F. RUBRIC

You might also like