.Modelica.Units.Conversions.to_unit1

Information

Syntax

Modelica.Units.Conversions.to_unit1(r);

Description

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

Example

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

Interface

function to_unit1
  extends Modelica.Units.Icons.Conversion;
  input Real r "Real number";
  output Real result(unit = "1") "Real number r with unit=\"1\"";
end to_unit1;

Generated at 2020-06-05T21:39:08Z by OpenModelica 1.16.0~dev-442-g2e5bc9f