-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
63 lines (50 loc) · 1.72 KB
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
'''
Created on Apr 21, 2021
@author: Jimmy Palomino
Main routine
'''
import matplotlib.pyplot as plt
from Main.main import main
from ANSYSDesign.MainOperations.OpenAnsoft import OpenAnsoft
from ANSYSDesign.Materials.MagnetMaterial import MagnetMaterial
from ANSYSDesign.Materials.StatorMaterial import StatorMaterial
from PreProcessing.WindingLayout import WindingLayout
from PreProcessing.GeometricParameters import GeometricParameters
from ANSYSDesign.MainOperations.LoadDesignVariables import LoadDesignVariables
from ANSYSDesign.Model.StatorDesign import StatorDesign
from ANSYSDesign.Model.RotorAndMagnetsDesign import RotorAndMagnetsDesign
from ANSYSDesign.Model.PMCharacterization import PMCharacterization
from ANSYSDesign.Model.Region import Region
from ANSYSDesign.Model.WindingDesign import WindingDesign
from ANSYSDesign.Model.BundlingCoils import BundlingCoils
from ANSYSDesign.Model.Band import Band
from ANSYSDesign.MeshMachine.MeshMachine import MeshMachine
from ANSYSDesign.AnalysisSetup.AnalysisSetup import AnalysisSetup
# Specifications Parameters predefined (mm, rpm, kW)
Specifications = {
'Qs': 16,
'Poles': 12,
'DiaYoke': 400,
'Length': 300,
'RatedPower': 60e3,
'Speed': 2500,
'VDC': 400,
'J': 7.5
}
main['ANSYS']['Specifications'] = Specifications
OpenAnsoft(main) and\
MagnetMaterial(main) and\
StatorMaterial(main) and\
WindingLayout(main) and\
GeometricParameters(main) and\
LoadDesignVariables(main) and\
StatorDesign(main) and\
RotorAndMagnetsDesign(main) and\
PMCharacterization(main) and\
WindingDesign(main) and\
BundlingCoils(main) and\
Region(main) and\
Band(main) and\
MeshMachine(main) and\
AnalysisSetup(main)
plt.show()