modelRLSeriesFrequencySweep

Series circuit with Bode analysis

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

Information

Description

The frequency of the voltage source of an R-L series circuit is varied by a logaithmic ramp. The supply voltage magnitude is constant.

Plot the following variable(s)

  • dB_y against voltageSource.f (logarithmic scale): gain response
  • arg_y against voltageSource.f (logarithmic scale): phase response
  • voltageSensor.y.im against voltageSensor.y.re: locus of resistor voltage

Components

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