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)
Change History (8)
by , 17 years ago
Attachment: | DiodeTest.mo added |
---|
by , 17 years ago
Attachment: | DiodeTestVoltSource.mo added |
---|
comment:1 by , 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 , 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.
comment:3 by , 12 years ago
Cc: | ppriv, → ppriv |
---|---|
Owner: | changed from | to
Status: | new → accepted |
comment:4 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | accepted → assigned |
Actually this is the model, I'd like to work.