designix 0.5.22 → 0.5.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +96 -83
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1023,8 +1023,8 @@ var pDef = {
|
|
|
1023
1023
|
// every 0.5 second
|
|
1024
1024
|
}
|
|
1025
1025
|
};
|
|
1026
|
-
function pGeom(t, param) {
|
|
1027
|
-
const rGeome = initGeom(pDef.partName);
|
|
1026
|
+
function pGeom(t, param, suffix = "") {
|
|
1027
|
+
const rGeome = initGeom(pDef.partName + suffix);
|
|
1028
1028
|
const figOne = figure();
|
|
1029
1029
|
const figTwo = figure();
|
|
1030
1030
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
@@ -1334,14 +1334,14 @@ var pDef2 = {
|
|
|
1334
1334
|
// every 0.5 second
|
|
1335
1335
|
}
|
|
1336
1336
|
};
|
|
1337
|
-
function pGeom2(t, param) {
|
|
1338
|
-
const rGeome = initGeom2(pDef2.partName);
|
|
1337
|
+
function pGeom2(t, param, suffix = "") {
|
|
1338
|
+
const rGeome = initGeom2(pDef2.partName + suffix);
|
|
1339
1339
|
const figOne = figure2();
|
|
1340
1340
|
const figTwo = figure2();
|
|
1341
1341
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
1342
1342
|
`;
|
|
1343
1343
|
try {
|
|
1344
|
-
const gearWWParam = designParam(gearWheelWheelDef.pDef);
|
|
1344
|
+
const gearWWParam = designParam(gearWheelWheelDef.pDef, "ref1");
|
|
1345
1345
|
gearWWParam.setVal("module", param.module);
|
|
1346
1346
|
gearWWParam.setVal("N1", param.N1);
|
|
1347
1347
|
gearWWParam.setVal("c1x", param.c1x);
|
|
@@ -1369,9 +1369,13 @@ function pGeom2(t, param) {
|
|
|
1369
1369
|
gearWWParam.setVal("wheelAxisExtRound", param.wheelAxisExtRound);
|
|
1370
1370
|
gearWWParam.setVal("wheelAxisIntRound", param.wheelAxisIntRound);
|
|
1371
1371
|
gearWWParam.setVal("wheelExtraRound", param.wheelExtraRound);
|
|
1372
|
-
const gearWWGeom = gearWheelWheelDef.pGeom(
|
|
1372
|
+
const gearWWGeom = gearWheelWheelDef.pGeom(
|
|
1373
|
+
t,
|
|
1374
|
+
gearWWParam.getParamVal(),
|
|
1375
|
+
gearWWParam.getSuffix()
|
|
1376
|
+
);
|
|
1373
1377
|
checkGeom(gearWWGeom);
|
|
1374
|
-
rGeome.logstr += prefixLog(gearWWGeom.logstr, gearWWParam.
|
|
1378
|
+
rGeome.logstr += prefixLog(gearWWGeom.logstr, gearWWParam.getPartNameSuffix());
|
|
1375
1379
|
figOne.mergeFigure(gearWWGeom.fig.teethProfile);
|
|
1376
1380
|
figTwo.mergeFigure(gearWWGeom.fig.axisProfile);
|
|
1377
1381
|
rGeome.fig = { teethProfile: figOne, axisProfile: figTwo };
|
|
@@ -1487,10 +1491,10 @@ var pDef3 = {
|
|
|
1487
1491
|
// every 0.5 second
|
|
1488
1492
|
}
|
|
1489
1493
|
};
|
|
1490
|
-
function pGeom3(t, param) {
|
|
1494
|
+
function pGeom3(t, param, suffix = "") {
|
|
1495
|
+
const rGeome = initGeom3(pDef3.partName + suffix);
|
|
1491
1496
|
let ctrPoleProfile;
|
|
1492
1497
|
let ctrDoorFace;
|
|
1493
|
-
const rGeome = initGeom3(pDef3.partName);
|
|
1494
1498
|
const figCut = figure3();
|
|
1495
1499
|
const figFace = figure3();
|
|
1496
1500
|
const figBottom = figure3();
|
|
@@ -1737,11 +1741,11 @@ var pDef4 = {
|
|
|
1737
1741
|
// every 0.5 second
|
|
1738
1742
|
}
|
|
1739
1743
|
};
|
|
1740
|
-
function pGeom4(t, param) {
|
|
1744
|
+
function pGeom4(t, param, suffix = "") {
|
|
1745
|
+
const rGeome = initGeom4(pDef4.partName + suffix);
|
|
1741
1746
|
let ctrCone;
|
|
1742
1747
|
let ctrConePlus;
|
|
1743
1748
|
let ctrRect;
|
|
1744
|
-
const rGeome = initGeom4(pDef4.partName);
|
|
1745
1749
|
const figCone = figure4();
|
|
1746
1750
|
const figBeam = figure4();
|
|
1747
1751
|
const figBeamHollow = figure4();
|
|
@@ -2122,10 +2126,10 @@ var pDef5 = {
|
|
|
2122
2126
|
// every 0.5 second
|
|
2123
2127
|
}
|
|
2124
2128
|
};
|
|
2125
|
-
function pGeom5(t, param) {
|
|
2129
|
+
function pGeom5(t, param, suffix = "") {
|
|
2130
|
+
const rGeome = initGeom5(pDef5.partName + suffix);
|
|
2126
2131
|
let ctrSquare;
|
|
2127
2132
|
let ctrRect;
|
|
2128
|
-
const rGeome = initGeom5(pDef5.partName);
|
|
2129
2133
|
const figLegs = figure5();
|
|
2130
2134
|
const figTube = figure5();
|
|
2131
2135
|
const figBody = figure5();
|
|
@@ -2320,10 +2324,10 @@ var pDef6 = {
|
|
|
2320
2324
|
// every 0.5 second
|
|
2321
2325
|
}
|
|
2322
2326
|
};
|
|
2323
|
-
function pGeom6(t, param) {
|
|
2327
|
+
function pGeom6(t, param, suffix = "") {
|
|
2328
|
+
const rGeome = initGeom6(pDef6.partName + suffix);
|
|
2324
2329
|
let ctrRectangle;
|
|
2325
2330
|
let ctrRectRound;
|
|
2326
|
-
const rGeome = initGeom6(pDef6.partName);
|
|
2327
2331
|
const figSide = figure6();
|
|
2328
2332
|
const figFace = figure6();
|
|
2329
2333
|
const figTop = figure6();
|
|
@@ -2541,8 +2545,8 @@ var pDef7 = {
|
|
|
2541
2545
|
// every 0.5 second
|
|
2542
2546
|
}
|
|
2543
2547
|
};
|
|
2544
|
-
function pGeom7(t, param) {
|
|
2545
|
-
const rGeome = initGeom7(pDef7.partName);
|
|
2548
|
+
function pGeom7(t, param, suffix = "") {
|
|
2549
|
+
const rGeome = initGeom7(pDef7.partName + suffix);
|
|
2546
2550
|
const figSide = figure7();
|
|
2547
2551
|
const figFace = figure7();
|
|
2548
2552
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
@@ -2650,18 +2654,22 @@ function pGeom7(t, param) {
|
|
|
2650
2654
|
swingParam.setVal("L5", param.L5);
|
|
2651
2655
|
swingParam.setVal("L6", param.L6);
|
|
2652
2656
|
swingParam.setVal("L3", param.D7);
|
|
2653
|
-
const poleStaticGeom = poleStaticDef.pGeom(
|
|
2657
|
+
const poleStaticGeom = poleStaticDef.pGeom(
|
|
2658
|
+
0,
|
|
2659
|
+
poleStaticParam.getParamVal(),
|
|
2660
|
+
poleStaticParam.getSuffix()
|
|
2661
|
+
);
|
|
2654
2662
|
checkGeom2(poleStaticGeom);
|
|
2655
|
-
rGeome.logstr += prefixLog2(poleStaticGeom.logstr, poleStaticParam.
|
|
2656
|
-
const rakeGeom = rakeDef.pGeom(0, rakeParam.getParamVal());
|
|
2663
|
+
rGeome.logstr += prefixLog2(poleStaticGeom.logstr, poleStaticParam.getPartNameSuffix());
|
|
2664
|
+
const rakeGeom = rakeDef.pGeom(0, rakeParam.getParamVal(), rakeParam.getSuffix());
|
|
2657
2665
|
checkGeom2(rakeGeom);
|
|
2658
|
-
rGeome.logstr += prefixLog2(rakeGeom.logstr, rakeParam.
|
|
2659
|
-
const spiderGeom = spiderDef.pGeom(0, spiderParam.getParamVal());
|
|
2666
|
+
rGeome.logstr += prefixLog2(rakeGeom.logstr, rakeParam.getPartNameSuffix());
|
|
2667
|
+
const spiderGeom = spiderDef.pGeom(0, spiderParam.getParamVal(), spiderParam.getSuffix());
|
|
2660
2668
|
checkGeom2(spiderGeom);
|
|
2661
|
-
rGeome.logstr += prefixLog2(spiderGeom.logstr, spiderParam.
|
|
2662
|
-
const swingGeom = swingDef.pGeom(0, swingParam.getParamVal());
|
|
2669
|
+
rGeome.logstr += prefixLog2(spiderGeom.logstr, spiderParam.getPartNameSuffix());
|
|
2670
|
+
const swingGeom = swingDef.pGeom(0, swingParam.getParamVal(), swingParam.getSuffix());
|
|
2663
2671
|
checkGeom2(swingGeom);
|
|
2664
|
-
rGeome.logstr += prefixLog2(swingGeom.logstr, swingParam.
|
|
2672
|
+
rGeome.logstr += prefixLog2(swingGeom.logstr, swingParam.getPartNameSuffix());
|
|
2665
2673
|
figSide.mergeFigure(poleStaticGeom.fig.poleCut);
|
|
2666
2674
|
figSide.mergeFigure(rakeGeom.fig.faceBeam.translate(0, rakePosY));
|
|
2667
2675
|
figSide.mergeFigure(
|
|
@@ -2874,9 +2882,9 @@ var pDef8 = {
|
|
|
2874
2882
|
// every 0.5 second
|
|
2875
2883
|
}
|
|
2876
2884
|
};
|
|
2877
|
-
function pGeom8(t, param) {
|
|
2885
|
+
function pGeom8(t, param, suffix = "") {
|
|
2886
|
+
const rGeome = initGeom8(pDef8.partName + suffix);
|
|
2878
2887
|
let ctrRect;
|
|
2879
|
-
const rGeome = initGeom8(pDef8.partName);
|
|
2880
2888
|
const figCone = figure8();
|
|
2881
2889
|
const figBeam = figure8();
|
|
2882
2890
|
const figBeamHollow = figure8();
|
|
@@ -2951,9 +2959,9 @@ function pGeom8(t, param) {
|
|
|
2951
2959
|
rakeParam.setVal("H7", param.H7);
|
|
2952
2960
|
rakeParam.setVal("L9", param.L9);
|
|
2953
2961
|
rakeParam.setVal("R9", param.R9);
|
|
2954
|
-
const rakeGeom = rakeDef.pGeom(0, rakeParam.getParamVal());
|
|
2962
|
+
const rakeGeom = rakeDef.pGeom(0, rakeParam.getParamVal(), rakeParam.getSuffix());
|
|
2955
2963
|
checkGeom3(rakeGeom);
|
|
2956
|
-
rGeome.logstr += prefixLog3(rakeGeom.logstr, rakeParam.
|
|
2964
|
+
rGeome.logstr += prefixLog3(rakeGeom.logstr, rakeParam.getPartNameSuffix());
|
|
2957
2965
|
figCone.mergeFigure(rakeGeom.fig.faceCone);
|
|
2958
2966
|
figBeam.mergeFigure(rakeGeom.fig.faceBeam);
|
|
2959
2967
|
figBeamHollow.mergeFigure(rakeGeom.fig.faceBeamHollow);
|
|
@@ -3221,8 +3229,8 @@ var pDef9 = {
|
|
|
3221
3229
|
// every 0.5 second
|
|
3222
3230
|
}
|
|
3223
3231
|
};
|
|
3224
|
-
function pGeom9(t, param) {
|
|
3225
|
-
const rGeome = initGeom9(pDef9.partName);
|
|
3232
|
+
function pGeom9(t, param, suffix = "") {
|
|
3233
|
+
const rGeome = initGeom9(pDef9.partName + suffix);
|
|
3226
3234
|
const figSide = figure9();
|
|
3227
3235
|
const figFace = figure9();
|
|
3228
3236
|
const figTop = figure9();
|
|
@@ -3318,15 +3326,19 @@ function pGeom9(t, param) {
|
|
|
3318
3326
|
swingParam.setVal("L5", param.L5);
|
|
3319
3327
|
swingParam.setVal("L6", param.L6);
|
|
3320
3328
|
swingParam.setVal("L3", param.D7);
|
|
3321
|
-
const poleStaticGeom = poleStaticDef.pGeom(
|
|
3329
|
+
const poleStaticGeom = poleStaticDef.pGeom(
|
|
3330
|
+
0,
|
|
3331
|
+
poleStaticParam.getParamVal(),
|
|
3332
|
+
poleStaticParam.getSuffix()
|
|
3333
|
+
);
|
|
3322
3334
|
checkGeom4(poleStaticGeom);
|
|
3323
|
-
rGeome.logstr += prefixLog4(poleStaticGeom.logstr, poleStaticParam.
|
|
3324
|
-
const rakeGeom = rakeStopperDef.pGeom(0, rakeParam.getParamVal());
|
|
3335
|
+
rGeome.logstr += prefixLog4(poleStaticGeom.logstr, poleStaticParam.getPartNameSuffix());
|
|
3336
|
+
const rakeGeom = rakeStopperDef.pGeom(0, rakeParam.getParamVal(), rakeParam.getSuffix());
|
|
3325
3337
|
checkGeom4(rakeGeom);
|
|
3326
|
-
rGeome.logstr += prefixLog4(rakeGeom.logstr, rakeParam.
|
|
3327
|
-
const swingGeom = swingDef.pGeom(0, swingParam.getParamVal());
|
|
3338
|
+
rGeome.logstr += prefixLog4(rakeGeom.logstr, rakeParam.getPartNameSuffix());
|
|
3339
|
+
const swingGeom = swingDef.pGeom(0, swingParam.getParamVal(), swingParam.getSuffix());
|
|
3328
3340
|
checkGeom4(swingGeom);
|
|
3329
|
-
rGeome.logstr += prefixLog4(swingGeom.logstr, swingParam.
|
|
3341
|
+
rGeome.logstr += prefixLog4(swingGeom.logstr, swingParam.getPartNameSuffix());
|
|
3330
3342
|
figSide.mergeFigure(poleStaticGeom.fig.poleCut);
|
|
3331
3343
|
figSide.mergeFigure(rakeGeom.fig.faceStopperSide.translate(0, rakePosY));
|
|
3332
3344
|
figSide.mergeFigure(
|
|
@@ -3475,11 +3487,11 @@ var pDef10 = {
|
|
|
3475
3487
|
// every 0.5 second
|
|
3476
3488
|
}
|
|
3477
3489
|
};
|
|
3478
|
-
function pGeom10(t, param) {
|
|
3490
|
+
function pGeom10(t, param, suffix = "") {
|
|
3491
|
+
const rGeome = initGeom10(pDef10.partName + suffix);
|
|
3479
3492
|
let ctrBaseCut1;
|
|
3480
3493
|
let ctrBaseCut2;
|
|
3481
3494
|
let ctrHollow;
|
|
3482
|
-
const rGeome = initGeom10(pDef10.partName);
|
|
3483
3495
|
const figCut = figure10();
|
|
3484
3496
|
const figTop = figure10();
|
|
3485
3497
|
const figHollow = figure10();
|
|
@@ -3671,9 +3683,9 @@ var pDef11 = {
|
|
|
3671
3683
|
// every 0.5 second
|
|
3672
3684
|
}
|
|
3673
3685
|
};
|
|
3674
|
-
function pGeom11(t, param) {
|
|
3686
|
+
function pGeom11(t, param, suffix = "") {
|
|
3687
|
+
const rGeome = initGeom11(pDef11.partName + suffix);
|
|
3675
3688
|
let ctrPoleProfile;
|
|
3676
|
-
const rGeome = initGeom11(pDef11.partName);
|
|
3677
3689
|
const figCut = figure11();
|
|
3678
3690
|
const figBottom = figure11();
|
|
3679
3691
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
@@ -3812,10 +3824,10 @@ var pDef12 = {
|
|
|
3812
3824
|
// every 0.5 second
|
|
3813
3825
|
}
|
|
3814
3826
|
};
|
|
3815
|
-
function pGeom12(t, param) {
|
|
3827
|
+
function pGeom12(t, param, suffix = "") {
|
|
3828
|
+
const rGeome = initGeom12(pDef12.partName + suffix);
|
|
3816
3829
|
let ctrPlate;
|
|
3817
3830
|
let ctrRod;
|
|
3818
|
-
const rGeome = initGeom12(pDef12.partName);
|
|
3819
3831
|
const figCut = figure12();
|
|
3820
3832
|
const figPlate = figure12();
|
|
3821
3833
|
const figTop = figure12();
|
|
@@ -3984,10 +3996,10 @@ var pDef13 = {
|
|
|
3984
3996
|
// every 0.5 second
|
|
3985
3997
|
}
|
|
3986
3998
|
};
|
|
3987
|
-
function pGeom13(t, param) {
|
|
3999
|
+
function pGeom13(t, param, suffix = "") {
|
|
4000
|
+
const rGeome = initGeom13(pDef13.partName + suffix);
|
|
3988
4001
|
let ctrRodFootprint;
|
|
3989
4002
|
let ctrRod;
|
|
3990
|
-
const rGeome = initGeom13(pDef13.partName);
|
|
3991
4003
|
const figFrame = figure13();
|
|
3992
4004
|
const figPlate = figure13();
|
|
3993
4005
|
const figRod = figure13();
|
|
@@ -4379,8 +4391,8 @@ var pDef14 = {
|
|
|
4379
4391
|
partName: "surface",
|
|
4380
4392
|
params: [
|
|
4381
4393
|
//pNumber(name, unit, init, min, max, step)
|
|
4382
|
-
pNumber14("LH", "mm", 1600,
|
|
4383
|
-
pNumber14("LV", "mm", 1e3,
|
|
4394
|
+
pNumber14("LH", "mm", 1600, 10, 4e3, 1),
|
|
4395
|
+
pNumber14("LV", "mm", 1e3, 10, 4e3, 1),
|
|
4384
4396
|
pNumber14("LZ", "mm", 40, 0, 100, 1),
|
|
4385
4397
|
pNumber14("nx", "", 9, 1, 40, 1),
|
|
4386
4398
|
pNumber14("ny", "", 9, 1, 40, 1),
|
|
@@ -4436,9 +4448,9 @@ var pDef14 = {
|
|
|
4436
4448
|
// every 0.5 second
|
|
4437
4449
|
}
|
|
4438
4450
|
};
|
|
4439
|
-
function pGeom14(t, param) {
|
|
4451
|
+
function pGeom14(t, param, suffix = "") {
|
|
4452
|
+
const rGeome = initGeom14(pDef14.partName + suffix);
|
|
4440
4453
|
let ctrPanelProfile;
|
|
4441
|
-
const rGeome = initGeom14(pDef14.partName);
|
|
4442
4454
|
const figSurface = figure14();
|
|
4443
4455
|
const figOnePanel = figure14();
|
|
4444
4456
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
@@ -4471,6 +4483,7 @@ function pGeom14(t, param) {
|
|
|
4471
4483
|
const ELateralCycle = param.main_direction === 0 ? param.EV_cycle : param.EH_cycle;
|
|
4472
4484
|
const ELateralStart = param.main_direction === 0 ? param.EV_start : param.EH_start;
|
|
4473
4485
|
const ELateralShape = param.main_direction === 0 ? param.EV_shape : param.EH_shape;
|
|
4486
|
+
const lenLateralMax = Math.max(lenLateral, param.first_row, param.second_row);
|
|
4474
4487
|
const lenRow = [];
|
|
4475
4488
|
for (let i = 0; i < lenMain; i++) {
|
|
4476
4489
|
const iEven = (i + 1) % 2;
|
|
@@ -4528,10 +4541,10 @@ function pGeom14(t, param) {
|
|
|
4528
4541
|
eMainCumul.push(eMainTotal);
|
|
4529
4542
|
});
|
|
4530
4543
|
const eLateral = [];
|
|
4531
|
-
for (let i = 0; i <
|
|
4544
|
+
for (let i = 0; i < lenLateralMax - 1; i++) {
|
|
4532
4545
|
let eSpace = ELateral;
|
|
4533
4546
|
if (ELateralGradient === 1) {
|
|
4534
|
-
const gapNb =
|
|
4547
|
+
const gapNb = lenLateralMax > 2 ? lenLateralMax - 2 : 1;
|
|
4535
4548
|
const phase = (ELateralStart + i * ELateralCycle / gapNb) % 1;
|
|
4536
4549
|
switch (ELateralShape) {
|
|
4537
4550
|
case 0:
|
|
@@ -4563,9 +4576,9 @@ function pGeom14(t, param) {
|
|
|
4563
4576
|
let gLenVertical = 0;
|
|
4564
4577
|
if (param.main_direction === 0) {
|
|
4565
4578
|
gLenHorizontal = lenMain * param.LH + eMainTotal;
|
|
4566
|
-
gLenVertical =
|
|
4579
|
+
gLenVertical = lenLateralMax * param.LV + eLateralTotal;
|
|
4567
4580
|
} else {
|
|
4568
|
-
gLenHorizontal =
|
|
4581
|
+
gLenHorizontal = lenLateralMax * param.LH + eLateralTotal;
|
|
4569
4582
|
gLenVertical = lenMain * param.LV + eMainTotal;
|
|
4570
4583
|
}
|
|
4571
4584
|
const gArea = gLenHorizontal * gLenVertical / 10 ** 6;
|
|
@@ -4585,8 +4598,8 @@ function pGeom14(t, param) {
|
|
|
4585
4598
|
};
|
|
4586
4599
|
const panelPositions = [];
|
|
4587
4600
|
lenRow.forEach((oneRow, rowIdx) => {
|
|
4588
|
-
const half = (
|
|
4589
|
-
const offset = Math.floor((
|
|
4601
|
+
const half = (lenLateralMax - oneRow) % 2;
|
|
4602
|
+
const offset = Math.floor((lenLateralMax - oneRow) / 2);
|
|
4590
4603
|
for (let pIdx = 0; pIdx < oneRow; pIdx++) {
|
|
4591
4604
|
let dx = 0;
|
|
4592
4605
|
let dy = 0;
|
|
@@ -4676,8 +4689,8 @@ var pDef15 = {
|
|
|
4676
4689
|
tUpdate: 500
|
|
4677
4690
|
}
|
|
4678
4691
|
};
|
|
4679
|
-
function pGeom15(t, param) {
|
|
4680
|
-
const rGeome = initGeom15(pDef15.partName);
|
|
4692
|
+
function pGeom15(t, param, suffix = "") {
|
|
4693
|
+
const rGeome = initGeom15(pDef15.partName + suffix);
|
|
4681
4694
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
4682
4695
|
`;
|
|
4683
4696
|
try {
|
|
@@ -4725,8 +4738,8 @@ var pDef16 = {
|
|
|
4725
4738
|
tUpdate: 500
|
|
4726
4739
|
}
|
|
4727
4740
|
};
|
|
4728
|
-
function pGeom16(t, param) {
|
|
4729
|
-
const rGeome = initGeom16(pDef16.partName);
|
|
4741
|
+
function pGeom16(t, param, suffix = "") {
|
|
4742
|
+
const rGeome = initGeom16(pDef16.partName + suffix);
|
|
4730
4743
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
4731
4744
|
`;
|
|
4732
4745
|
try {
|
|
@@ -4784,8 +4797,8 @@ var pDef17 = {
|
|
|
4784
4797
|
// every 0.5 second
|
|
4785
4798
|
}
|
|
4786
4799
|
};
|
|
4787
|
-
function pGeom17(t, param) {
|
|
4788
|
-
const rGeome = initGeom17(pDef17.partName);
|
|
4800
|
+
function pGeom17(t, param, suffix = "") {
|
|
4801
|
+
const rGeome = initGeom17(pDef17.partName + suffix);
|
|
4789
4802
|
const figFace = figure17();
|
|
4790
4803
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
4791
4804
|
`;
|
|
@@ -4840,8 +4853,8 @@ var pDef18 = {
|
|
|
4840
4853
|
// every 0.5 second
|
|
4841
4854
|
}
|
|
4842
4855
|
};
|
|
4843
|
-
function pGeom18(t, param) {
|
|
4844
|
-
const rGeome = initGeom18(pDef18.partName);
|
|
4856
|
+
function pGeom18(t, param, suffix = "") {
|
|
4857
|
+
const rGeome = initGeom18(pDef18.partName + suffix);
|
|
4845
4858
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
4846
4859
|
`;
|
|
4847
4860
|
try {
|
|
@@ -4900,8 +4913,8 @@ var pDef19 = {
|
|
|
4900
4913
|
// every 0.5 second
|
|
4901
4914
|
}
|
|
4902
4915
|
};
|
|
4903
|
-
function pGeom19(t, param) {
|
|
4904
|
-
const rGeome = initGeom19(pDef19.partName);
|
|
4916
|
+
function pGeom19(t, param, suffix = "") {
|
|
4917
|
+
const rGeome = initGeom19(pDef19.partName + suffix);
|
|
4905
4918
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
4906
4919
|
`;
|
|
4907
4920
|
try {
|
|
@@ -4960,8 +4973,8 @@ var pDef20 = {
|
|
|
4960
4973
|
// every 0.5 second
|
|
4961
4974
|
}
|
|
4962
4975
|
};
|
|
4963
|
-
function pGeom20(t, param) {
|
|
4964
|
-
const rGeome = initGeom20(pDef20.partName);
|
|
4976
|
+
function pGeom20(t, param, suffix = "") {
|
|
4977
|
+
const rGeome = initGeom20(pDef20.partName + suffix);
|
|
4965
4978
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
4966
4979
|
`;
|
|
4967
4980
|
try {
|
|
@@ -5036,8 +5049,8 @@ var pDef21 = {
|
|
|
5036
5049
|
// every 0.5 second
|
|
5037
5050
|
}
|
|
5038
5051
|
};
|
|
5039
|
-
function pGeom21(t, param) {
|
|
5040
|
-
const rGeome = initGeom21(pDef21.partName);
|
|
5052
|
+
function pGeom21(t, param, suffix = "") {
|
|
5053
|
+
const rGeome = initGeom21(pDef21.partName + suffix);
|
|
5041
5054
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5042
5055
|
`;
|
|
5043
5056
|
try {
|
|
@@ -5106,8 +5119,8 @@ var pDef22 = {
|
|
|
5106
5119
|
// every 0.5 second
|
|
5107
5120
|
}
|
|
5108
5121
|
};
|
|
5109
|
-
function pGeom22(t, param) {
|
|
5110
|
-
const rGeome = initGeom22(pDef22.partName);
|
|
5122
|
+
function pGeom22(t, param, suffix = "") {
|
|
5123
|
+
const rGeome = initGeom22(pDef22.partName + suffix);
|
|
5111
5124
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5112
5125
|
`;
|
|
5113
5126
|
try {
|
|
@@ -5170,8 +5183,8 @@ var pDef23 = {
|
|
|
5170
5183
|
// every 0.5 second
|
|
5171
5184
|
}
|
|
5172
5185
|
};
|
|
5173
|
-
function pGeom23(t, param) {
|
|
5174
|
-
const rGeome = initGeom23(pDef23.partName);
|
|
5186
|
+
function pGeom23(t, param, suffix = "") {
|
|
5187
|
+
const rGeome = initGeom23(pDef23.partName + suffix);
|
|
5175
5188
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5176
5189
|
`;
|
|
5177
5190
|
try {
|
|
@@ -5232,8 +5245,8 @@ var pDef24 = {
|
|
|
5232
5245
|
// every 0.5 second
|
|
5233
5246
|
}
|
|
5234
5247
|
};
|
|
5235
|
-
function pGeom24(t, param) {
|
|
5236
|
-
const rGeome = initGeom24(pDef24.partName);
|
|
5248
|
+
function pGeom24(t, param, suffix = "") {
|
|
5249
|
+
const rGeome = initGeom24(pDef24.partName + suffix);
|
|
5237
5250
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5238
5251
|
`;
|
|
5239
5252
|
try {
|
|
@@ -5306,8 +5319,8 @@ var pDef25 = {
|
|
|
5306
5319
|
// every 0.5 second
|
|
5307
5320
|
}
|
|
5308
5321
|
};
|
|
5309
|
-
function pGeom25(t, param) {
|
|
5310
|
-
const rGeome = initGeom25(pDef25.partName);
|
|
5322
|
+
function pGeom25(t, param, suffix = "") {
|
|
5323
|
+
const rGeome = initGeom25(pDef25.partName + suffix);
|
|
5311
5324
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5312
5325
|
`;
|
|
5313
5326
|
try {
|
|
@@ -5411,8 +5424,8 @@ var pDef26 = {
|
|
|
5411
5424
|
// every 0.5 second
|
|
5412
5425
|
}
|
|
5413
5426
|
};
|
|
5414
|
-
function pGeom26(t, param) {
|
|
5415
|
-
const rGeome = initGeom26(pDef26.partName);
|
|
5427
|
+
function pGeom26(t, param, suffix = "") {
|
|
5428
|
+
const rGeome = initGeom26(pDef26.partName + suffix);
|
|
5416
5429
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5417
5430
|
`;
|
|
5418
5431
|
try {
|
|
@@ -5556,8 +5569,8 @@ var pDef27 = {
|
|
|
5556
5569
|
// every 0.5 second
|
|
5557
5570
|
}
|
|
5558
5571
|
};
|
|
5559
|
-
function pGeom27(t, param) {
|
|
5560
|
-
const rGeome = initGeom27(pDef27.partName);
|
|
5572
|
+
function pGeom27(t, param, suffix = "") {
|
|
5573
|
+
const rGeome = initGeom27(pDef27.partName + suffix);
|
|
5561
5574
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5562
5575
|
`;
|
|
5563
5576
|
try {
|
|
@@ -5646,8 +5659,8 @@ var pDef28 = {
|
|
|
5646
5659
|
tUpdate: 500
|
|
5647
5660
|
}
|
|
5648
5661
|
};
|
|
5649
|
-
function pGeom28(t, param) {
|
|
5650
|
-
const rGeome = initGeom28(pDef28.partName);
|
|
5662
|
+
function pGeom28(t, param, suffix = "") {
|
|
5663
|
+
const rGeome = initGeom28(pDef28.partName + suffix);
|
|
5651
5664
|
rGeome.logstr += `${rGeome.partName} simTime: ${t}
|
|
5652
5665
|
`;
|
|
5653
5666
|
try {
|