Adding dependencies to a Machine #697
Unanswered
wowcodeisgood
asked this question in
Q&A
Replies: 1 comment
-
EDIT: Moved from issues (#695) to discussions, since this seem to be no Pyleecan issue for now. Hello @wowcodeisgood , although I don't know exactly what you try to achieve, I get a machine plotted with your parameters. Best regards, Sebastian
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello I am new here (bloody beginner), have my troubles to make my machine parametric want to make a SIPMSM machine. So right now I have no controll over the geometry, have tried to make help varibles and call the Class stator.slot.W0 for example and then make the dependencies with other class values like the rotor that kind of worked but I get errors. Help is appreciated, thanks:)
machine = load(join(DATA_DIR, "Machine", "SPMSM_001.json"))
mm = 1e-3
Main geometry parameter
air_gap = 1mm
magnet_height = 5mm
yoke_thickness = 5* mm # Thickness of the yoke
stator = LamSlotWind(
Rint= 40, # internal radius [m]
Rext= 45 * mm, # external radius [m]
L1=50 * mm, # Lamination stack active length [m] without radial ventilation airducts
# but including insulation layers between lamination sheets
Nrvd=0, # Number of radial air ventilation duct
Kf1=0.95, # Lamination stacking / packing factor
is_internal=False,
is_stator=True,
)
stator.winding = Winding(qs=3, p=2, Nlayer=2)
External Rotor
stator.winding.conductor = CondType12(Wwire=0.5mm , Wins_cond=0.5mm, Nwppc=1, Wins_wire=0,Kwoh=0.5)
CMT_Magnet = Material(name="CMT_Magnet")
M400_50A = load(join(DATA_DIR, "Material", "M400-50A.json"))
Copper1 = load(join(DATA_DIR, "Material", "Copper1.json"))
Slot setup
stator.slot = SlotW15(
)
stator.Rint = stator.Rext-stator.slot.H2 - stator.slot.H1 -stator.slot.H0 - yoke_thickness
stator.slot.R1=stator.slot.H1*0.1
rotor = LamSlotMag(Rext=stator.Rint-air_gap-magnet_height, Rint=0, is_internal=True, is_stator=False)
rotor.slot = SlotM18(magnet_height, Zs=6)
shaft = Shaft(Drsh=0, # Diamater of the rotor shaft [m]
# used to estimate bearing diameter for friction losses
Lshaft=50*mm # length of the rotor shaft [m]
)
frame = None
Beta Was this translation helpful? Give feedback.
All reactions