WOLFRAM SYSTEM MODELER

maxWithoutEvent

Maximum of the input arguments, without event and function can be differentiated

Wolfram Language

In[1]:=
SystemModel["Modelica.Mechanics.MultiBody.Frames.Internal.maxWithoutEvent"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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.

Syntax

y = maxWithoutEvent(u1, u2)

Inputs (2)

u1

Type: Real

u2

Type: Real

Outputs (1)

y

Type: Real