.Modelica.Mechanics.MultiBody.Frames.Internal.maxWithoutEvent

Information

Syntax

y = Internal.maxWithoutEvent(u1, u2)

Description

Function maxWithoutEvent returns the maximum of its two input arguments. This functions is used instead of the Modelica built-in function "max" or an if-statement with "noEvent(..)", in order that the function can be differentiated by providing the first and second derivatives with additional functions. Note, from a strict mathematical point of view the derivatives will be wrong, since Dirac impulses would occur in the derivatives. For the special cases as used in the MultiBody library, this is irrelevant and therefore the usage of the function is correct.

Interface

function maxWithoutEvent
  extends Modelica.Icons.Function;
  input Real u1;
  input Real u2;
  output Real y;
end maxWithoutEvent;

Generated at 2020-06-05T07:38:22Z by OpenModelica 1.16.0~dev-420-gc007a39