.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 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos