blockBode

Calculate quantities to plot Bode diagram

Information

This complex block is used to determine variables of a Bode diagram for the output y. The output y is calculated by u / divisor if useDivisor == true. Otherwise the output y = u.

  • abs_y Absolute value of y
  • arg_y Angle of y
  • dB_y Logarithm to the base 10 of the absolute value of y in dB

Parameters

TypeNameDefaultDescription
BooleanuseDivisortrueUse divisor input, if true
Modelica.Units.SI.AmplitudeLevelDifferencedB20Amplitude level difference

Connectors

TypeNameDefaultDescription
Modelica.ComplexBlocks.Interfaces.ComplexInputuDividend if useDivisor == true
Modelica.ComplexBlocks.Interfaces.ComplexInputdivisorDivisor
Modelica.Blocks.Interfaces.RealOutputabs_yAbsolute value of ratio u / divisor
Modelica.Blocks.Interfaces.RealOutputarg_yAngle of ratio u / divisor
Modelica.ComplexBlocks.Interfaces.ComplexOutputyQuotient y = u / divisor
Modelica.Blocks.Interfaces.RealOutputdB_yLog10 of absolute value of ratio u / divisor in dB

Components

TypeNameDefaultDescription
Modelica.ComplexBlocks.Sources.ComplexConstantcomplexOneComplex(1,0)
Divisiondivision
Modelica.ComplexBlocks.ComplexMath.ComplexToPolarcomplexToPolar
Modelica.Blocks.Math.Log10log10_y
Modelica.Blocks.Math.Gaingain
Modelica.Blocks.Nonlinear.Limiterlimiter