function
Vehicles.Cubs2.OuterLoopComponents.horizontalPart
Public declarations
Explicit source declarations; dimensions, modifications and defaults are shown as written, without evaluation.
| Role | Name | Type | Dimensions / attributes / default | Description |
|---|---|---|---|---|
| input | v | Real | [3] | |
| output | result | Real | [2] |
Modelica declarations and implementation
Show parameters, interfaces and source
Parameters, inputs, outputs, defaults and equations from the source file.
function horizontalPart
input Real v[3];
output Real result[2];
algorithm
result := {v[1], v[2]};
annotation(
Inline=true);
end horizontalPart;