10000 Converter and Losses in GUI by BonneelP · Pull Request #684 · Eomys/pyleecan · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Converter and Losses in GUI #684

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

Merged
merged 284 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
284 commits
Select commit Hold shift + click to select a range
ce67bf9
[WP] correction
Nov 21, 2023
f43d684
[WP] add Jupyter Notebook
Nov 21, 2023
37b89a1
{[WP] adding machine SCIM, and renaming rules
Nov 22, 2023
5f078c7
[NF] adding new slotW30
Nov 27, 2023
554406a
[DOC] Clean comments and docStrings
AdrienLeduqueEomys Nov 28, 2023
93da932
[WP] slotW30
Nov 28, 2023
ea39f20
[WP]
Nov 29, 2023
e298375
Merge branch 'Convertisseur' of https://github.com/EOMYS-Public/pylee…
Nov 29, 2023
b54b3f7
[WP] correction PR
Nov 29, 2023
fed95a1
[WP] Correction rules
Nov 30, 2023
c67b112
[WP] adding get_H1 to slotW14
Dec 1, 2023
a33283f
[WP] correction rules
Dec 1, 2023
c5191de
[WP] correction slotW30
Dec 4, 2023
3878b8e
Merge branch 'Convertisseur' of https://github.com/EOMYS-Public/pylee…
10000 Dec 4, 2023
c1c4423
[BC] correction log, and error
Dec 4, 2023
b08821b
[WP] correction to convert SCIM
Dec 4, 2023
9d6dea8
[WP] correction slotW11 if slot is into rotor and is_cstt_tooth
Dec 4, 2023
28fdba1
[WP] correction rules
Dec 4, 2023
8be52f4
[WP]
Dec 4, 2023
6417806
[WP]
Dec 4, 2023
14e6af4
Merge branch 'Convertisseur' of https://github.com/EOMYS-Public/pylee…
Dec 4, 2023
6479b71
[WP] correction rules
Dec 4, 2023
8d948c7
[NF] adding new slotW62
Dec 5, 2023
989613e
Merge branch 'Eomys:master' into Converter_WRSM
clementd08 Dec 5, 2023
f24effa
[NF] adding new slotW63
Dec 6, 2023
368e590
Merge branch 'Converter_WRSM' of https://github.com/EOMYS-Public/pyle…
Dec 6, 2023
30dd8bb
[WP] correction geometry for internal slotW11
Dec 7, 2023
66ca601
[WP] add rule and selection for machine WRSM
Dec 7, 2023
7669d52
[WP] test correction
Dec 8, 2023
5af7a1c
[WP) add test, and correction notebook
Dec 8, 2023
d0d4171
[WP]
Dec 8, 2023
fb25d0f
[CC] Improve comments
AdrienLeduqueEomys Dec 8, 2023
738ed71
Merge branch 'Convertisseur' of github.com:EOMYS-Public/pyleecan into…
AdrienLeduqueEomys Dec 8, 2023
c5a339e
[WP] correction
Dec 11, 2023
cf0ca67
Merge branch 'Convertisseur' of https://github.com/EOMYS-Public/pylee…
Dec 11, 2023
e97faa4
[BC) correction jupyter notebook
Dec 11, 2023
33b8275
[WP] Refacto
AdrienLeduqueEomys Dec 11, 2023
c683595
[WP] rename all rules and correction duct and notch
Dec 11, 2023
ef6960b
[WP] correction notch/duct
Dec 12, 2023
f293798
[WP] fusion hole
Dec 12, 2023
49a2de6
[WP] correction select_magnet_rules
Dec 12, 2023
9b473e2
[WP] add rules for WRSM
Dec 12, 2023
9b154a8
[WP] correction select duct and hole
Dec 12, 2023
1681258
[WP]
Dec 12, 2023
5d63729
[WP] Cleaning code
AdrienLeduqueEomys Dec 12, 2023
2c5c7d0
Merge branch 'Convertisseur' of github.com:EOMYS-Public/pyleecan into…
AdrienLeduqueEomys Dec 12, 2023
ca7b9f2
Merge branch 'Converter_WRSM' of https://github.com/EOMYS-Public/pyle…
Dec 12, 2023
deedcb4
[WP] Cleanning code
AdrienLeduqueEomys Dec 12, 2023
4382239
[WP] add test
Dec 12, 2023
08d683d
[WP] correction slotW14
Dec 12, 2023
074be5e
[WP] add conductor and rules winding
Dec 12, 2023
0b5ef01
[WP] Cleaning code
AdrienLeduqueEomys Dec 12, 2023
2b66614
Merge branch 'Convertisseur' of github.com:EOMYS-Public/pyleecan into…
AdrienLeduqueEomys Dec 12, 2023
701cf8f
[WP] add test if h1 is rad and modification notebook
Dec 13, 2023
7863064
Merge branch 'Convertisseur' of https://github.com/EOMYS-Public/pylee…
Dec 13, 2023
9d8ad3d
[WP] notebook
Dec 13, 2023
ba21b10
[WP] Notebook improvement
AdrienLeduqueEomys Dec 13, 2023
ba687bd
[WP] notebook
Dec 13, 2023
8025bbe
[BC] test rule complex add notch
Dec 13, 2023
7ae3dd5
[WP] Add comments
AdrienLeduqueEomys Dec 13, 2023
7215101
Merge branch 'Convertisseur' of github.com:EOMYS-Public/pyleecan into…
AdrienLeduqueEomys Dec 13, 2023
3232d47
[BC] correction test
Dec 13, 2023
782a42f
Merge branch 'Convertisseur' of https://github.com/EOMYS-Public/pylee…
Dec 13, 2023
f97e3ab
Merge pull request #18 from EOMYS-Public/Convertisseur
AdrienLeduqueEomys Dec 13, 2023
724afd4
Merge branch 'master2' of https://github.com/EOMYS-Public/pyleecan in…
Dec 13, 2023
ddae374
[WP] renaming rules rotor
Dec 13, 2023
0496fc4
[BC] correction for slotW30
Dec 13, 2023
4ea9d29
Merge branch 'Converter_SCIM' of https://github.com/EOMYS-Public/pyle…
Dec 13, 2023
1ff7023
[WP] correction slot rotor
clementd08 Dec 13, 2023
13c6e59
[WP] add test R1=0 and R2=0
clementd08 Dec 14, 2023
4e50e60
[WP] correction test slotW11
clementd08 Dec 14, 2023
c04fd42
Merge branch 'SlotW62' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Dec 14, 2023
bea55c9
Merge branch 'SlotW63' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Dec 14, 2023
9c80c02
[WP] correction test and correction slotW11
clementd08 Dec 14, 2023
71b3eab
[WP] correction slotW62
clementd08 Dec 14, 2023
946dd52
[WP] correction Test_SlotW62_meth
clementd08 Dec 14, 2023
eb0a990
Merge branch 'Converter_SCIM' of https://github.com/EOMYS-Public/pyle…
clementd08 Dec 14, 2023
ec22163
[WP] correction slotW11
clementd08 Dec 14, 2023
8f99b79
Merge branch 'SlotW62' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Dec 14, 2023
5a61cb0
[WP] correction slotW63
clementd08 Dec 14, 2023
9a3b7cd
[WP]
clementd08 Dec 14, 2023
b60bddd
Merge branch 'SlotW63' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Dec 14, 2023
1b103e0
[WP] pull
clementd08 Dec 14, 2023
ef2989b
Merge branch 'Converter_WRSM' of https://github.com/EOMYS-Public/pyle…
clementd08 Dec 14, 2023
2e9ed72
[WP] add nex configuration for slotW11 -> slot_W2
clementd08 Dec 15, 2023
2a797f2
[WP] prepare to review
clementd08 Dec 15, 2023
4a6f1c1
[WP] add slotW11_2 in converter
clementd08 Dec 15, 2023
cc9ea36
[BC] correction geometry
clementd08 Dec 15, 2023
15eddd4
Merge branch 'SlotW11_2' of https://github.com/EOMYS-Public/pyleecan …
clementd08 Dec 15, 2023
9bc8b72
Merge branch 'SlotW62' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Dec 15, 2023
082694f
Merge branch 'SlotW63' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Dec 15, 2023
c407c62
[WP] deleted test with mot
clementd08 Dec 15, 2023
4d4671e
[WP] correction test
clementd08 Dec 15, 2023
f95cdfe
[WP] add winding
clementd08 Dec 15, 2023
b525a52
Merge branch 'Converter_WRSM' of https://github.com/EOMYS-Public/pyle…
clementd08 Dec 15, 2023
5444fca
[WP] correction rul condtype11
clementd08 Dec 15, 2023
3a1d8b6
[WP] correction SlotW62, SlotW63
clementd08 Dec 18, 2023
3df699c
{DOC] Improve error message
AdrienLeduqueEomys Dec 18, 2023
4155eaf
[CC] Cleaning code
AdrienLeduqueEomys Dec 18, 2023
76da34a
[WP] correction review
clementd08 Dec 18, 2023
36652db
[WP] add test and chech
clementd08 Dec 19, 2023
614b886
[WP] add rotor bar for SCIM
clementd08 Dec 19, 2023
27b19f4
[WP] bar rules
clementd08 Dec 19, 2023
8e13646
[WP] test and check slotW30
clementd08 Dec 20, 2023
6325606
Merge branch 'Converter_SCIM' of https://github.com/EOMYS-Public/pyle…
clementd08 Dec 20, 2023
2b56c76
[WP] correction import
clementd08 Dec 20, 2023
3ffdaef
Merge branch 'SlotW11_2' of https://github.com/EOMYS-Public/pyleecan …
clementd08 Dec 20, 2023
4bcc204
[WP] add test and correction check
clementd08 Dec 20, 2023
06a497d
Merge branch 'SlotW62' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Dec 20, 2023
f462668
[úWP] add test and cadd posibility to have H2=0
clementd08 Dec 20, 2023
f0b8631
Merge branch 'SlotW63' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Dec 20, 2023
3a98118
[WP] correction and add test
clementd08 Dec 20, 2023
ba00a84
[WP] add converter for material
clementd08 Dec 21, 2023
9384807
[WP] add test and correction for material.
clementd08 Dec 22, 2023
1214481
[WP] correction rules
clementd08 Dec 22, 2023
84f2cba
[WP] correction test
clementd08 Jan 2, 2024
519cca9
Merge branch 'SlotW11_2' of https://github.com/EOMYS-Public/pyleecan …
clementd08 Jan 2, 2024
cd57e6c
[WP] correction Magnet reduction
clementd08 Jan 2, 2024
2623e5c
Merge branch 'Converter_SCIM' of github.com:EOMYS-Public/pyleecan int…
AdrienLeduqueEomys Jan 3, 2024
e3f3c82
Merge pull request #19 from EOMYS-Public/Converter_SCIM
AdrienLeduqueEomys Jan 3, 2024
5931405
Merge branch 'master2' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 3, 2024
bef7102
[WP] pull master 2 and apply black
clementd08 Jan 3, 2024
58945e5
[WP] correction review
clementd08 Jan 3, 2024
f889b92
Merge branch 'SlotW11_2' of https://github.com/EOMYS-Public/pyleecan …
clementd08 Jan 3, 2024
23e06a0
[WP] pull slotW11_2 and apply black
clementd08 Jan 3, 2024
27c9619
[WP] correction test for slotW11_2
clementd08 Jan 3, 2024
efa403d
[WP] add check
clementd08 Jan 3, 2024
cb26cdb
[wP] modification comment for GUI
clementd08 Jan 3, 2024
0a02332
[CC] Cleaning code
AdrienLeduqueEomys Jan 3, 2024
da82f19
[WP] add slotW11_2 GUI
clementd08 Jan 3, 2024
246b2ad
Merge branch 'SlotW11_2' of https://github.com/EOMYS-Public/pyleecan …
clementd08 Jan 3, 2024
cd58db9
[WP] correction geometry if W1 =W0
clementd08 Jan 3, 2024
3b412bc
Merge branch 'SlotW62' of github.com:EOMYS-Public/pyleecan into SlotW62
AdrienLeduqueEomys Jan 3, 2024
6b47117
[WP] add check if R1 =0
clementd08 Jan 4, 2024
54584a4
[WP] correction conversion for holeM57, and tapered slot/parallel slot
clementd08 Jan 4, 2024
2257915
[WP] Add GUI test for SlotW11_2
AdrienLeduqueEomys Jan 4, 2024
45dc362
[WP] review correction, add tests for slotW62
clementd08 Jan 4, 2024
ab0c2fa
Merge branch 'SlotW62' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 4, 2024
0a6716a
[WP] test if W0, H0,... =0
clementd08 Jan 4, 2024
1394081
Merge branch 'SlotW11_2' of https://github.com/EOMYS-Public/pyleecan …
clementd08 Jan 4, 2024
d062b2b
[WP]
clementd08 Jan 4, 2024
c2f91c8
Merge branch 'SlotW62' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 4, 2024
fe7c756
[WP] Check wether R1 > 0
AdrienLeduqueEomys Jan 4, 2024
3663d8e
Merge pull request #27 from EOMYS-Public/SlotW11_2
AdrienLeduqueEomys Jan 4, 2024
df6ffa5
Merge branch 'master2' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 4, 2024
cd06c24
Merge branch 'SlotW62' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 4, 2024
a8b96c7
[CC] Cleaning code
AdrienLeduqueEomys Jan 4, 2024
d502ee3
[BC] test correction
clementd08 Jan 4, 2024
1450258
Merge branch 'SlotW62' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 4, 2024
21aae60
Merge pull request #28 from EOMYS-Public/SlotW62
AdrienLeduqueEomys Jan 4, 2024
266539c
[WP] correction check
clementd08 Jan 4, 2024
c9c8e2b
[CC] Black
AdrienLeduqueEomys Jan 4, 2024
fa2650a
Merge branch 'master2' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 4, 2024
3cfec10
Merge branch 'master2' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 4, 2024
b5a1795
[WP] correction conversion wedge
clementd08 Jan 4, 2024
13df5ea
[CC] Cleaning code
AdrienLeduqueEomys Jan 4, 2024
bbaf6e5
CC] Cleaning code
AdrienLeduqueEomys Jan 4, 2024
8895a47
[WP] add comment
clementd08 Jan 4, 2024
224b15c
Merge branch 'SlotW63' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 4, 2024
51d273f
Merge branch 'master2' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 4, 2024
49f7a93
Merge pull request #29 from EOMYS-Public/SlotW63
AdrienLeduqueEomys Jan 4, 2024
353b598
Merge branch 'master2' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 4, 2024
00ae2a5
[WP] add check for slotW29
clementd08 Jan 4, 2024
49d213f
[CC] Cleaning code
AdrienLeduqueEomys Jan 5, 2024
1c994e6
[WP] review correction
clementd08 Jan 5, 2024
5a80e46
Merge branch 'Converter_WRSM' of https://github.com/EOMYS-Public/pyle…
clementd08 Jan 5, 2024
f7edc5c
[CC] Code cleaning
AdrienLeduqueEomys Jan 5, 2024
a32ffd6
[WP] Fixed ohter method name
AdrienLeduqueEomys Jan 5, 2024
86acd55
Merge pull request #30 from EOMYS-Public/Converter_WRSM
AdrienLeduqueEomys Jan 5, 2024
abe6c09
Merge branch 'master2' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 5, 2024
01c3d96
[BC] correction FEMM
clementd08 Jan 5, 2024
e81d598
[CC] cleaning import, and add comment
clementd08 Jan 10, 2024
5e34c47
[WP] correction rules
clementd08 Jan 10, 2024
3792d9e
Merge branch 'Converter_winding' of https://github.com/EOMYS-Public/p…
clementd08 Jan 10, 2024
4269098
[WP]
clementd08 Jan 10, 2024
8ff117a
Merge branch 'Converter_material' of https://github.com/EOMYS-Public/…
clementd08 Jan 10, 2024
93c523c
Merge branch 'Converter_skew' of https://github.com/EOMYS-Public/pyle…
clementd08 Jan 10, 2024
9e55fd6
[WP] correction rule holeM63
clementd08 Jan 10, 2024
10861a7
[CC] correction import
clementd08 Jan 10, 2024
5bfc54b
[WP] correction test
clementd08 Jan 11, 2024
9cc32ef
[WP] correction slotW29
clementd08 Jan 11, 2024
6c56cb6
[WP] correction slotM15
clementd08 Jan 11, 2024
5a7296b
[WP] correction rule complex slotM15
clementd08 Jan 11, 2024
c7b7082
[WP] add test rulecomplex
clementd08 Jan 11, 2024
8602ee1
[WP] add rulecomplex
clementd08 Jan 11, 2024
9f652c9
[WP] correction test
clementd08 Jan 11, 2024
d2c6583
[WP] correction converter slotM15
clementd08 Jan 11, 2024
2789dbe
[WP] add losses GUI
clementd08 Jan 11, 2024
770fba0
[WP] add losses in GUI
clementd08 Jan 12, 2024
99c061d
[WP] correction review
clementd08 Jan 16, 2024
da2a811
[WP] add test for loss
clementd08 Jan 16, 2024
3fcd69b
[WP] correction test for losses
clementd08 Jan 16, 2024
39ba6f3
Merge branch 'Converter_winding' of https://github.com/EOMYS-Public/p…
clementd08 Jan 16, 2024
70b62fa
[WP] correction test losses
clementd08 Jan 16, 2024
d135ede
[WP] correction
clementd08 Jan 16, 2024
2dd81b5
Merge pull request #31 from EOMYS-Public/Converter_winding
clementd08 Jan 17, 2024
e96a8b8
[WP] correction GUI, and modification file plot_losses to save graph …
clementd08 Jan 19, 2024
7f17a87
[WP] add test for simu
clementd08 Jan 22, 2024
4b54483
[WP] correction review
clementd08 Jan 23, 2024
f24b4bc
Merge branch 'Converter_material' of https://github.com/EOMYS-Public/…
clementd08 Jan 23, 2024
6f495ee
Merge branch 'Converter_skew' of https://github.com/EOMYS-Public/pyle…
clementd08 Jan 23, 2024
61d3423
[WP] correction select material
clementd08 Jan 23, 2024
9590415
Merge branch 'Converter_material' of https://github.com/EOMYS-Public/…
clementd08 Jan 23, 2024
30f2637
[WP] correction docstring
clementd08 Jan 23, 2024
7b8d569
[CC] correction typo
clementd08 Jan 23, 2024
9ad40fa
Merge branch 'Converter_material' of https://github.com/EOMYS-Public/…
clementd08 Jan 23, 2024
61eca9c
[WP] test correction
clementd08 Jan 23, 2024
1137d6c
Merge pull request #34 from EOMYS-Public/Converter_material
clementd08 Jan 23, 2024
bc81d64
Merge pull request #35 from EOMYS-Public/Converter_skew
clementd08 Jan 23, 2024
5a73605
Merge branch 'Converter_skew' of https://github.com/EOMYS-Public/pyle…
clementd08 Jan 23, 2024
153a250
[WP] correction curve loss
clementd08 Jan 24, 2024
414f51a
[WP] possibility to select all file, if you want to load a machine
clementd08 Jan 24, 2024
d3ed268
[WP] test correction
clementd08 Jan 24, 2024
39c0918
[WP] add comment and docstring
clementd08 Jan 24, 2024
0383644
[WP] modification notebook
clementd08 Jan 25, 2024
ce4d0a0
[WP] correction review
clementd08 Jan 25, 2024
688db7e
Merge branch 'Converter_correction' of https://github.com/EOMYS-Publi…
clementd08 Jan 30, 2024
55f2d2c
[CC] correction warning and cleaning code
clementd08 Jan 30, 2024
0c9ca15
Merge branch 'Converter_correction' of https://github.com/EOMYS-Publi…
clementd08 Jan 30, 2024
4a5e130
[CC] correction log
clementd08 Jan 30, 2024
8ecd07c
Merge branch 'Converter_correction' of https://github.com/EOMYS-Publi…
clementd08 Jan 30, 2024
8a46aee
Merge pull request #36 from EOMYS-Public/Converter_correction
clementd08 Jan 30, 2024
fb9a0b0
Merge branch 'master2' of https://github.com/EOMYS-Public/pyleecan in…
clementd08 Jan 30, 2024
f1869c7
[WP] correction review without mesh solution
clementd08 Jan 31, 2024
8c75394
[WP] add method to save mesh
clementd08 Feb 2, 2024
19a1e73
[WP] pull master
clementd08 Feb 2, 2024
52ac163
Merge branch 'master' of https://github.com/Eomys/pyleecan into Loss
clementd08 Feb 2, 2024
4641956
[WP] add possibility to save mesh solution
clementd08 Feb 2, 2024
72af8fa
[WP] add save in GUI for mesh solution
clementd08 Feb 5, 2024
cf11b0f
Merge branch 'master' of https://github.com/Eomys/pyleecan into master2
BonneelP Feb 5, 2024
20b3f58
Merge branch 'master2' of https://github.com/EOMYS-Public/pyleecan in…
BonneelP Feb 5, 2024
53476f5
[WP] review correction
clementd08 Feb 5, 2024
aa1fef7
Merge branch 'Loss' of https://github.com/EOMYS-Public/pyleecan into …
clementd08 Feb 5, 2024
ff4fbe3
[WP] add method to save mesh vtk
clementd08 Feb 6, 2024
afaad01
[WP] correction
clementd08 Feb 6, 2024
f7ffd10
[WP]
clementd08 Feb 6, 2024
9cdabdd
[WP] Add method save_vtk for obj MEshVTK
clementd08 Feb 7, 2024
385a3b9
[WP] correction test
clementd08 Feb 7, 2024
e77881f
[WP] correction docstring
clementd08 Feb 8, 2024
b52cd2c
[WP] correction review, change error msg
clementd08 Feb 8, 2024
f9d3f8e
[WP] correction review, change error msg
clementd08 Feb 8, 2024
12fc282
Merge branch 'Loss' of https://github.com/EOMYS-Public/pyleecan into …
clementd08 Feb 8, 2024
07c1cbe
[CO] Add type check to correct the tests
BonneelP Feb 8, 2024
9bd9d92
[WP] Change localization of doc converter
clementd08 Feb 8, 2024
a09fa82
[WP] test correction simu
clementd08 Feb 9, 2024
f0e8a7f
[WP] change name in GUI
clementd08 Feb 9, 2024
304d612
[WP] black
clementd08 Feb 9, 2024
45d02f0
[Wp] correction Notebook converter
clementd08 Feb 9, 2024
85ce069
[WP] apply black
clementd08 Feb 9, 2024
a1cd22f
Merge pull request #37 from EOMYS-Public/Loss
clementd08 Feb 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
405 changes: 405 additions & 0 deletions Doc/Converter/Converter.ipynb

Large diffs are not rendered by default.

Binary file added Doc/Converter/Images/Architecture_Converter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/Converter/Images/Machine_dimension.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/Converter/Images/Selection_machine.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/Converter/Images/UML_convert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/Converter/Images/UML_rules.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/Converter/Images/convert_mot_to_dict.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Doc/Converter/Images/structure_converter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Tests/Data/test_Loss_Import.xlsx
Binary file not shown.
25 changes: 25 additions & 0 deletions Tests/Data/test_Loss_Import_csv.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
1.00E+01,1.00E+00,1.00E-01
2.00E+01,2.00E+00,2.00E-01
3.00E+01,3.00E+00,3.00E-01
4.00E+01,4.00E+00,4.00E-01
5.00E+01,5.00E+00,5.00E-01
6.00E+01,6.00E+00,6.00E-01
7.00E+01,7.00E+00,7.00E-01
8.00E+01,8.00E+00,8.00E-01
9.00E+01,9.00E+00,9.00E-01
1.00E+02,1.00E+01,1.00E+00
1.10E+02,1.10E+01,1.10E+00
1.20E+02,1.20E+01,1.20E+00
1.30E+02,1.30E+01,1.30E+00
1.40E+02,1.40E+01,1.40E+00
1.50E+02,1.50E+01,1.50E+00
1.60E+02,1.60E+01,1.60E+00
1.70E+02,1.70E+01,1.70E+00
1.80E+02,1.80E+01,1.80E+00
1.90E+02,1.90E+01,1.90E+00
2.00E+02,2.00E+01,2.00E+00
2.10E+02,2.10E+01,2.10E+00
2.20E+02,2.20E+01,2.20E+00
2.30E+02,2.30E+01,2.30E+00
2.40E+02,2.40E+01,2.40E+00
2.50E+02,2.50E+01,2.50E+00
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,8 @@ def test_Zoe(self):
== "Slot pitch: 360 / Zs = 90 [°] (1.571 [rad])"
)

assert self.widget.w_step.c_slot_type.count() == 2
assert self.widget.w_step.c_slot_type.count() == 5

assert self.widget.w_step.c_slot_type.currentText() == "Pole Type 60"

assert self.widget.w_step.test_err_msg is None
Expand Down
9 changes: 8 additions & 1 deletion Tests/GUI/Dialog/DMachineSetup/PMSlot/test_PMSlot15.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def test_set_Rtopm(self):

def test_output_txt(self):
"""Check that the Output text is computed and correct"""
self.test_obj.slot = SlotM15(H0=0.005, H1=0.005, W0=0.01, W1=0.01, Rtopm=0.02)
self.test_obj.slot = SlotM15(H0=0.005, H1=0.005, W0=0.1, W1=0.01, Rtopm=0.02)
self.widget = PMSlot15(self.test_obj, self.material_dict)
assert self.widget.w_out.out_slot_height.text() == "Slot height: 0.005 [m]"

Expand All @@ -145,6 +145,12 @@ def test_check(self):
# Rtopm
self.test_obj.slot = SlotM15(H0=0.10, H1=0.10, W0=0.10, W1=0.1, Rtopm=None)
assert self.widget.check(self.test_obj) == "You must set Rtopm !"
# W1 <= W0
self.test_obj.slot = SlotM15(H0=0.10, H1=0.10, W0=0.10, W1=0.8, Rtopm=0.1)
assert self.widget.check(self.test_obj) == "You must have W1 <= W0"
# W1 <= 2*Rtopm
self.test_obj.slot = SlotM15(H0=0.005, H1=0.005, W0=0.1, W1=0.01, Rtopm=0.004)
assert self.widget.check(self.test_obj) == "You must have W1 <= 2*Rtopm"

def test_set_material(self):
"""Check that you can change the material"""
Expand All @@ -170,4 +176,5 @@ def test_set_type_magnetization(self):
a.setup_method()
a.test_init()
a.teardown_class()
a.test_check()
print("Done")
143 changes: 143 additions & 0 deletions E377 Tests/GUI/Dialog/DMachineSetup/PWSlot/test_PWSlot11_2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
# -*- coding: utf-8 -*-

import sys

from PySide2 import QtWidgets
from PySide2.QtTest import QTest
from numpy import pi
from Tests.GUI import gui_option # Set unit as [m]
from pyleecan.Classes.LamSlotMag import LamSlotMag
from pyleecan.Classes.SlotW11_2 import SlotW11_2
from pyleecan.Classes.LamSlotWind import LamSlotWind
from pyleecan.GUI.Dialog.DMachineSetup.SWSlot.PWSlot11.PWSlot11 import PWSlot11
from pyleecan.Classes.Notch import Notch
from pyleecan.Classes.Material import Material
from pyleecan.GUI.Dialog.DMatLib.DMatLib import MACH_KEY, LIB_KEY

import pytest


class TestPWSlot11_2:
"""Test that the widget PWSlot11 behave like it should when using SlotW11_2"""

@classmethod
def setup_class(cls):
"""Start the app for the test"""
print("\nStart Test TestPMSlot11")
if not QtWidgets.QApplication.instance():
cls.app = QtWidgets.QApplication(sys.argv)
else:
cls.app = QtWidgets.QApplication.instance()

@classmethod
def teardown_class(cls):
"""Exit the app after the test"""
cls.app.quit()

def setup_method(self):
self.material_dict = {LIB_KEY: list(), MACH_KEY: list()}
self.mat1 = Material(name="Mat1")
self.mat2 = Material(name="Mat2")
self.mat3 = Material(name="M400-50A")
self.mat4 = Material(name="Mat4")
self.material_dict[LIB_KEY] = [
self.mat1,
self.mat2,
self.mat3,
]
self.material_dict[MACH_KEY] = [
self.mat4,
]

self.test_obj = LamSlotWind(Rint=0.1, Rext=0.2, mat_type=self.mat3)
self.test_obj.slot = SlotW11_2(
H0=0.10,
H1=0.11,
H2=0.12,
W0=0.13,
W1=0.14,
W2=0.15,
R1=0.16,
H1_is_rad=False,
)
self.widget = PWSlot11(self.test_obj, self.material_dict)

def test_slot_type_unchanged(self):
# Set Wedge
self.widget.g_wedge.setChecked(True)
self.widget.w_wedge_mat.c_mat_type.setCurrentIndex(0)

# Remove wedge
self.widget.g_wedge.setChecked(False)
self.assert_slot_type()

# Set W0
self.widget.lf_W0.clear()
QTest.keyClicks(self.widget.lf_W0, "0.31")
self.widget.lf_W0.editingFinished.emit() # To trigger the slot
self.assert_slot_type()

# Set W1
self.widget.lf_W1.clear()
QTest.keyClicks(self.widget.lf_W1, "0.32")
self.widget.lf_W1.editingFinished.emit() # To trigger the slot
self.assert_slot_type()

# Set W2
self.widget.lf_W2.clear()
QTest.keyClicks(self.widget.lf_W2, "0.33")
self.widget.lf_W2.editingFinished.emit() # To trigger the slot
self.assert_slot_type()

# Set W3
self.widget.lf_W3.setEnabled(True)
self.widget.lf_W3.clear()
QTest.keyClicks(self.widget.lf_W3, "0.99")
self.widget.lf_W3.editingFinished.emit() # To trigger the slot
self.assert_slot_type()

# Set H0
self.widget.lf_H0.clear()
QTest.keyClicks(self.widget.lf_H0, "0.34")
self.widget.lf_H0.editingFinished.emit() # To trigger the slot
self.assert_slot_type()

# Set H1 in mm
self.widget.lf_H1.clear()
QTest.keyClicks(self.widget.lf_H1, "0.35")
self.widget.lf_H1.editingFinished.emit() # To trigger the slot
self.assert_slot_type()

# Set H1 in deg
self.widget.c_H1_unit.setCurrentIndex(2)

self.widget.lf_H1.clear() # Clear the field before writing
QTest.keyClicks(self.widget.lf_H1, str(1.4))
self.widget.lf_H1.editingFinished.emit() # To trigger the slot
self.assert_slot_type()

# Set H1 in rad
self.widget.c_H1_unit.setCurrentIndex(1)
self.assert_slot_type()

# Set H2
self.widget.lf_H2.clear()
QTest.keyClicks(self.widget.lf_H2, "0.36")
self.widget.lf_H2.editingFinished.emit() # To trigger the slot
self.assert_slot_type()

# Set R1
self.widget.lf_R1.clear()
QTest.keyClicks(self.widget.lf_R1, "0.37")
self.widget.lf_R1.editingFinished.emit() # To trigger the slot
self.assert_slot_type()

# Set constant tooth
self.widget.is_cst_tooth.setChecked(True)
self.assert_slot_type()
self.widget.is_cst_tooth.setChecked(False)
self.assert_slot_type()

def assert_slot_type(self):
assert isinstance(self.test_obj.slot, SlotW11_2)
assert isinstance(self.widget.lamination.slot, SlotW11_2)
Loading
0