Opened 17 years ago

Closed 12 years ago

#1005 closed defect (fixed)

Diodes not working

Reported by: ppriv Owned by: wbraun
Priority: critical Milestone:
Component: Simulation Code Generation Version:
Keywords: Cc: ppriv

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 ppriv 17 years ago.
DiodeTestVoltSource.mo (1.6 KB) - added by ppriv 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)

Changed 17 years ago by ppriv

Changed 17 years ago by ppriv

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

comment:1 Changed 17 years ago by ppriv

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 Changed 17 years ago by haklu

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.

Changed 17 years ago by haklu

Model including diods that work.

comment:3 Changed 12 years ago by wbraun

  • Cc changed from ppriv, to ppriv
  • Owner changed from ppriv to anonymous
  • Status changed from new to accepted

comment:4 Changed 12 years ago by anonymous

  • Owner changed from anonymous to wbraun
  • Status changed from accepted to assigned

comment:5 Changed 12 years ago by wbraun

  • Resolution set to fixed
  • Status changed from assigned to closed

fixed in the meanwhile

Note: See TracTickets for help on using tickets.