Skip to content

Wrong results in the CharacteristicIdealDiode example #98

@casella

Description

@casella

The comparison of the results of the MTK model obtained from the Base Modelica model Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.bmo do not match the reference results, see report.

This is the diagram of the circuit

Image

Diode With_Ron_Goff has an internal resistance Ron = 0.1 Ohm, while the series-connected resistor R2 has much smaller internal resistance of 0.001 Ohm. Hence, between time = 0.2 and time = 0.3, when the diode is conducting, 99% of the sinusoidal source voltage drops on the diode, so that With_Ron_Goff.v is almost a sinusoidal signal, as shown by the reference result in blue.

The Julia MTK model result in red is badly off in that interval. This should be investigated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions