modelShowTransferFunction

Test complex transfer function block

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example shows the response of a PT2 (mechanical spring-mass-damper system with an acceleration acting on the mass) defined by its transfer function

              -m
H(jw)=-------------------
      m*(jw)^2 + d*jw + c

Frequency performs a logarithmic ramp from 0.01 to 100 s^-1.

Plot the magnitude locus (in dB) dB versus lg_w and the phase locus versus lg_w.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.Massm0.2Mass
Modelica.Units.SI.TranslationalDampingConstantd0.01Damping coefficient (not the damping ratio)
Modelica.Units.SI.TranslationalSpringConstantc0.1Stiffness
Real[:]b{-m/oneUnitMass}Unitless numerator polynomial coefficients {-m} of the transfer function
Real[:]a{m/oneUnitMass, d/oneUnitDampingConstant, c/oneUnitSpringConstant}Unitless denominator polynomial coefficients {m,d,c} of the transfer function
RealwMin0.01Lower bound for frequency sweep
RealwMax100Upper bound for frequency sweep

Components

TypeNameDefaultDescription
Reallg_wlog10(logFrequencySweep.y)Logarithm of frequency
RealdB20*log10(complexToPolar.len)Magnitude of the transfer function in decibel
Modelica.Units.SI.AnglephicomplexToPolar.phiArgument of the transfer function
Modelica.Blocks.Sources.LogFrequencySweeplogFrequencySweep
Modelica.ComplexBlocks.Sources.ComplexConstantconst
Modelica.ComplexBlocks.ComplexMath.TransferFunctiontransferFunction
Modelica.ComplexBlocks.ComplexMath.ComplexToPolarcomplexToPolar