WOLFRAM SYSTEM MODELER

ShowTransferFunction

Test complex transfer function block

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica.ComplexBlocks.Examples.ShowTransferFunction"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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 (7)

m

Value: 0.2

Type: Mass (kg)

Description: Mass

d

Value: 0.01

Type: TranslationalDampingConstant (N⋅s/m)

Description: Damping coefficient (not the damping ratio)

c

Value: 0.1

Type: TranslationalSpringConstant (N/m)

Description: Stiffness

b

Value: {-m / oneUnitMass}

Type: Real[:]

Description: Unitless numerator polynomial coefficients {-m} of the transfer function

a

Value: {m / oneUnitMass, d / oneUnitDampingConstant, c / oneUnitSpringConstant}

Type: Real[:]

Description: Unitless denominator polynomial coefficients {m,d,c} of the transfer function

wMin

Value: 0.01

Type: Real

Description: Lower bound for frequency sweep

wMax

Value: 100

Type: Real

Description: Upper bound for frequency sweep

Components (4)

logFrequencySweep

Type: LogFrequencySweep

Description: Logarithmic frequency sweep

const

Type: ComplexConstant

Description: Generate constant signal of type Complex

transferFunction

Type: TransferFunction

Description: Complex Transfer Function

complexToPolar

Type: ComplexToPolar

Description: Converts complex to polar representation