Ticket #93 (closed defect: fixed)

Opened 4 months ago

Last modified 2 days ago

Model in library uses non-existent arctan function

Reported by: svorkoetter@… Owned by: clauss
Priority: normal Milestone: MSL3.0.1
Component: Electrical.Analog Version: 3.0
Severity: normal Keywords:
Cc: clauss@…, otter Hide ticket: no

Description

The model Modelica.Electrical.Analog.Basic.SaturatingInductor uses the non-existent function "arctan" in its equations. Thus, this model does not work. The bug exists in both MSL 3.0 and MSL 2.2.1.

Attachments

Change History

in reply to: ↑ description   Changed 4 months ago by dietmarw

  • cc clauss@…, otter added

Replying to svorkoetter@maplesoft.com:

The model Modelica.Electrical.Analog.Basic.SaturatingInductor uses the non-existent function "arctan" in its equations. Thus, this model does not work. The bug exists in both MSL 3.0 and MSL 2.2.1.

Yes it seems that here the Dymola specific function arctan() is used. That's probably also the reason this was overlooked (because it just works in Dymola). I did a short test and simply replacing arctan with the Modelica function atan should solve this. My example simulation gives the same result anyway.

Also I did a quick grep for usage of other Dymola specific arc* functions but didn't find any other occurrences. So I think this can be quite easily fixed for MSL3.0.1 and in 3.0 and 2.2.2 maintenance (not sure if 2.2.1 should also be maintained as 2.2.2 is fully compatible).

follow-up: ↓ 3   Changed 4 months ago by otter

  • status changed from new to closed
  • resolution set to fixed

Bug was fixed in r1148 in trunk version and in r1150 in MSL3.0 maintenance version.

in reply to: ↑ 2   Changed 4 months ago by dietmarw

Replying to otter:

Bug was fixed in r1148 in trunk version and in r1150 in MSL3.0 maintenance version.

Shouldn't this be fixed for 2.2.2 aswell?

  Changed 4 months ago by PHarman

Likewise the model Modelica.Thermal.FluidHeatFlow.Components.Valve uses the function ln(x) which according to the specification should be log(x).

  Changed 4 months ago by stefanv

  • status changed from closed to reopened
  • resolution fixed deleted

Reopening due to previous comment.

  Changed 4 months ago by dietmarw

Peter,
I'm creating a new ticket #94 from this since the person responsible for Modelica.Thermal.FluidHeatFlow.Components.Valve is actually Anton Haumer.

Stefan, I'll leave it at reopen since the 2.2.2 branch wasn't fixed yet.

  Changed 4 months ago by dietmarw

  • status changed from reopened to closed
  • resolution set to fixed

Now also fixed for 2.2.2 maintenance branch in r1152 (code) and r1153 (release notes).

Add/Change #93 (Model in library uses non-existent arctan function)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.