Opened 15 years ago
Closed 11 years ago
#1214 closed defect (worksforme)
Simple Diode Circuit model Simulation gives wrong simulation results. Dymola correct result included.
Reported by: | oscarperez | Owned by: | oscarperez |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Simulation Code Generation | Version: | 1.5.0RC3 |
Keywords: | Cc: | oscarperez |
Description (last modified by )
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.
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.
Attachments (3)
Change History (4)
by , 15 years ago
Attachment: | DiodeTestCircuitOpenModelicaSimulationResult.png added |
---|
comment:2 by , 11 years ago
Cc: | oscarperez, → oscarperez |
---|---|
Description: | modified (diff) |
comment:3 by , 11 years ago
Resolution: | → worksforme |
---|---|
Status: | accepted → closed |
Note:
See TracTickets
for help on using tickets.
onb file, And simulation images (correct result and openmodelica wrong result)