.Modelica.Math.Vectors.relNodePositions

Information

Syntax

Vectors.relNodePositions(nNodes);

Description

The function call "relNodePositions(nNodes)" returns a vector with the relative positions of the nodes of a discretized pipe with nNodes nodes (including the node at the left and at the right side of the pipe), see next figure:

Example

  Real xsi[7];
algorithm
  xsi = relNodePositions(7);  // xsi = {0, 0.1, 0.3, 0.5, 0.7, 0.9, 1}

See also

MultiBody.Visualizers.PipeWithScalarField

Interface

function relNodePositions
  extends Modelica.Icons.Function;
  input Integer nNodes "Number of nodes (including node at left and right position)";
  output Real xsi[nNodes] "Relative node positions";
end relNodePositions;

Generated at 2024-04-28T18:16:21Z by OpenModelicaOpenModelica 1.22.3 using GenerateDoc.mos