Changes between Initial Version and Version 2 of Ticket #1214
- Timestamp:
- 2013-06-24T15:41:46Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1214
- Property Cc oscarperez, → oscarperez
-
Ticket #1214 – Description
initial v2 2 2 I 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. 3 3 4 {{{model DiodeTest 4 {{{#!mo 5 model DiodeTest 5 6 Modelica.Electrical.Analog.Sources.SineVoltage sineVoltage(V=10 , freqHz=1); 6 7 Modelica.Electrical.Analog.Basic.Resistor resistor(R=1000); 7 8 Modelica.Electrical.Analog.Ideal.IdealDiode idealDiode(Vknee=0.7); 8 9 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;}}} 10 equation 11 connect(idealDiode.n, resistor.p); 12 connect(sineVoltage.p, idealDiode.p); 13 connect(resistor.n, ground.p); 14 connect(sineVoltage.n, ground.p); 15 end DiodeTest; 16 }}} 15 17 16 18 Attachments are images with the correct simulation result (Dymola) and the actual openmodelica simulation result. And also The onb model.