Skip to content

Issues with Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T at t=1 #4719

@JohannesKrauseGitH

Description

@JohannesKrauseGitH

The model Modelica.Media.Examples.SolveOneNonlinearEquation.InverseIncompressible_sh_T (MSL 4.0 and MSL4.1) fails to simulate with some solvers of SimulationX at t=1:

Error: Help: Modelica.Assert
 
in function Modelica.Utilities.Streams.error
The arguments u_min and u_max provided in the function call
    solveOneNonlinearEquation(f,u_min,u_max)
do not bracket the root of the single non-linear equation 0=f(u):
  u_min  = 243.15
  u_max  = 373.15
  fa = f(u_min) = -477465
  fb = f(u_max) = -3.49246e-10
fa and fb must have opposite sign which is not the case

I have noticed that this issue has already be reported (and fixed) some time ago, see #401 and 42f8091.

Apparently, that fix is not used in the MSL4 anymore. The fixed function (replaceable function solve) has been moved to ObsoleteModelica4.mo and the new function, solveOneNonlinearEquation in Modelica.Math.Nonlinear does not have that fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    L: MediaIssue addresses Modelica.MediaexampleIssue only addresses example(s)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions