forked from modelica/ModelicaStandardLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChuaCircuit.mo
77 lines (76 loc) · 3.54 KB
/
ChuaCircuit.mo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
within Modelica.Electrical.Analog.Examples;
model ChuaCircuit "Chua's circuit, ns, V, A"
extends Modelica.Icons.Example;
Modelica.Electrical.Analog.Basic.Inductor L(L=18, i(start=0, fixed=true)) annotation (Placement(transformation(
origin={-75,38},
extent={{-25,-25},{25,25}},
rotation=270)));
Modelica.Electrical.Analog.Basic.Resistor Ro(R=12.5e-3) annotation (Placement(transformation(
origin={-75,-17},
extent={{-25,-25},{25,25}},
rotation=270)));
Modelica.Electrical.Analog.Basic.Conductor G(G=0.565) annotation (Placement(transformation(extent={{-25,38},
{25,88}})));
Modelica.Electrical.Analog.Basic.Capacitor C1(C=10, v(start=4, fixed=true)) annotation (Placement(transformation(
origin={25,3},
extent={{-25,-25},{25,25}},
rotation=270)));
Modelica.Electrical.Analog.Basic.Capacitor C2(C=100, v(start=0, fixed=true)) annotation (Placement(transformation(
origin={-25,3},
extent={{-25,-25},{25,25}},
rotation=270)));
Modelica.Electrical.Analog.Examples.Utilities.NonlinearResistor Nr(
Ga(min=-1) = -0.757576,
Gb(min=-1) = -0.409091,
Ve=1) annotation (Placement(transformation(
origin={75,3},
extent={{-25,-25},{25,25}},
rotation=270)));
Modelica.Electrical.Analog.Basic.Ground Gnd annotation (Placement(transformation(extent={{-25,-112},{25,
-62}})));
equation
connect(L.n, Ro.p) annotation (Line(points={{-75,13},{-75,8}}));
connect(C2.p, G.p) annotation (Line(
points={{-25,28},{-25,45.5},{-25,45.5},{-25,63}}, color={0,0,255}));
connect(L.p, G.p) annotation (Line(
points={{-75,63},{-25,63}}, color={0,0,255}));
connect(G.n, Nr.p) annotation (Line(
points={{25,63},{75,63},{75,28}}, color={0,0,255}));
connect(C1.p, G.n) annotation (Line(
points={{25,28},{25,45.5},{25,45.5},{25,63}}, color={0,0,255}));
connect(Ro.n, Gnd.p) annotation (Line(
points={{-75,-42},{-75,-62},{0,-62}}, color={0,0,255}));
connect(C2.n, Gnd.p) annotation (Line(
points={{-25,-22},{-24,-22},{-24,-62},{0,-62}}, color={0,0,255}));
connect(Gnd.p, C1.n) annotation (Line(
points={{0,-62},{25,-62},{25,-22}}, color={0,0,255}));
connect(Gnd.p, Nr.n) annotation (Line(
points={{0,-62},{75,-62},{75,-22}}, color={0,0,255}));
annotation (
Documentation(info="<html>
<p>Chua's circuit is the most simple nonlinear circuit which shows chaotic behaviour. The circuit consists of linear basic elements (capacitors, resistor, conductor, inductor), and one nonlinear element, which is called Chua's diode. The chaotic behaviour is simulated.</p>
<p>The simulation end time should be set to 5e4. To get the chaotic behaviour please plot C1.v. Choose C2.v as the independent variable .</p>
<p><strong>Reference:</strong></p>
<p>Kennedy, M.P.: Three Steps to Chaos - Part I: Evolution. IEEE Transactions on CAS I 40 (1993)10, 640-656</p>
</html>",
revisions="<html>
<dl>
<dt>
<strong>Main Authors:</strong>
</dt>
<dd>
Christoph Clauß
<<a href=\"mailto:christoph@clauss-it.com\">christoph@clauss-it.com</a>><br>
André Schneider
<<a href=\"mailto:Andre.Schneider@eas.iis.fraunhofer.de\">Andre.Schneider@eas.iis.fraunhofer.de</a>><br>
Fraunhofer Institute for Integrated Circuits<br>
Design Automation Department<br>
Zeunerstraße 38<br>
D-01069 Dresden<br>
</dd>
</dl>
</html>"),
experiment(StopTime=5e4, Interval=1),
Diagram(coordinateSystem(preserveAspectRatio=true, extent={{-100,-100},{
100,100}})));
end ChuaCircuit;