WOLFRAM SYSTEM MODELER

to_unit1

Change the unit of a Real number to unit="1"

Wolfram Language

In[1]:=
SystemModel["Modelica.SIunits.Conversions.to_unit1"]
Out[1]:=

Information

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

Syntax

SIunits.Conversions.to_unit1(r);

Description

The function call "Conversions.to_unit1(r)" returns r with unit="1".

Example

  Modelica.SIunits.Velocity v = {3,2,1};
  Real direction[3](unit="1") = to_unit1(v);   // Automatically vectorized call of to_unit1

Syntax

result = to_unit1(r)

Inputs (1)

r

Type: Real

Description: Real number

Outputs (1)

result

Type: Real

Description: Real number r with unit="1"