Ticket #6270: Test.mo

File Test.mo, 1.2 KB (added by massimo ceraolo, 4 years ago)
Line 
1model Test "Figure 4 of paper"
2 Real zenerEnergy;
3 Modelica.Electrical.Analog.Sensors.PotentialSensor vMeter annotation(
4 Placement(visible = true, transformation(extent = {{-32, 54}, {-12, 34}}, rotation = 0)));
5 Modelica.Blocks.Tables.CombiTable1D vTable(smoothness = Modelica.Blocks.Types.Smoothness.ContinuousDerivative, table = [-1, 0; 0.0, 0.0; 0.8, 0.1; 1.5, 5.5; 1.8, 6.3; 2, 6.5; 2.5, 6.6; 6, 6.7; 10, 6.8]) annotation(
6 Placement(visible = true, transformation(extent = {{12, 6}, {-8, 26}}, rotation = 0)));
7equation
8 der(zenerEnergy) = zDiode.LossPower;
9 annotation(
10 Diagram(coordinateSystem(preserveAspectRatio = false, extent = {{-80, -40}, {80, 80}})),
11 Icon(coordinateSystem(extent = {{-80, -40}, {80, 80}})),
12 experiment(StartTime = 0.005, StopTime = 0.0055, __Dymola_NumberOfIntervals = 2000),
13 __Dymola_experimentSetupOutput,
14 Documentation(info = "<html>
15 <p>Compliance is satisfactory.</p>
16 <p>Only the duration of clamped zener voltage in the paper is larger than this simulation.</p>
17 <p>This can only be explained with a difference in primary transformer inductanceshown in table 1.</p>
18 </html>"));
19end Test;