.Modelica_LinearSystems2.ZerosAndPoles.'constructor'.fromReal

Information

Syntax

zp = ZerosAndPoles'constructor'.fromReal(r)

Description

This function constructs a ZerosAndPoles record zp from a real value, i.e. a without dynamics:

y = r*u

Therefore, the record is defined by

zp.k = r;
zp.n1 = fill(0,1);
zp.n2 = fill(0,1,2);
zp.d1 = fill(0,1);
zp.d2 = fill(0,1,2);

Interface

encapsulated function fromReal
  import Modelica;
  import Modelica_LinearSystems2.ZerosAndPoles;
  input Real r "Value of real variable";
  input String uName = "" "Input name";
  input String yName = "" "Output name";
  output ZerosAndPoles zp(redeclare Real n1[0], redeclare Real n2[0, 2], redeclare Real d1[0], redeclare Real d2[0, 2]) "= r";
end fromReal;

Generated at 2024-11-22T19:25:38Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos