.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 2024-12-17T19:26:02Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos