Außenläufer¶
Skript-Datei
------------------------------
-- Allgemeine Einstellungen --
------------------------------
exit_on_error = false -- Verhalten nach Fehler
exit_on_end = true -- Verhalten nach Skriptausführung
verbosity = 2 -- Grad der Bildschirmmeldungen
------------------------------
-- Modellerstellung ----------
------------------------------
new_model_force("example","PMSM Q12 P8, Geometriedefinition extern")
global_unit('mm') -- Globale Einheit (m, cm, mm)
pickdist(0.001) -- Abstand Schnappen auf Knotenpunkt
blow_up_wind(0,0,56.375,56.375) -- Fenstergröße anpassen
cosys('cartes')
tsize = 0.75 -- Einstellungen für grafische Hilfselemente Text und Punkte
tcol = green
ptype = 1
pcol = red
mesh.con1 = 0.1 -- Vernetzungssteuerung
----- Stator -----
x1,y1 = pd2c(56.25,0) -- Beispiel für Koorindatentransformation
x2,y2 = pd2c(56.25,15)
nc_circle(x1,y1,x2,y2,31)
nc_circle(55.9799,1.5,54.0918,14.4939,28)
nc_circle(54.821,1.5,52.9728,14.194,28)
nc_circle(56,0,55.9799,1.5,4)
nc_line(54.821,1.5,54.821,0,4)
nc_line(54.0918,14.4939,54.3333,14.5586,2)
nc_line(56,0,56.25,0,2)
nc_line(55.9799,1.5,55.7299,1.5,2)
nc_line(55.7299,1.5,55.3436,1.5,2)
nc_line(55.3436,1.5,54.821,1.5,2)
nc_line(56,0,55.75,0,2)
nc_line(55.75,0,55.357,0,2)
nc_line(55.357,0,54.821,0,2)
nc_line(54.0918,14.4939,53.8504,14.4292,2)
nc_line(53.8504,14.4292,53.4774,14.3292,2)
nc_line(53.4774,14.3292,52.9728,14.194,2)
nc_circle_m(53.3939,2.53808,54.821,1.5,54.821,3,1.5,5)
nc_line(54.821,0,54.3586,0,2)
nc_line(54.3586,0,53.8908,0,2)
nc_line(53.8908,0,53.4175,0,2)
nc_line(53.4175,0,52.9387,0,2)
nc_line(52.9387,0,52.4544,0,2)
nc_line(52.4544,0,51.9647,0,2)
nc_line(51.9647,0,51.4695,0,2)
nc_line(51.4695,0,50.9688,0,2)
nc_line(50.9688,0,50.4627,0,2)
nc_line(50.4627,0,49.9511,0,2)
nc_line(49.9511,0,49.434,0,2)
nc_line(49.434,0,48.9115,0,2)
nc_line(48.9115,0,48.3835,0,2)
nc_line(48.3835,0,47.85,0,2)
nc_line(47.85,0,47.311,0,2)
nc_line(47.311,0,46.7666,0,2)
nc_line(46.7666,0,46.2167,0,2)
nc_line(46.2167,0,45.6614,0,2)
nc_line(45.6614,0,45.1006,0,2)
nc_line(45.1006,0,44.5343,0,2)
nc_line(44.5343,0,43.9625,0,2)
nc_line(43.9625,0,43.3853,0,2)
nc_line(43.3853,0,42.8026,0,2)
nc_line(42.8026,0,42.2144,0,2)
nc_line(42.2144,0,41.6207,0,2)
nc_line(41.6207,0,41.0216,0,2)
nc_line(41.0216,0,40.4171,0,2)
nc_line(40.4171,0,39.807,0,2)
nc_line(39.807,0,39.1915,0,2)
nc_line(39.1915,0,38.5705,0,2)
nc_line(38.5705,0,37.9441,0,2)
nc_line(37.9441,0,37.3121,0,2)
nc_line(37.3121,0,36.6747,0,2)
nc_line(36.6747,0,36.0319,0,2)
nc_line(36.0319,0,35.3835,0,2)
nc_line(35.3835,0,34.7297,0,2)
nc_line(34.7297,0,34.0705,0,2)
nc_line(34.0705,0,33.4057,0,2)
nc_line(33.4057,0,32.7355,0,2)
nc_line(32.7355,0,32.0598,0,2)
nc_line(32.0598,0,31.3787,0,2)
nc_line(31.3787,0,30.6921,0,2)
nc_line(30.6921,0,30,0,2)
nc_circle_m(51.6746,7.84998,49.9073,8.84896,50.2475,7.38805,1.5,4)
nc_circle_m(31.1598,4.48321,30,3.0223,31.5,3.0223,1.5,4)
nc_line(49.9073,8.84896,31.1598,4.48321,29)
nc_line(30.1933,8.09027,48.7763,13.0696,29)
nc_line(49.9073,8.84896,48.7763,13.0696,7)
nc_line(31.1598,4.48321,30.1933,8.09027,7)
nc_line(52.9728,14.194,52.5262,14.0744,2)
nc_line(52.5262,14.0744,52.0573,13.9487,2)
nc_line(52.0573,13.9487,51.5662,13.8171,2)
nc_line(51.5662,13.8171,51.0527,13.6795,2)
nc_line(51.0527,13.6795,50.517,13.536,2)
nc_line(50.517,13.536,49.9591,13.3865,2)
nc_line(49.9591,13.3865,49.3788,13.231,2)
nc_line(49.3788,13.231,48.7763,13.0696,2)
nc_line(30,0,29.3064,0,2)
nc_line(29.3064,0,28.5074,0,2)
nc_line(28.5074,0,27.6031,0,2)
nc_line(27.6031,0,26.5933,0,2)
nc_line(26.5933,0,25.4781,0,2)
nc_line(25.4781,0,24.2574,0,2)
nc_line(24.2574,0,22.9314,0,2)
nc_line(22.9314,0,21.5,0,2)
nc_line(30.1933,8.09027,29.5233,7.91076,2)
nc_line(29.5233,7.91076,28.7591,7.70597,2)
nc_line(28.7591,7.70597,27.9004,7.4759,2)
nc_line(27.9004,7.4759,26.9475,7.22055,2)
nc_line(26.9475,7.22055,25.9001,6.93992,2)
nc_line(25.9001,6.93992,24.7585,6.63401,2)
nc_line(24.7585,6.63401,23.5225,6.30283,2)
nc_line(23.5225,6.30283,22.1921,5.94636,2)
nc_line(22.1921,5.94636,20.7674,5.56461,2)
nc_circle(21.5,0,20.7674,5.56461,5)
nc_line(53.3939,2.53808,53.2515,2.97799,2)
nc_line(53.2515,2.97799,53.1026,3.43818,2)
nc_line(53.1026,3.43818,52.947,3.91866,2)
nc_line(52.947,3.91866,52.785,4.41943,2)
nc_line(52.785,4.41943,52.6163,4.94047,2)
nc_line(52.6163,4.94047,52.4411,5.48181,2)
nc_line(52.4411,5.48181,52.2593,6.04342,2)
nc_line(52.2593,6.04342,52.071,6.62532,2)
nc_line(52.071,6.62532,51.876,7.22751,2)
nc_line(51.876,7.22751,51.6746,7.84998,2)
nc_line(30,3.0223,30,0,5)
nc_line(52.3655,2.46798,50.7232,7.54203,9)
nc_line(50.1341,7.87502,31.3866,3.50927,29)
nc_line(31,3.0223,31,1.5,3)
nc_line(31,1.5,52.3655,2.46798,32)
nc_circle_m(31.3866,3.50927,31,3.0223,31.5,3.0223,0.5,2)
nc_circle_m(50.7232,7.54203,50.1341,7.87502,50.2475,7.38805,0.5,2)
create_mesh_se(24.0891,1.85487)
create_mesh_se(36.7098,8.54769)
create_mesh_se(50.5521,12.0375)
create_mesh_se(54.9466,7.23386)
def_new_subreg(24.0891,1.85487,"Stator",11)
add_to_subreg(36.7098,8.54769)
add_to_subreg(50.5521,12.0375)
add_to_subreg(54.9466,7.23386)
create_mesh_se(44.4999,3.94767)
create_mesh()
mirror_nodechains(54.3333,14.5586,20.7674,5.56461)
rotate_copy_nodechains(21.5,0,56.25,0,48.7139,28.125,18.6195,10.75,2)
text(55.9799,1.5,"1",tsize,tcol)
point(55.9799,1.5,ptype,pcol)
text(54.821,1.5,"2",tsize,tcol)
point(54.821,1.5,ptype,pcol)
text(53.3939,2.53808,"3",tsize,tcol)
point(53.3939,2.53808,ptype,pcol)
text(51.6746,7.84998,"4",tsize,tcol)
point(51.6746,7.84998,ptype,pcol)
text(49.9073,8.84896,"5",tsize,tcol)
point(49.9073,8.84896,ptype,pcol)
text(31.1598,4.48321,"6",tsize,tcol)
point(31.1598,4.48321,ptype,pcol)
text(30,3.0223,"7",tsize,tcol)
point(30,3.0223,ptype,pcol)
text(30,0,"8",tsize,tcol)
point(30,0,ptype,pcol)
text(21.5,0,"9",tsize,tcol)
point(21.5,0,ptype,pcol)
text(20.7674,5.56461,"10",tsize,tcol)
point(20.7674,5.56461,ptype,pcol)
text(54.0918,14.4939,"11",tsize,tcol)
point(54.0918,14.4939,ptype,pcol)
text(56,0,"12",tsize,tcol)
point(56,0,ptype,pcol)
text(54.821,0,"13",tsize,tcol)
point(54.821,0,ptype,pcol)
text(52.9728,14.194,"14",tsize,tcol)
point(52.9728,14.194,ptype,pcol)
text(48.7763,13.0696,"17",tsize,tcol)
point(48.7763,13.0696,ptype,pcol)
text(30.1933,8.09027,"18",tsize,tcol)
point(30.1933,8.09027,ptype,pcol)
text(52.3655,2.46798,"19",tsize,tcol)
point(52.3655,2.46798,ptype,pcol)
text(50.7232,7.54203,"20",tsize,tcol)
point(50.7232,7.54203,ptype,pcol)
text(50.1341,7.87502,"21",tsize,tcol)
point(50.1341,7.87502,ptype,pcol)
text(31.3866,3.50927,"22",tsize,tcol)
point(31.3866,3.50927,ptype,pcol)
text(31,3.0223,"23",tsize,tcol)
point(31,3.0223,ptype,pcol)
text(31,1.5,"24",tsize,tcol)
point(31,1.5,ptype,pcol)
text(56.25,0,"25",tsize,tcol)
point(56.25,0,ptype,pcol)
text(54.3333,14.5586,"26",tsize,tcol)
point(54.3333,14.5586,ptype,pcol)
text(53.4542,0,"27",tsize,tcol)
point(53.4542,0,ptype,pcol)
text(48.7139,28.125,"29",tsize,tcol)
point(48.7139,28.125,ptype,pcol)
text(18.6195,10.75,"30",tsize,tcol)
point(18.6195,10.75,ptype,pcol)
text(1.31645e-15,21.5,"21",tsize,tcol)
point(1.31645e-15,21.5,ptype,pcol)
text(54.821,3,"M1",tsize,tcol)
point(54.821,3,ptype,pcol)
text(50.2475,7.38805,"M2",tsize,tcol)
point(50.2475,7.38805,ptype,pcol)
text(31.5,3.0223,"M3",tsize,tcol)
point(31.5,3.0223,ptype,pcol)
text(31.5,3.0223,"M4",tsize,tcol)
point(31.5,3.0223,ptype,pcol)
text(24.0891,1.85487,"F1",tsize,tcol)
point(24.0891,1.85487,1,2)
text(36.7098,8.54769,"F2",tsize,tcol)
point(36.7098,8.54769,1,2)
text(50.5521,12.0375,"F3",tsize,tcol)
point(50.5521,12.0375,1,2)
text(54.9466,7.23386,"F4",tsize,tcol)
point(54.9466,7.23386,1,2)
text(44.4999,3.94767,"F5",tsize,tcol)
point(44.4999,3.94767,1,2)
text(44.4999,3.94767,"T1",tsize,tcol)
point(44.4999,3.94767,1,3)
text(40.5118,18.8311,"T2",tsize,tcol)
point(40.5118,18.8311,1,3)
text(36.5642,25.6687,"T3",tsize,tcol)
point(36.5642,25.6687,1,3)
text(25.6687,36.5642,"T4",tsize,tcol)
point(25.6687,36.5642,1,3)
text(18.8311,40.5118,"T5",tsize,tcol)
point(18.8311,40.5118,1,3)
text(3.94767,44.4999,"T6",tsize,tcol)
point(3.94767,44.4999,1,3)
----- Rotor -----
nc_circle(56.5,0,52.1992,21.6216,46)
nc_circle(56.75,0,53.5864,18.683,39)
nc_circle(53.5864,18.683,52.4302,21.7173,8)
nc_line(56.5,0,56.75,0,2)
nc_line(52.4302,21.7173,52.1992,21.6216,2)
nc_line(64.98,0,56.75,0,19)
nc_line(58.2399,22.007,61.1399,22.007,7)
nc_line(53.5864,20.2486,58.2399,22.007,12)
nc_line(53.5864,18.683,53.5864,19.175,2)
nc_line(53.5864,19.175,53.5864,19.6969,2)
nc_line(53.5864,19.6969,53.5864,20.2486,2)
nc_line(52.4302,21.7173,52.924,21.9218,2)
nc_line(57.5199,23.8255,60.0337,24.8668,7)
nc_line(52.924,21.9218,57.5199,23.8255,12)
nc_circle(53.5864,20.2486,52.924,21.9218,5)
nc_circle(58.2399,22.007,57.5199,23.8255,5)
nc_line(60.0337,24.8668,63.7708,26.4147,10)
nc_line(64.98,0,69.025,0,10)
nc_circle(69.025,0,63.7708,26.4147,34)
nc_circle(64.98,0,61.1399,22.007,30)
nc_circle(61.1399,22.007,60.0337,24.8668,5)
create_mesh_se(65.7151,13.0715)
def_new_subreg(65.7151,13.0715,"Rotor-RS",3)
create_mesh_se(59.8746,10.9351)
create_mesh()
mirror_nodechains(63.7708,26.4147,52.4302,21.7173)
rotate_copy_nodechains(56.5,0,69.025,0,48.808,48.808,39.9515,39.9515,1)
def_new_subreg(59.8746,10.9351,"PM1",1)
add_to_subreg(12.8104,59.5016)
def_new_subreg(51.1323,33.0157,"PM2",2)
add_to_subreg(34.6055,50.07)
nc_line(56.5,0,56.25,0,2)
nc_line(3.44421e-15,56.25,3.45951e-15,56.5,2)
create_mesh_se(52.1773,21.3463)
def_bcond(21.5,0,69.025,0,4.22642e-15,69.025,1.31645e-15,21.5,4)
def_bcond_vpo(1.31645e-15,21.5,21.5,0)
def_bcond_vpo(69.025,0,4.22642e-15,69.025)
text(64.98,0,"1",tsize,tcol)
point(64.98,0,ptype,pcol)
text(56.75,0,"2",tsize,tcol)
point(56.75,0,ptype,pcol)
text(53.5864,18.683,"3",tsize,tcol)
point(53.5864,18.683,ptype,pcol)
text(53.5864,20.2486,"4",tsize,tcol)
point(53.5864,20.2486,ptype,pcol)
text(58.2399,22.007,"5",tsize,tcol)
point(58.2399,22.007,ptype,pcol)
text(61.1399,22.007,"6",tsize,tcol)
point(61.1399,22.007,ptype,pcol)
text(52.4302,21.7173,"7",tsize,tcol)
point(52.4302,21.7173,ptype,pcol)
text(60.0337,24.8668,"8",tsize,tcol)
point(60.0337,24.8668,ptype,pcol)
text(69.025,0,"9",tsize,tcol)
point(69.025,0,ptype,pcol)
text(63.7708,26.4147,"10",tsize,tcol)
point(63.7708,26.4147,ptype,pcol)
text(56.5,0,"11",tsize,tcol)
point(56.5,0,ptype,pcol)
text(52.1992,21.6216,"12",tsize,tcol)
point(52.1992,21.6216,ptype,pcol)
text(52.924,21.9218,"13",tsize,tcol)
point(52.924,21.9218,ptype,pcol)
text(57.5199,23.8255,"14",tsize,tcol)
point(57.5199,23.8255,ptype,pcol)
text(48.808,48.808,"15",tsize,tcol)
point(48.808,48.808,ptype,pcol)
text(39.9515,39.9515,"16",tsize,tcol)
point(39.9515,39.9515,ptype,pcol)
text(56.25,0,"17",tsize,tcol)
point(56.25,0,ptype,pcol)
text(3.44421e-15,56.25,"18",tsize,tcol)
point(3.44421e-15,56.25,ptype,pcol)
text(3.45951e-15,56.5,"19",tsize,tcol)
point(3.45951e-15,56.5,ptype,pcol)
text(53.5864,19.4658,"20",tsize,tcol)
point(53.5864,19.4658,ptype,pcol)
text(52.6771,21.8196,"21",tsize,tcol)
point(52.6771,21.8196,ptype,pcol)
text(64.98,0,"22",tsize,tcol)
point(64.98,0,ptype,pcol)
text(60.0337,24.8668,"23",tsize,tcol)
point(60.0337,24.8668,ptype,pcol)
text(65.7151,13.0715,"F1",tsize,tcol)
point(65.7151,13.0715,1,2)
text(59.8746,10.9351,"F2",tsize,tcol)
point(59.8746,10.9351,1,2)
text(52.1773,21.3463,"F3",tsize,tcol)
point(52.1773,21.3463,1,2)
------ Materialeigenschaften -----
def_mat_fm(24.0891,1.85487,10000,100) -- Statorpaket
def_mat_fm(65.7151,13.0715,1000,150) -- Rotor-Rückschluss
def_mat_pm(59.8746,10.9351,"magenta",0.4,1.03,0,m.radial,120) -- PM 1
def_mat_pm(51.1323,33.0157,"cyan",0.4,1.03,180,m.radial,120) -- PM 2
--def_mat_fm_nlin(24.0891,1.85487,"green","V800_50A.MCV",100) -- Statorpaket
--def_mat_fm_nlin(65.7151,13.0715,"yellow","St_37.MCV",150) -- Rotor-Rückschluss
--def_mat_pm_nlin(59.8746,10.9351,"magenta","9bd_20.MCV",0,m.polaniso,1e-9,120) -- PM 1
--def_mat_pm_nlin(51.1323,33.0157,"cyan","9bd_20.MCV",180,m.polaniso,1e-9,120) -- PM 2
----------------------
----- Berechnung -----
----------------------
calc_field_single(99,restored,0.01)
color_gradation(0,0,tot,Vpot,0,0,"example_Vpot.eps")
color_gradation(0,0,tot,Babs,0,0,"example_Babs.eps")
save_model('cont')