"## Comparison of dynamic phasors and EMT for increasing time steps\n",
"The circuit below is simulated. The voltage source (V = 1000) with resistance (R = 1) is implemented as Norton equivalent. The RX-series element represents a line (R = 1, L = 1). At 0.1 seconds, the load resistance is changed from R = 100 to R = 50. The frequency of the voltage source changes from 50 Hz to 40 Hz at 0.2 seconds. \n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Configure matplotlib to show figures embedded in the notebook \n",
"## Dynamic Phasors with interpolation before frequency shift"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Since the 50 Hz fundamental is implicitly included in the dynamic phasor solution, we could linearly interpolate the real and imaginary component before calculating the shifted signal.\n",
"The transients of this simulation scenario are quite fast. In steady state the results look much better. The following plot shows a simulation over one second."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": []
}
],
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
},
"tests": {
"skip": true
}
},
"nbformat": 4,
"nbformat_minor": 4
}
%% Cell type:markdown id: tags:
## Comparison of dynamic phasors and EMT for increasing time steps
The circuit below is simulated. The voltage source (V = 1000) with resistance (R = 1) is implemented as Norton equivalent. The RX-series element represents a line (R = 1, L = 1). At 0.1 seconds, the load resistance is changed from R = 100 to R = 50. The frequency of the voltage source changes from 50 Hz to 40 Hz at 0.2 seconds.
%% Cell type:code id: tags:
``` python
# Configure matplotlib to show figures embedded in the notebook
## Dynamic Phasors with interpolation before frequency shift
%% Cell type:markdown id: tags:
Since the 50 Hz fundamental is implicitly included in the dynamic phasor solution, we could linearly interpolate the real and imaginary component before calculating the shifted signal.
The transients of this simulation scenario are quite fast. In steady state the results look much better. The following plot shows a simulation over one second.