Skip to content

Modelica.Electrical.Analog.Examples.Resistor is not very simple #4471

Open
@HansOlsson

Description

@HansOlsson

The documentation of Modelica.Electrical.Analog.Examples.Resistor says

This is a very simple circuit consisting of a voltage source and a resistor.

I don't agree with that.
Clearly the model looks simple and the electrical part is in itself simple, but the thermal coupling makes the behavior more complicated:

If you look at the code generated by Dymola you see that there's a non-linear system of equations!

The reason is that the thermal part isn't connected to a heat capacitor as one would naïvely expect, but only to a linear thermal conductor. Since the resistor's resistance depend on temperature we therefore have a non-linear system of equations keeping the loss-power (that is v*i or v^2/R(T) right?) in balance with conducted heat power ( G*(T-293.15) ).

I see a number of possibilities:

  • Just don't say that it is "very simple".
  • Add a small heat-capacitor simplifying the model behavior, while keeping the thermal conductor (without the thermal conductor it would just keep heating until it burned).

The current model would be limit if we in the second possibility have a an epsilon-heat capacitor and let epsilon go to zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    L: Electrical.AnalogIssue addresses Modelica.Electrical.AnalogdocumentationIssue addresses the documentationexampleIssue only addresses example(s)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions