Changes between Initial Version and Version 2 of Ticket #1214


Ignore:
Timestamp:
2013-06-24T15:41:46Z (12 years ago)
Author:
Lennart Ochel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1214

    • Property Cc oscarperez, → oscarperez
  • Ticket #1214 – Description

    initial v2  
    22I also test the same model on Dymola and it works correctly. This is a very simple model and I don't understand what is wrong with openmodelica.
    33
    4 {{{model DiodeTest
     4{{{#!mo
     5model DiodeTest
    56  Modelica.Electrical.Analog.Sources.SineVoltage sineVoltage(V=10 , freqHz=1);
    67  Modelica.Electrical.Analog.Basic.Resistor resistor(R=1000);
    78  Modelica.Electrical.Analog.Ideal.IdealDiode idealDiode(Vknee=0.7);
    89  Modelica.Electrical.Analog.Basic.Ground ground;
    9   equation
    10     connect(idealDiode.n, resistor.p);
    11     connect(sineVoltage.p, idealDiode.p);
    12     connect(resistor.n, ground.p);
    13     connect(sineVoltage.n, ground.p);
    14 end DiodeTest;}}}
     10equation
     11  connect(idealDiode.n, resistor.p);
     12  connect(sineVoltage.p, idealDiode.p);
     13  connect(resistor.n, ground.p);
     14  connect(sineVoltage.n, ground.p);
     15end DiodeTest;
     16}}}
    1517
    1618Attachments are images with the correct simulation result (Dymola) and the actual openmodelica simulation result. And also The onb model.