Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major rework of input generation and electrical models #464

Merged
merged 209 commits into from
Nov 2, 2021
Merged
Changes from 1 commit
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
af2c4dd
[CC] added Jean line
Apr 26, 2021
4640629
[WP] Added my name
PG59 Apr 26, 2021
1b83bc0
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
PG59 Apr 26, 2021
25b88cf
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
Apr 26, 2021
8454142
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
Apr 26, 2021
3e89cbb
[WP] Skin effect computation for stator winding (square and round wires)
PG59 Apr 29, 2021
87a0a08
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
PG59 Apr 29, 2021
5b24f38
[NF] Computation of skin effect for rectangular and round wires
PG59 Apr 29, 2021
ef8d335
[BC] Multiplication mistake
PG59 Apr 29, 2021
1f884ac
[BC] power error solved
PG59 Apr 29, 2021
b7810bf
[CC] cleaning code for better comprehension
PG59 Apr 30, 2021
2e91a4e
[WP] EEC file LSRPM
May 28, 2021
ab10c1b
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
May 28, 2021
5994e78
[WP] Two new random switching frequency strategies are added in Pylee…
Jul 27, 2021
c981ecf
[WP] Fix bugs of random PWM
Jul 27, 2021
8fac2cf
[WP] Random amplitude modulation (one type of random PWM)
Jul 28, 2021
505b467
Merge branch 'master' of https://github.com/EOMYS/pyleecan into EEC
BonneelP Aug 2, 2021
2fc5064
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
Aug 2, 2021
525b6ea
[CC] Test structure
BonneelP Aug 2, 2021
e9918ff
[NF] comp_BEMF_harmonics and comp_skin_effect_round_wire
Aug 4, 2021
8945abd
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
Aug 5, 2021
934685b
[WP] building of ELUT classes
Aug 5, 2021
d1d8663
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
Aug 5, 2021
ee9da62
[WiP] Add InputVoltage and transform InputCurrent to children of Inpu…
EmileDvs Aug 5, 2021
e4f7f85
[CC] remove solve_EEC_freq.py
Aug 5, 2021
4c0ea6e
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
Aug 5, 2021
9b7d7c9
[BC] Various corrections in gen_input and run()
EmileDvs Aug 5, 2021
e2ed032
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
EmileDvs Aug 5, 2021
56ae915
[WP]comp_BEMF_harmonics fix bugs
Aug 6, 2021
46febc2
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
Aug 6, 2021
4e8319c
[WP]fix bug comp_skin_effect_round_wire
Aug 6, 2021
44cdc9e
[WP] test of the SCIM equivalent circuit (fundamental)
Aug 6, 2021
92b55a5
[WP] EEC reworking for SCIM & PMSM, test_EEC_ELUT_SCIM_001 aims at so…
Aug 17, 2021
90d819c
[WP] skin effect PG
PG59 Aug 17, 2021
9a96826
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
PG59 Aug 17, 2021
d22d0d6
[CO] Rework periodicities cf issue #418
EmileDvs Aug 25, 2021
bbe5396
[CO] Set ending time at p/felec if Nrev is None cf issue #418
EmileDvs Aug 25, 2021
7b8c8f7
[CO] Introduce axes_dict as explained in issue #418
EmileDvs Aug 25, 2021
c68e634
[CO] Factorize comp_periodicity_spatial in Lamination class with a mo…
EmileDvs Aug 25, 2021
fe34039
[BC] Solve bugs due to new comp_periodicity methods
EmileDvs Aug 25, 2021
572c9ee
[BC] Correct upper letter in keys in axes_dict
EmileDvs Aug 25, 2021
37f3a4b
[BC] Adding methods
BenjaminGabet Sep 1, 2021
13d6bcd
Adding methods to csv
BenjaminGabet Sep 2, 2021
3e795d0
Updating csv
BenjaminGabet Sep 2, 2021
7f1fd9b
[BC] Correct bug in comp_connection_mat if Nt_coil is None, dont pass…
EmileDvs Sep 2, 2021
cec0fbc
Merge branch 'master' of https://github.com/Eomys/pyleecan into EEC
Sep 30, 2021
e72b6c3
[BC] fixing bugs due to merge
Sep 30, 2021
934dfb6
[WP] fixing bugs due to merge
Sep 30, 2021
408a001
[WP] enhancing methods to compute axes
Sep 30, 2021
5f7b575
[WP] debugging after merge
Sep 30, 2021
fde1a19
[WiP] rework of comp_axes methods
Oct 1, 2021
3ce6890
[CC] Update tests with latest changes
EmileDvs Oct 1, 2021
5e4fea0
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
EmileDvs Oct 1, 2021
8ef80e7
[WP] integrate new normalization syntax from SciDataTool
Oct 5, 2021
d895f53
[BC] axes_dict is now stored in Outgeo
Oct 5, 2021
b6b00d9
[BC] fix Nslot_shift_wind value
Oct 5, 2021
cc5fb5b
[BC] Correct tests + InputFlux now inherits from InputCurrent
EmileDvs Oct 5, 2021
bd729bc
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
EmileDvs Oct 5, 2021
73e3228
[BC] fix tolerance in test (more accurate)
Oct 5, 2021
4dffc33
[CO] activate normalization to compute angle rotor
Oct 6, 2021
dd21b3f
[CO] Precompute the current before comp_flux_airgap
RaphaelPile Oct 6, 2021
59ee70b
[BC] Correct condition
RaphaelPile Oct 6, 2021
f5e865f
[CC]
RaphaelPile Oct 6, 2021
6c0248a
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
RaphaelPile Oct 6, 2021
e0a0900
[CC] remove Time from Outmag
Oct 6, 2021
e8bc3af
Merge branch 'EEC' of https://github.com/Eomys-public/pyleecan into EEC
Oct 6, 2021
665ce6b
[CO] Add small tolerance
RaphaelPile Oct 6, 2021
134cd62
[CO] Add small tolerance + [BC] Now robust to all type of SDT object
RaphaelPile Oct 6, 2021
b65a17e
[BC] Do not replace Is if enforced
RaphaelPile Oct 6, 2021
0d358b0
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
RaphaelPile Oct 6, 2021
dc433d1
[WiP] Test to generate ELUT for PMSM
EmileDvs Oct 6, 2021
0c65340
[WP] methods to compute ELUT from simu
Oct 6, 2021
66f3f0f
[CO] Rework comp_axes, Input.comp_axes() can now generate periodic axes
EmileDvs Oct 6, 2021
fb6fd95
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
EmileDvs Oct 6, 2021
e959a6d
[BC] better check periodicity
EmileDvs Oct 6, 2021
7a58ed1
[BC] Correct tests
EmileDvs Oct 7, 2021
b9d06db
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
RaphaelPile Oct 7, 2021
ba74a6f
[BC] compute angle rotor on smallest period, then use SciDataTool to …
Oct 7, 2021
490d417
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
RaphaelPile Oct 7, 2021
47c8fcb
[CO] Move comp_I_mag as Magnetics method
RaphaelPile Oct 7, 2021
a833ae2
[CO] use Norm_affine if Nr is constant
Oct 7, 2021
b75a7b1
[WiP] PostELUT object
Oct 7, 2021
dbf77dc
Merge branch 'EEC' of https://github.com/Eomys-public/pyleecan into EEC
Oct 7, 2021
fcb3dc0
[CO] split PMSM/SCIM cases
Oct 7, 2021
71e53f6
[WiP] PostELUT methods
Oct 7, 2021
dc7cfb8
Merge branch 'master' of https://github.com/Eomys/pyleecan into EEC
EmileDvs Oct 7, 2021
15c097a
Merge branch 'EEC' of https://github.com/Eomys-public/pyleecan into EEC
Oct 7, 2021
82c4e52
[CC] gen classes
EmileDvs Oct 7, 2021
c11dfe9
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
EmileDvs Oct 7, 2021
d491f09
[BC] Correct periodicity test
EmileDvs Oct 7, 2021
efda7d2
[BC] Correct angle rotor methods to return angle_rotor in radians
EmileDvs Oct 7, 2021
bac31f3
[CC] add missing method to csv
Oct 7, 2021
c8b51fc
[WiP] Test for ELUT PMSM calculation
EmileDvs Oct 7, 2021
bc85d18
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
EmileDvs Oct 7, 2021
fdff1bc
[BC] Correct tests
EmileDvs Oct 7, 2021
431f8fa
[CC] Skip EEC tests
EmileDvs Oct 7, 2021
723d482
[CC] Clean import in test
EmileDvs Oct 7, 2021
34ccf3b
[CO] Permute phase and Time axes in current data objects
EmileDvs Oct 7, 2021
86333ac
[CC] Check if machine is periodic before warning that periodicty has …
EmileDvs Oct 7, 2021
d0b8cc4
[BC] solve bug due to phase/time inversion in current object
EmileDvs Oct 8, 2021
6f91b00
[BC] axes order
RaphaelPile Oct 8, 2021
764ed08
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
RaphaelPile Oct 8, 2021
d8eece8
[BC] axes order
RaphaelPile Oct 8, 2021
48c54ad
[CC] Argument qs added to ImportGenPWM class + better docstring for c…
Oct 8, 2021
025f9b7
[CC] get_data method from ImportGenPWM returns time vector
Oct 8, 2021
35c447a
[BC] type of argument corrected for ImportGenPWM
Oct 8, 2021
bf00c06
[CO] Split comp_axes i nseveral methods
EmileDvs Oct 10, 2021
18d6422
[NF] Extend DQ transform to DQH
EmileDvs Oct 10, 2021
3d129e9
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
EmileDvs Oct 10, 2021
59ca5e0
[WiP] Modifications in ELUT_PMSM to prepare interpolation of phi_dqh
EmileDvs Oct 11, 2021
0374b8e
[BC] better handling of time vector in ImportGenPWM
Oct 11, 2021
c369849
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
Oct 11, 2021
acab1db
[WiP] rework LUT architecture
Oct 11, 2021
404530c
Merge branch 'EEC' of https://github.com/Eomys-public/pyleecan into EEC
Oct 11, 2021
211028f
[BC] Remove rot_dir from coordinate_transformation.py as rot_dir is a…
EmileDvs Oct 11, 2021
526a5f0
[WiP] ELUT methods
Oct 11, 2021
7365b95
Merge branch 'EEC' of https://github.com/Eomys-public/pyleecan into EEC
Oct 11, 2021
ca4fdc4
[CC] Call methods of LamSlotWind in LamSlotMultiWind
EmileDvs Oct 11, 2021
77abcb2
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
EmileDvs Oct 11, 2021
9db552a
[BC] Don't put symmetries if period=1 and not anti periodic
EmileDvs Oct 11, 2021
1bc8cc5
[WiP] LUT interpolation
Oct 12, 2021
3330077
Merge branch 'EEC' of https://github.com/Eomys-public/pyleecan into EEC
Oct 12, 2021
d4bbea7
[BC] need machine to compute unit mmf -> test on Prius
Oct 12, 2021
537bc7b
[BC] fix get_Is tests
Oct 12, 2021
c1f3d1b
[BC] fix mmf unit computation for async machines
Oct 12, 2021
b4cb7dd
[BC] use MMF symbol to get result
Oct 12, 2021
ecf3c4b
[BC] remove condition on conductor
Oct 12, 2021
acc3304
[BC] fill periodicities if None
Oct 12, 2021
cba21e2
[BC] restore previous test
Oct 12, 2021
af17fdc
[CC] more robust way to compute rot_dir
Oct 12, 2021
dec3a0f
[BC] fix plot command
Oct 12, 2021
0a167d6
[BC] use MMF.symbol
Oct 12, 2021
980e41a
[NF] compute harmonic flux linkage
Oct 12, 2021
516ce46
[CC] docstrings
Oct 12, 2021
7f56053
Merge branch 'master' of https://github.com/EOMYS/pyleecan into EEC
BonneelP Oct 13, 2021
6abad71
[WiP] create PWM signal in InputVoltage
Oct 13, 2021
1856638
Merge branch 'EEC' of https://github.com/Eomys-public/pyleecan into EEC
Oct 13, 2021
f05db57
[CO] store Ud_ref and Uq_ref in outelec
Oct 13, 2021
ef2b742
[CC] check angle_elec + remove plot
Oct 13, 2021
57d48e3
[BC] fix Us_harm computation
Oct 13, 2021
34a6dab
[NF] add test to Us_harm computation (PWM)
Oct 13, 2021
07fed82
[CC] Us symbol
Oct 13, 2021
3b31cc3
[WIP] Using Simulation/MagFEMM for FluxLinkFEMM.csv and IndMagFEMM.csv
BonneelP Oct 13, 2021
4904c80
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
BonneelP Oct 13, 2021
1d5472e
[BC] Correcting tests
BonneelP Oct 13, 2021
c2dcb2a
[WIP] OP object
BonneelP Oct 14, 2021
3ea3301
[WIP] OP in gen_input
BonneelP Oct 14, 2021
eb82e0a
[WiP] replace N0 with get_N0 + fix class problems
Oct 14, 2021
b4787f4
[BC] slip_ref is now in OP
Oct 14, 2021
e3c29f7
[NF] add get_slip method
Oct 14, 2021
8e6d257
[NF] add get_slip method
Oct 14, 2021
e8b7497
[WIP] Using OP in the code
BonneelP Oct 14, 2021
0dcf63f
Merge branch 'EEC' of https://github.com/EOMYS-Public/pyleecan into EEC
BonneelP Oct 14, 2021
25b3fd4
[CC] regenerated classes
Oct 14, 2021
2a41f66
[CC] do not show fig
Oct 14, 2021
710df15
[BC] use new get_Id_Iq method
Oct 14, 2021
1d655b9
[BC] for offline mmf unit computation
Oct 14, 2021
11c92a3
[WiP] rework Electrical module run
Oct 14, 2021
c09fffa
[WiP] new analytical EEC
Oct 15, 2021
14abc73
[WiP] introducing OP into Input objects
Oct 15, 2021
70514ac
[BC] add OP into InputCurrent
Oct 15, 2021
96dc59f
[BC] add N0 as parameter + use OP in input
Oct 15, 2021
0ea91f7
[CO] use periodicity to speed up
Oct 15, 2021
0c27d94
[CO] use periodicity
Oct 15, 2021
94ce5fd
[BC] felec is now included in OP
Oct 18, 2021
2768391
[CO] store Us_PWM and get_Us_harm method
Oct 19, 2021
4fc5c96
[CO] option to get Us_harm in DQH frame
Oct 19, 2021
db88906
[CO] add parameters to GenPWM + adjust number of points to have perio…
Oct 20, 2021
59371bc
[CC] remove plots
Oct 20, 2021
4c8f4c9
[BC] keep time axis if no additional point
Oct 20, 2021
85aff99
[CO] move star coupling correction into ImportGenPWM
Oct 20, 2021
b9d2015
[BC] typo in parameter names
Oct 21, 2021
d419ba6
[BC] adapt test to new OP object
Oct 21, 2021
5b4a8b1
[CO] store Iabc(f)
Oct 21, 2021
2d33b8e
[BC] fix typo in axis name
Oct 22, 2021
ea47de7
[CC] code cleaning
Oct 22, 2021
6710dd9
[BC] add f=0Hz before ifft for consistent time vector
Oct 22, 2021
6364d6a
[CC] Add docstrings to current/voltage getters + clean get_US method
EmileDvs Oct 22, 2021
5a88ea7
[CO] Improve validation tests for EEC_PMSM
EmileDvs Oct 24, 2021
27e331b
[BC] Add - in current phase shift + rotor now rotates with same sign …
EmileDvs Oct 24, 2021
85ce675
[CO] Add plot maps in tests + finish MTPA validation case
EmileDvs Oct 24, 2021
1ffe23a
[WiP] Set rot_dir=-1 by default to get fundamental mmf at (fs,p) + in…
EmileDvs Oct 27, 2021
df26e60
[CO] Better account for stator mmf rotating direction by introducing …
EmileDvs Oct 27, 2021
39d0ae7
[BC] Revert last commit: mean is calculated directly instead of calli…
EmileDvs Oct 27, 2021
1861b90
[CC] Minor updates on comp_angle_rotor and get_angle_rotor methods th…
EmileDvs Oct 27, 2021
746dc40
[CC] few code cleaning
EmileDvs Oct 27, 2021
6c330f9
[CO] Add p as argument of get_N0 and get_felec if machine is None
EmileDvs Oct 27, 2021
dcebc38
[CO] Improve test_dqh_transformation with different configurations ot…
EmileDvs Oct 27, 2021
6e436bd
[CC] Rename angle_offset_initial to angle_rotor_initial
EmileDvs Oct 27, 2021
9e85625
[CC] Remove angle_rotor from InputVoltage and OutElec classes since a…
EmileDvs Oct 27, 2021
2bdb8f4
Merge branch 'master' of https://github.com/Eomys/pyleecan into EEC
EmileDvs Oct 27, 2021
a6f97ca
[BC] Correct tests
EmileDvs Oct 27, 2021
b42aa1b
[BC] Add p to OPslip getters
EmileDvs Oct 27, 2021
bdaed38
[BC] Correct tests
EmileDvs Oct 27, 2021
6c9bf5b
[BC] Correct winding test
EmileDvs Oct 27, 2021
0a9b5a8
[CC] Remove -rot_dir in front of initial angle
EmileDvs Oct 27, 2021
ab3fb97
[BC] Store B in outmag only if Br/Bt/Bz are in out_dict
EmileDvs Oct 28, 2021
d607474
[CC] Put conventions in init.py of Input methods
EmileDvs Oct 28, 2021
b24c7f5
[CC] add phase_dir in comp_mmf_unit and comp_mmf_dir
EmileDvs Oct 28, 2021
35a6bec
Merge branch 'master' of https://github.com/Eomys/pyleecan into EEC
EmileDvs Oct 29, 2021
da27ac8
[CO] Reorganize current_dir and phase_dir in InputVoltage/OutElec
EmileDvs Oct 29, 2021
bf79608
[BC] Correct tests due to introduction of current_dir and rot_dir
EmileDvs Oct 30, 2021
42f5d80
[CC] Reorganize/clean some tests
EmileDvs Oct 30, 2021
b2a01ba
[BC] correct test
EmileDvs Oct 30, 2021
726e256
[CC] improve test of model periodicity in models
EmileDvs Nov 2, 2021
3d5f982
[CC] Before merging EEC into master
EmileDvs Nov 2, 2021
356b97b
Merge branch 'master' of https://github.com/Eomys/pyleecan into EEC
EmileDvs Nov 2, 2021
b20ecb3
[BC] correct test with new OPdq object
EmileDvs Nov 2, 2021
c608619
[CC] comment figures in test
EmileDvs Nov 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
# Conflicts:
#	test.txt
PG59 committed Apr 29, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 87a0a088b4e51e3c3a770a7937a743e7b63524e6
90 changes: 90 additions & 0 deletions Tests/Methods/Import/test_ImportGenPWM.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# -*- coding: utf-8 -*-

from os import mkdir
from os.path import isdir, join

import matplotlib.pyplot as plt
import pytest
from numpy import linspace
from pyleecan.Classes.ImportGenPWM import ImportGenPWM
from Tests import save_plot_path as save_path

save_path = join(save_path, "Import")
if not isdir(save_path):
mkdir(save_path)


def testSPWM():
"""Check """
# fs, duration, f,fmax,fmode, fswimode,fswi, fswi_max,typePWM, Vdc1, U0, type_carrier
for ii in range(2):
for jj in range(2):
for hh in range(4):
test_obj = ImportGenPWM(
fs=96000,
duration=2,
f=1,
fmax=5,
fmode=ii,
fswimode=jj,
fswi=10,
fswi_max=30,
typePWM=8,
Vdc1=2,
U0=0.77,
type_carrier=hh,
)
# Generate the signal
time = linspace(start=0, stop=2, num=2 * 96000, endpoint=True)
result = test_obj.get_data()

# Plot/save the result
plt.close("all")
plt.plot(time, result[:, 1])
fig = plt.gcf()
fig.savefig(
join(
save_path,
"test_ImportGenPWM_"
+ str(ii)
+ "_"
+ str(jj)
+ "_"
+ str(hh)
+ "_SPWM.png",
)
)


def testDPWM():
"""Check """
for ii in range(9):
# fs, duration, f,fmax,fmode, fswimode,fswi, fswi_max,typePWM, Vdc1, U0, type_carrier
test_obj = ImportGenPWM(
fs=96000,
duration=2,
f=1,
fmax=5,
fmode=0,
fswimode=0,
fswi=10,
fswi_max=30,
typePWM=ii,
Vdc1=2,
U0=0.77,
type_carrier=0,
)
# Generate the signal
time = linspace(start=0, stop=2, num=2 * 96000, endpoint=True)
result = test_obj.get_data()

# Plot/save the result
plt.close("all")
plt.plot(time, result[:, 1])
fig = plt.gcf()
fig.savefig(join(save_path, "test_ImportGenPWM_" + str(ii) + ".png"))


if __name__ == "__main__":
testDPWM()
testSPWM()
130 changes: 130 additions & 0 deletions pyleecan/Classes/Class_Dict.json
Original file line number Diff line number Diff line change
@@ -2677,6 +2677,7 @@
],
"daughters": [
"ImportGenMatrixSin",
"ImportGenPWM",
"ImportGenToothSaw",
"ImportGenVectLin",
"ImportGenVectSin",
@@ -2809,6 +2810,134 @@
}
]
},
"ImportGenPWM": {
"constants": [
{
"name": "VERSION",
"value": "1"
}
],
"daughters": [],
"desc": "To generate a PWM voltage matrix",
"is_internal": false,
"methods": [
"get_data"
],
"mother": "ImportMatrix",
"name": "ImportGenPWM",
"package": "Import",
"path": "pyleecan/Generator/ClassesRef/Import/ImportGenPWM.csv",
"properties": [
{
"desc": "sample frequency",
"max": "",
"min": "0",
"name": "fs",
"type": "float",
"unit": "Hz",
"value": 96000
},
{
"desc": "duration",
"max": "",
"min": "0",
"name": "duration",
"type": "int",
"unit": "s",
"value": 10
},
{
"desc": "fundamental frequency",
"max": "",
"min": "0",
"name": "f",
"type": "float",
"unit": "Hz",
"value": 50
},
{
"desc": "maximal fundamental frequency",
"max": "",
"min": "0",
"name": "fmax",
"type": "float",
"unit": "Hz",
"value": 0
},
{
"desc": "speed mode: 0: Fixed speed, 1: Variable speed",
"max": "",
"min": "0",
"name": "fmode",
"type": "int",
"unit": "",
"value": 0
},
{
"desc": "switch mode: 0:Fixed fswi, 1:Variable fswi",
"max": "",
"min": "",
"name": "fswimode",
"type": "int",
"unit": "",
"value": 0
},
{
"desc": "switching frequency",
"max": "",
"min": "",
"name": "fswi",
"type": "float",
"unit": "Hz",
"value": 1000
},
{
"desc": "maximal switching frequency",
"max": "",
"min": "",
"name": "fswi_max",
"type": "int",
"unit": "Hz",
"value": 3000
},
{
"desc": "0: GDPWM 1: DPWMMIN 2: DPWMMAX 3: DPWM0 4: DPWM1 5: DPWM2 6: DPWM3 7: SVPWM 8: SPWM",
"max": "",
"min": "",
"name": "typePWM",
"type": "int",
"unit": "",
"value": 8
},
{
"desc": "DC BUS voltage",
"max": "",
"min": "",
"name": "Vdc1",
"type": "float",
"unit": "V",
"value": 2
},
{
"desc": "reference voltage",
"max": "",
"min": "",
"name": "U0",
"type": "float",
"unit": "V",
"value": 1
},
{
"desc": "1: forward toothsaw carrier 2: backwards toothsaw carrier 3: toothsaw carrier else: symetrical toothsaw carrier",
"max": "",
"min": "",
"name": "type_carrier",
"type": "int",
"unit": "",
"value": 0
}
]
},
"ImportGenToothSaw": {
"constants": [
{
@@ -3053,6 +3182,7 @@
],
"daughters": [
"ImportGenMatrixSin",
"ImportGenPWM",
"ImportGenToothSaw",
"ImportGenVectLin",
"ImportGenVectSin",
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.