ModelicaStandardLibrary icon indicating copy to clipboard operation
ModelicaStandardLibrary copied to clipboard

regStep and smoothStep

Open sertho opened this issue 3 years ago • 1 comments

Whenever I need utility functions for example to regularize a characteristic I search within the Media and the Fluid libraries. I found that these two functions do the same:

  • Modelica.Fluid.Utilities.regStep
  • Modelica.Media.Common.smoothStep

Is there any plan to create a new package where all these utility functions are gonna be collected? (maybe within Math.Numerics or similar)

It would make it much more easy for the users to find adequate functions for this kind of problems.

Is there a function within the MSL similar to smoothStep, but with monotonicity ensured (e.g. using hermite splines for monotone cubic interpolation)? I found something similar in the Buildings library: https://simulationresearch.lbl.gov/modelica/releases/v9.0.0/help/Buildings_Utilities_Math_Functions.html#Buildings.Utilities.Math.Functions.smoothInterpolation

sertho avatar Jul 16 '22 10:07 sertho

Wouldn't it make sense to collect such functions in Modelica.Math or Modelica.Blocks? I don't know such a function you mentioned, but I think it could be implemented by using Modelica.Blocks.Tables.

AHaumer avatar Jul 17 '22 08:07 AHaumer