Modelica.Electrical.QuasiStatic.SinglePhase.Examples

Test examples

Information

Examples to demonstrate the usage of quasi-static electric components.

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Package Content

Name Description
Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode SeriesBode Series circuit with Bode analysis
Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance SeriesResonance Series resonance circuit
Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance ParallelResonance Parallel resonance circuit
Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier Rectifier Rectifier example
Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer Transformer Example of transformer with short circuit impedance, transmission resistances and load
Modelica.Electrical.QuasiStatic.SinglePhase.Examples.MultipleResonance MultipleResonance Demonstrates series and parallel resonance using a transformer

Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBode

Series circuit with Bode analysis

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:

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

Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance

Series resonance circuit

Information

The frequency of the voltage source is varied by a ramp. Plot length and angle of the current phasor, i.e., complexToPolar.len and .phi, versus time resp. frequency.

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

Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance Modelica.Electrical.QuasiStatic.SinglePhase.Examples.ParallelResonance

Parallel resonance circuit

Information

The frequency of the current source is varied by a ramp. Plot length and angle of the voltage phasor, i.e., complexToPolar.len and .phi, versus time resp. frequency.

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

Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Rectifier

Rectifier example

Information

This example demonstrates coupling a quasi-static circuit with a DC circuit. The QS voltage is rectified (using an ideal AC DC converter), loaded by a variable load conductor. The conversionFactor = DC voltage / AC rms voltage in this case is the root mean square of a rectified sine, i.e., 1. You may compare the quasi-static results with that of a fully transient model (using a Graetz rectifier), plotting:

It can be seen that at the DC side the current is represented by its averaged value, at the AC side by its rms value.

Note

The quasi-static model needs a grounding at the QS side as well as the DC side, whereas the transient model may have only one ground since AC side and DC side are connected via the diodes.

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

Parameters

NameDescription
VACAC rms voltage [V]
conversionFactorRatio of DC voltage / AC rms voltage

Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer Modelica.Electrical.QuasiStatic.SinglePhase.Examples.Transformer

Example of transformer with short circuit impedance, transmission resistances and load

Information

This examples shows the operational behavior of transformer with short circuit impedance. The transformer is loaded with constant current magnitude of 250A but variable phase angle. The angle varies from 0 to 360 degrees within one second of simulation time.

Transformer data

Plot the real part of the secondary voltage idealTransformer.v2.re on the x axis and idealTransformer.v2.im on the y axis. The locus of this complex voltage v2 is a circle. The center of the circle is the primary supply voltage divided by the transformation ratio of n=5. Since in this experiment the load current magnitude is constant, the voltage drop across the short circuit impedance of the transformer is constant, as well. The radius of the circle is equal to the constant magnitude of the voltage drop across the short circuit impedance.

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

Modelica.Electrical.QuasiStatic.SinglePhase.Examples.MultipleResonance Modelica.Electrical.QuasiStatic.SinglePhase.Examples.MultipleResonance

Demonstrates series and parallel resonance using a transformer

Information

The series resonance load circuit is fed by a voltage source with inner impedance. By using a transformer between source and load, we achieve multiple resonance by varying the source frequency:

Plot currentSensor.abs_i and currentSensor.arg_i versus frequency, i.e. frequencySweep.y. Note that the behaviour is fundamentally different from that of a simple series resonance circuit.

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

Parameters

NameDescription
VSource rms voltage [V]
fLoLower source frequency [Hz]
fUpUpper source frequency [Hz]
ZiSource inner impedance
L1Transformer primary inductance [H]
L2Transformer secondary inductance [H]
kTransformer coupling factor
MTransformer mutual inductance [H]
RLoad resistance [Ohm]
LLoad inductance [H]
CLoad capacitance [F]
Automatically generated Tue Feb 24 16:59:21 2026.