Test examples
Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).
| Name | Description |
|---|---|
| Series circuit with Bode analysis | |
| Series resonance circuit | |
| Parallel resonance circuit | |
| Rectifier example | |
| Example of transformer with short circuit impedance, transmission resistances and load | |
| Demonstrates series and parallel resonance using a transformer |
Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesBodeSeries circuit with Bode analysis
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:
dB_yarg_yExtends from Modelica.Icons.Example (Icon for runnable examples).
Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonanceSeries resonance circuit
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.ParallelResonanceParallel resonance circuit
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.RectifierRectifier example
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.
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).
| Name | Description |
|---|---|
| VAC | AC rms voltage [V] |
| conversionFactor | Ratio of DC voltage / AC rms voltage |
Modelica.Electrical.QuasiStatic.SinglePhase.Examples.TransformerExample of transformer with short circuit impedance, transmission resistances and load
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
V1N = 1000 VV2N = 200 VSN = 50 kVAZk = 0.72 Ohm + j*0.96 OhmPlot 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.MultipleResonanceDemonstrates series and parallel resonance using a transformer
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).
| Name | Description |
|---|---|
| V | Source rms voltage [V] |
| fLo | Lower source frequency [Hz] |
| fUp | Upper source frequency [Hz] |
| Zi | Source inner impedance |
| L1 | Transformer primary inductance [H] |
| L2 | Transformer secondary inductance [H] |
| k | Transformer coupling factor |
| M | Transformer mutual inductance [H] |
| R | Load resistance [Ohm] |
| L | Load inductance [H] |
| C | Load capacitance [F] |