Lecture_3-Differential Equations_1

advertisement
Electronic Analog Computer
by
Dr. Amin Danial Asham
References
Modern Control Engineering
Katsuhiko Ogata
III. Solving Linear Differential Equations
 The mathematical operation amplifiers can by used to
solve various mathematical equations and results can be
displayed on an oscilloscope.
 In this sections, examples of using the different types of
amplifiers to solve mathematical problems will be
introduced.
III. Solving Linear Equations (continue)
Example 1:
π‘‰π‘œ = 4 𝑉𝑖
𝑉𝑖
4
𝑉1
1
Solution
Since
𝑅
𝑉1 = − 𝑅 𝑉𝑖 = −4𝑉𝑖
4
and
𝑅
𝑅
π‘‰π‘œ = − 𝑉1 = −𝑉1
∴ π‘‰π‘œ = 4𝑉𝑖
𝑹 = 𝟏 π‘΄πœ΄
π‘‰π‘œ
III. Solving Linear Equations (continue)
Example 2:
𝑑2𝑦
𝑑𝑑 2
=𝑔
Solution :
• To solve this problem, the input signal 𝑉𝑖 = 𝑔 has to be integrated twice to get the
output π‘‰π‘œ = 𝑦.
𝑉1 =
1
−
𝑅𝐢
𝑉𝑖 𝑑𝑑 =
1
𝑅𝐢
𝑉1 𝑑𝑑 =
π‘‰π‘œ = −
1 𝑑𝑦
−
𝑅𝐢 𝑑𝑑
1 2
𝑅𝐢
𝑉𝑖
𝑦
If the value of 𝑅 = 1 𝑀٠and 𝐢 = 1πœ‡πΉ
∴ 𝑅𝐢 = 1
1
2
∴ π‘‰π‘œ = 𝑦 = 𝑑 2 𝑔
1
𝑅𝐢
𝑉1
0
π‘‰π‘œ
1
𝑅𝐢
0
III. Solving Linear Equations (continue)
Example 2 (continue):
Simulating this example with 𝑔 = 2, 𝑅 = 1𝑀Ω, and 𝐢 = 1πœ‡πΉ. We get the following solution.
III. Solving Linear Equations (continue)
Example 3: Solve the following differential equation:
π‘₯ + 10π‘₯ + 16π‘₯ = 0,
π‘₯ 0 = 0,
π‘₯ 0 =8
Solution:
From the differential equation, we get:
π‘₯ = −10π‘₯ − 16π‘₯
Therefore, we have to integrate π‘₯ twice to get π‘₯
First Integrator integrates π‘₯ to get −π‘₯
Therefore, initial condition −π‘₯(0) = −8
Second integrator integrates −π‘₯ to π‘₯
𝒙
10
The analog computer
diagram for solving
the
Differential
Equation
−𝒙
16
0
-8
−𝒙
𝒙
1
1
III. Solving Linear Equations (continue)
Example 3: (Continue) - Circuit Diagram of the analog computer
These contacts
change their
state after a
short time at the
start of the
circuit
III.
Solving Linear Equations (continue)
Example 3: (Continue) – The result from analog computer
III. Solving Linear Equations (continue)
Example 3: (Continue) – Numerical Solution using Matlab on a digital computer.
III. Solving Linear Equations (continue)
Example 3: (Continue)
 For the differential equation:
π‘₯ + 10π‘₯ + 16π‘₯ = 0,
π‘₯ 0 = 0,
π‘₯ 0 =8
• If the scale factors are π‘˜1 for π‘₯ and π‘˜2 for π‘₯ then
10
16
π‘₯+
π‘˜ π‘₯ +
π‘˜ π‘₯ =0
π‘˜2 2
π‘˜1 1
Therefore
10
16
π‘₯=−
π‘˜2 π‘₯ −
π‘˜1 π‘₯
π‘˜2
π‘˜1
𝟏𝟎
π’ŒπŸ
πŸπŸ”
π’ŒπŸ
−𝒙
1
0
-8 π’ŒπŸ
−π’ŒπŸ 𝒙
π’ŒπŸ 𝒙
π’ŒπŸ
π’ŒπŸ
−π’ŒπŸ 𝒙
𝒙 π’Œ
𝟐
1
III. Solving Linear Equations (continue)
Example 3: (Continue)
• The diagram can be simplified for the minimum number of OpAmp’s
as follows:
𝟏𝟎
πŸπŸ”π’ŒπŸ
π’ŒπŸ
0
-8 π’ŒπŸ
−π’ŒπŸ 𝒙
π’ŒπŸ 𝒙
π’ŒπŸ
π’ŒπŸ
−π’ŒπŸ 𝒙
1
III. Solving Linear Equations (continue)
Example 3: (Continue)
•For π‘˜1 = 4 π‘Žπ‘›π‘‘ π‘˜2 = 2
𝟏𝟎
−πŸπ’™
4𝒙
𝟐
πŸ–
0
-8 π’ŒπŸ
−πŸ’π’™
1
III. Solving Linear Equations (continue)
Example 3: (Continue)
III. Solving Linear Equations (continue)
Example 3: (Continue)
III. Solving Linear Equations (continue)
Time scale factor:
Time scale factor is used to slow down or speed up the time of the simulation
compared to the real time to make the analysis easier.
Example 4:
𝑑2 𝑦
𝑑𝑦
𝑑𝑦
+ 0.25
+ 𝑦 = 1 𝑦 0 = 1,
0 =2
2
𝑑𝑑
𝑑𝑑
𝑑𝑑
𝜏
Let 𝜏 = πœ†π‘‘, hence for 𝑦 𝑑 π‘π‘’π‘π‘œπ‘šπ‘’π‘  𝑦( ) (𝑑 is the real time and 𝜏is the
πœ†
simulation time)
In other words each 𝒕 is replaced with
𝝉
𝝀
Therefore:
𝑑𝑦 𝑑𝑦 π‘‘πœ
𝑑𝑦
=
.
=πœ†
𝑑𝑑 π‘‘πœ 𝑑𝑑
π‘‘πœ
And
2𝑦
𝑑2𝑦
𝑑 𝑑𝑦
𝑑
𝑑𝑦 π‘‘πœ
𝑑
2
=
=
πœ†
.
=
πœ†
𝑑𝑑 2 𝑑𝑑 𝑑𝑑
π‘‘πœ
π‘‘πœ 𝑑𝑑
π‘‘πœ 2
III. Solving Linear Equations (continue)
Example 4: (continue)
The Differential equation becomes:
2
𝑑
𝑦
𝑑𝑦
2
πœ†
+ 0.25πœ†
+𝑦 =1
2
π‘‘πœ
π‘‘πœ
Therefore
𝑑 2 𝑦 0.25 𝑑𝑦 𝑦
1
+
+ 2= 2
2
π‘‘πœ
πœ† π‘‘πœ πœ†
πœ†
Consequently since 𝜏 = 0 π‘€β„Žπ‘’π‘› 𝑑 = 0
𝑑𝑦
𝑑𝑦
0 =2=πœ†
0
𝑑𝑑
π‘‘πœ
Therefore
𝑑𝑦
0
𝑑𝑦
𝑑𝑑
0 =
= 2/πœ†
π‘‘πœ
λ
III. Solving Linear Equations (continue)
Example 4: (continue)
1
𝟎. πŸπŸ“
𝝀
𝟏
π€πŸ
𝟏
π€πŸ
−π’š
−
−π’š
π’š
𝟏
𝟐
𝝀
1
1
III. Solving Linear Equations (continue)-Example 4: (continue)
Thanks
Download