modelSeriesBode

Series circuit with Bode analysis

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

Information

The frequency of the voltage source is varied by a logarithmic ramp, the supply voltage magnitude is constant.

Plot versus voltageSource.f on a logarithmic scale in order to determine the Bode diagrams of the ratio of the voltage of the resistor divided by the supply voltage:

  • Gain response: dB_y
  • Phase response: arg_y

Components

TypeNameDefaultDescription
Realabs_ybode.abs_yMagnitude of voltage ratio
SI.AmplitudeLevelDifferencedB_ybode.dB_yLog10 of magnitude of voltage ratio
SI.Anglearg_ybode.arg_yAngle of voltage ratio
Modelica.Blocks.Sources.LogFrequencySweepfrequencySweep
QuasiStatic.SinglePhase.Sources.VariableVoltageSourcevoltageSource
QuasiStatic.SinglePhase.Basic.Groundground
QuasiStatic.SinglePhase.Basic.Resistorresistor
QuasiStatic.SinglePhase.Basic.Inductorinductor
Modelica.ComplexBlocks.Sources.ComplexConstantcomplexConst
Sensors.CurrentSensorcurrentSensor
Sensors.VoltageSensorvoltageSensor
Modelica.ComplexBlocks.ComplexMath.Bodebode