Commit 111ed641 authored by Markus Mirz's avatar Markus Mirz
Browse files

remove deprecated notebooks


Former-commit-id: 64ee4e17
parent 5efd6748
2bc6262cee8034d4ac80a8ac0c8ad902fc93d5f8
\ No newline at end of file
%% 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
%matplotlib inline
# Import plot tools and reload
import importlib
import PlotTools as pt
importlib.reload(pt)
# Define path to CSV files
LogPath = '../VisualStudio/DPsimVS2015/Logs/'
finalTime = '0.6'
```
%% Cell type:markdown id: tags:
### Time step 50 µs
%% Cell type:code id: tags:
``` python
pt.plotNodeVoltageDpEmt( \
LogPath + 'LeftVectorLog_VarFreqRXLineResLoad_5e-05_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_5e-05_'+ finalTime + '.csv',3)
```
%% Cell type:markdown id: tags:
### Time step 1 ms
%% Cell type:code id: tags:
``` python
pt.plotNodeVoltageDpEmtRef( \
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_5e-05_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoad_0.001_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_0.001_'+ finalTime + '.csv',3)
```
%% Cell type:markdown id: tags:
### Time step 5 ms
%% Cell type:code id: tags:
``` python
pt.plotNodeVoltageDpEmtRef( \
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_5e-05_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoad_0.005_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_0.005_'+ finalTime + '.csv',3)
```
%% Cell type:markdown id: tags:
### Time step 10 ms
%% Cell type:code id: tags:
``` python
importlib.reload(pt)
pt.plotNodeVoltageDpEmtRef( \
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_5e-05_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoad_0.01_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_0.01_'+ finalTime + '.csv',3)
```
%% Cell type:markdown id: tags:
### Time step 15 ms
%% Cell type:code id: tags:
``` python
pt.plotNodeVoltageDpEmtRef( \
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_5e-05_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoad_0.015_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_0.015_'+ finalTime + '.csv',3)
```
%% Cell type:markdown id: tags:
### Time step 20 ms
%% Cell type:code id: tags:
``` python
pt.plotNodeVoltageDpEmtRef( \
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_5e-05_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoad_0.02_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_0.02_'+ finalTime + '.csv',3)
```
%% Cell type:markdown id: tags:
### Time step 25 ms
%% Cell type:code id: tags:
``` python
pt.plotNodeVoltageDpEmtRef( \
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_5e-05_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoad_0.025_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_0.025_'+ finalTime + '.csv',3)
```
%% Cell type:markdown id: tags:
### Time step 30 ms
%% Cell type:code id: tags:
``` python
pt.plotNodeVoltageDpEmtRef( \
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_5e-05_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoad_0.03_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_0.03_'+ finalTime + '.csv',3)
```
%% Cell type:markdown id: tags:
### Time step 35 ms
%% Cell type:code id: tags:
``` python
pt.plotNodeVoltageDpEmtRef( \
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_5e-05_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoad_0.035_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_0.035_'+ finalTime + '.csv',3)
```
%% Cell type:markdown id: tags:
### Time steo 40ms
%% Cell type:code id: tags:
``` python
pt.plotNodeVoltageDpEmtRef( \
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_5e-05_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoad_0.04_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_0.04_'+ finalTime + '.csv',3)
```
%% Cell type:markdown id: tags:
## 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.
### Time step 20 ms
%% Cell type:code id: tags:
``` python
pt.plotNodeVoltageInterpDpRef( \
LogPath + 'LeftVectorLog_VarFreqRXLineResLoadEMT_5e-05_'+ finalTime + '.csv',
LogPath + 'LeftVectorLog_VarFreqRXLineResLoad_0.02_'+ finalTime + '.csv',3)
```
%% Cell type:markdown id: tags:
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 id: tags:
``` python
```
14c61e979bdb89056bb91d780655034f368c1c33
\ No newline at end of file
018d6cf6b7b246166b1a46165ca196acd3913f06
\ No newline at end of file
12f3a740ac72dbd264c693fabda3ffa1e62844c3
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment