else\r
y := y1 + (y2 - y1)*(u - u1)/(u2 - u1);\r
end if;\r
- end if;"""
\ No newline at end of file
+ end if;"""\r
+ \r
+ \r
+ \r
+FL.unitCast : SYSDYN.SysdynModelicaFunction\r
+ L0.HasDescription """unitCast(u)\r
+\r
+Casts the expression to ANY unit."""\r
+ SYSDYN.SysdynModelicaFunction.inputs _ : L0.List\r
+ @L0.list\r
+ FL.unitCast.u : SYSDYN.SysdynModelicaFunction.Input\r
+ SYSDYN.Variable.type "Real"\r
+ SYSDYN.SysdynModelicaFunction.optional false\r
+ SYSDYN.SysdynModelicaFunction.unit "ANY"\r
+ SYSDYN.SysdynModelicaFunction.definition "the expression to be casted"\r
+ SYSDYN.SysdynModelicaFunction.outputs _ : L0.List\r
+ @L0.list\r
+ FL.unitCast.y : SYSDYN.SysdynModelicaFunction.Output\r
+ SYSDYN.Variable.type "Real"\r
+ SYSDYN.SysdynModelicaFunction.unit "ANY"\r
+ SYSDYN.SysdynModelicaFunction.modelicaFunctionCode """ input Real u "the expression to be casted";\r
+ output Real y "the expression with unit ANY";\r
+algorithm\r
+ y := u;"""\r
public final Resource Built$in_Functions_minmax_maximum;\r
public final Resource Built$in_Functions_minmax_minimum;\r
public final Resource Built$in_Functions_minmax_result;\r
+ public final Resource Built$in_Functions_unitCast;\r
+ public final Resource Built$in_Functions_unitCast_u;\r
+ public final Resource Built$in_Functions_unitCast_y;\r
public final Resource Built$in_Functions_xidz;\r
public final Resource Built$in_Functions_xidz_divident;\r
public final Resource Built$in_Functions_xidz_divisor;\r
public static final String Built$in_Functions_minmax_maximum = "http://www.simantics.org/Sysdyn-1.1/Built-in%20Functions/minmax/maximum";\r
public static final String Built$in_Functions_minmax_minimum = "http://www.simantics.org/Sysdyn-1.1/Built-in%20Functions/minmax/minimum";\r
public static final String Built$in_Functions_minmax_result = "http://www.simantics.org/Sysdyn-1.1/Built-in%20Functions/minmax/result";\r
+ public static final String Built$in_Functions_unitCast = "http://www.simantics.org/Sysdyn-1.1/Built-in%20Functions/unitCast";\r
+ public static final String Built$in_Functions_unitCast_u = "http://www.simantics.org/Sysdyn-1.1/Built-in%20Functions/unitCast/u";\r
+ public static final String Built$in_Functions_unitCast_y = "http://www.simantics.org/Sysdyn-1.1/Built-in%20Functions/unitCast/y";\r
public static final String Built$in_Functions_xidz = "http://www.simantics.org/Sysdyn-1.1/Built-in%20Functions/xidz";\r
public static final String Built$in_Functions_xidz_divident = "http://www.simantics.org/Sysdyn-1.1/Built-in%20Functions/xidz/divident";\r
public static final String Built$in_Functions_xidz_divisor = "http://www.simantics.org/Sysdyn-1.1/Built-in%20Functions/xidz/divisor";\r
Built$in_Functions_minmax_maximum = getResourceOrNull(graph, URIs.Built$in_Functions_minmax_maximum);\r
Built$in_Functions_minmax_minimum = getResourceOrNull(graph, URIs.Built$in_Functions_minmax_minimum);\r
Built$in_Functions_minmax_result = getResourceOrNull(graph, URIs.Built$in_Functions_minmax_result);\r
+ Built$in_Functions_unitCast = getResourceOrNull(graph, URIs.Built$in_Functions_unitCast);\r
+ Built$in_Functions_unitCast_u = getResourceOrNull(graph, URIs.Built$in_Functions_unitCast_u);\r
+ Built$in_Functions_unitCast_y = getResourceOrNull(graph, URIs.Built$in_Functions_unitCast_y);\r
Built$in_Functions_xidz = getResourceOrNull(graph, URIs.Built$in_Functions_xidz);\r
Built$in_Functions_xidz_divident = getResourceOrNull(graph, URIs.Built$in_Functions_xidz_divident);\r
Built$in_Functions_xidz_divisor = getResourceOrNull(graph, URIs.Built$in_Functions_xidz_divisor);\r