﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1214	Simple Diode Circuit model Simulation gives wrong simulation results. Dymola correct result included.	oscarperez	oscarperez	"I made a simple model of with a diode circuit. But when I try to simulate it, diode doesn't work (diode is always an open circuit). Am I doing something wrong?
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.

{{{#!mo
model DiodeTest
  Modelica.Electrical.Analog.Sources.SineVoltage sineVoltage(V=10 , freqHz=1);
  Modelica.Electrical.Analog.Basic.Resistor resistor(R=1000);
  Modelica.Electrical.Analog.Ideal.IdealDiode idealDiode(Vknee=0.7);
  Modelica.Electrical.Analog.Basic.Ground ground;
equation
  connect(idealDiode.n, resistor.p);
  connect(sineVoltage.p, idealDiode.p);
  connect(resistor.n, ground.p);
  connect(sineVoltage.n, ground.p);
end DiodeTest;
}}}

Attachments are images with the correct simulation result (Dymola) and the actual openmodelica simulation result. And also The onb model.

Kind Regards."	defect	closed	critical		Simulation Code Generation	1.5.0RC3	worksforme		oscarperez
