Opened 17 years ago

Closed 12 years ago

#1005 closed defect (fixed)

Diodes not working

Reported by: Pavol Privitzer Owned by: Willi Braun
Priority: critical Milestone:
Component: Simulation Code Generation Version:
Keywords: Cc: Pavol Privitzer

Description

There is an unexpected sinus wave on the diode's i variable in the attached simple model.
Maybe the model is somehow incorrect (because of me), but there should be a filtered half waved sinus instead.

If you give me a hint to solve this, I'd be happy,
because it's a big blocker to our modeling ...
... the same problem we have with other models with valves (our physiological models).

I can try to fix this myself, but I will need a hint with the generated
code for diodes, specially I would like to understand the mini linear equation system,
a link with a theory about it would be helpful.

Best regards

Pavol Privitzer

PS: there is not yet created a version 1.4.4. (my actual version) in the version combobox when submitting the bug

Attachments (3)

DiodeTest.mo (1.6 KB ) - added by Pavol Privitzer 17 years ago.
DiodeTestVoltSource.mo (1.6 KB ) - added by Pavol Privitzer 17 years ago.
Actually this is the model, I'd like to work.
rectifier.mo (2.9 KB ) - added by haklu 17 years ago.
Model including diods that work.

Download all attachments as: .zip

Change History (8)

by Pavol Privitzer, 17 years ago

Attachment: DiodeTest.mo added

by Pavol Privitzer, 17 years ago

Attachment: DiodeTestVoltSource.mo added

Actually this is the model, I'd like to work.

comment:1 by Pavol Privitzer, 17 years ago

Well, I've found, after I tried my posted model DiodeTest.mo in MathModelica Designer and dicovered myself to try to stop the force of sineCurrent source on the diode (I am better modeller in physiology ...), so the TestDiode.mo is not the model I'd like to work.

But, after I changed it to sineVoltage source it worked well in the MM Designer, but unfortunately not in OpenModelica, where it showed just a strange step function.

Please, look at the second attached model DiodeTestVoltSource.mo.

comment:2 by haklu, 17 years ago

Strange, I have a model of a full wave rectifier using four ideal diods from MSL (see attachment) which works fine, I will try to look into it next week.

by haklu, 17 years ago

Attachment: rectifier.mo added

Model including diods that work.

comment:3 by Willi Braun, 12 years ago

Cc: ppriv, → ppriv
Owner: changed from Pavol Privitzer to anonymous
Status: newaccepted

comment:4 by anonymous, 12 years ago

Owner: changed from anonymous to Willi Braun
Status: acceptedassigned

comment:5 by Willi Braun, 12 years ago

Resolution: fixed
Status: assignedclosed

fixed in the meanwhile

Note: See TracTickets for help on using tickets.