@enervance/insight-cim-model 0.0.325 → 0.0.328
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/converter/integral7/converter.integral7.d.ts +4 -2
- package/dist/converter/integral7/converter.integral7.js +35 -17
- package/dist/converter/integral7/converter.integral7.js.map +1 -1
- package/dist/converter/integral7/model/interfaces.d.ts +3 -1
- package/dist/converter/integral7/model/interfaces.js.map +1 -1
- package/dist/converter/integral7/sql/integral.sql.js +1 -2
- package/dist/converter/integral7/sql/integral.sql.js.map +1 -1
- package/dist/model/extensions/amprion/additionalassetvalue/AMPRIONAdditionalAssetValue.js.map +1 -1
- package/dist/model/extensions/amprion/additionalassetvalue/AMPRIONAdditionalTransformerValue.js +8 -1
- package/dist/model/extensions/amprion/additionalassetvalue/AMPRIONAdditionalTransformerValue.js.map +1 -1
- package/dist/model/extensions/amprion/assets/AMPRIONFacility.js +4 -4
- package/dist/model/extensions/amprion/assets/AMPRIONFacility.js.map +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ import { ConverterStatus, IExportConfig, Integral7Model, ITargetVoltage } from '
|
|
|
9
9
|
import { DefaultValuesConfigInterface } from './interface-i7/default-values-config.interface.js';
|
|
10
10
|
import { I7ExportFrame } from './interface-i7/export-frame-i7.js';
|
|
11
11
|
import { ObjectMappingConfigInterface } from './interface-i7/object-mapping-config.interface.js';
|
|
12
|
-
import { AsynchronmotorTyp, Einspeisung, Ersatzquerzweig, GeneratorTyp, KDrosselTyp, Marktgebiet, Netzgruppe, Standort, Trafo } from './model/interfaces.js';
|
|
12
|
+
import { AsynchronmotorTyp, Einspeisung, Ersatzquerzweig, GeneratorTyp, ISvProfileData, KDrosselTyp, Marktgebiet, Netzgruppe, Standort, Trafo } from './model/interfaces.js';
|
|
13
13
|
import { ConfigurableDLConvertOptions, Executor } from './dl-convert/executor.js';
|
|
14
14
|
import { IEnergySourceTypeMapping } from './interface-i7/energy-source.type.mapping.js';
|
|
15
15
|
import { IUuidConfig } from './interface-i7/uuid-config.interface.js';
|
|
@@ -63,7 +63,9 @@ export declare class ConverterIntegral7 {
|
|
|
63
63
|
/** Array zur Speicherung von I7 Berechnungen */
|
|
64
64
|
private powerFlowResults;
|
|
65
65
|
/** Map zur Speicherung der relevanten Infos für das SV-Profile je Frame */
|
|
66
|
-
private
|
|
66
|
+
private: Map<number, ISvProfileData>;
|
|
67
|
+
private svProfileZweigData;
|
|
68
|
+
private svProfileKnotenData;
|
|
67
69
|
set configurableDLConvertOptions(arg: ConfigurableDLConvertOptions);
|
|
68
70
|
get configurableDLConvertOptions(): ConfigurableDLConvertOptions;
|
|
69
71
|
constructor();
|
|
@@ -317,7 +317,8 @@ class ConverterIntegral7 {
|
|
|
317
317
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
318
318
|
const integral7Modell = frame.getI7Model();
|
|
319
319
|
const cimModel = frame.cimModel;
|
|
320
|
-
this.
|
|
320
|
+
this.svProfileZweigData = new Map;
|
|
321
|
+
this.svProfileKnotenData = new Map;
|
|
321
322
|
const subGeoRegionsUUIDs = geoRegion.regions.map(elem => elem.mrid);
|
|
322
323
|
const subGeoRegionsI7IDs = [];
|
|
323
324
|
for (const uuid of subGeoRegionsUUIDs) {
|
|
@@ -596,8 +597,8 @@ class ConverterIntegral7 {
|
|
|
596
597
|
// exportiere erstes gespeichertes Ergebnis
|
|
597
598
|
if (this.powerFlowResults.length) {
|
|
598
599
|
const powerFlowResultID = this.powerFlowResults[0].ergnr;
|
|
599
|
-
/**
|
|
600
|
-
yield this.createSvPowerFlowAnschluesse(cimModel, powerFlowResultID, this.
|
|
600
|
+
/** Querzweig */
|
|
601
|
+
yield this.createSvPowerFlowAnschluesse(cimModel, powerFlowResultID, this.svProfileZweigData);
|
|
601
602
|
/** Sammelschienen */
|
|
602
603
|
yield this.createSvProfileDataSsab(cimModel, powerFlowResultID);
|
|
603
604
|
/** KnotenSo */
|
|
@@ -693,7 +694,7 @@ class ConverterIntegral7 {
|
|
|
693
694
|
createSvPowerFlowAnschluesse(cimModel, powerFlowResultID, svProfileData) {
|
|
694
695
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
695
696
|
/** Längszweige */
|
|
696
|
-
if (!this.
|
|
697
|
+
if (!this.svProfileZweigData.size && !this.powerFlowResults.length)
|
|
697
698
|
return;
|
|
698
699
|
if (!this.isTableAvailable(integral_sql_1.Integral7TableNames.ERG_LFL_ANSCHLUSS))
|
|
699
700
|
return;
|
|
@@ -1348,7 +1349,11 @@ class ConverterIntegral7 {
|
|
|
1348
1349
|
else {
|
|
1349
1350
|
this.logger.debug('Sammelschiene ' + i7Data.id + ' besitzt keine Schaltanlage.');
|
|
1350
1351
|
}
|
|
1351
|
-
this.createConnection(cimModel, busbarSection, connectivityNode, PhaseCode_1.PhaseCode.ABC, true);
|
|
1352
|
+
const terminal = this.createConnection(cimModel, busbarSection, connectivityNode, PhaseCode_1.PhaseCode.ABC, true);
|
|
1353
|
+
this.svProfileKnotenData.set(i7Data.id, {
|
|
1354
|
+
powerFlowResultID: i7Data.id,
|
|
1355
|
+
terminalUUID: terminal === null || terminal === void 0 ? void 0 : terminal.mrid
|
|
1356
|
+
});
|
|
1352
1357
|
this.addIdMapping(i7Data.id, connectivityNode.mrid, integral_sql_1.Integral7TableNames.SAMMELSCHIENE);
|
|
1353
1358
|
cimModel.addConnectivityNode(connectivityNode);
|
|
1354
1359
|
cimModel.addBusbarSection(busbarSection);
|
|
@@ -2579,8 +2584,17 @@ class ConverterIntegral7 {
|
|
|
2579
2584
|
* KontenSo -> Anschluesspunkt
|
|
2580
2585
|
* KnotenSf -> Schaltfeldpunkt
|
|
2581
2586
|
* KnotenZw -> Netzschlaufe -> KnotenSo -> Anschlusspunkt */
|
|
2582
|
-
this.createBoundaryConnection(frame, equivalentBranch, i7Data.aknoten, PhaseCode_1.PhaseCode.ABC);
|
|
2583
|
-
this.createBoundaryConnection(frame, equivalentBranch, i7Data.eknoten, PhaseCode_1.PhaseCode.ABC);
|
|
2587
|
+
const startTerminal = this.createBoundaryConnection(frame, equivalentBranch, i7Data.aknoten, PhaseCode_1.PhaseCode.ABC);
|
|
2588
|
+
const targetTerminal = this.createBoundaryConnection(frame, equivalentBranch, i7Data.eknoten, PhaseCode_1.PhaseCode.ABC);
|
|
2589
|
+
/** SVProfile Data */
|
|
2590
|
+
this.svProfileZweigData.set(i7Data.flakn3p, {
|
|
2591
|
+
powerFlowResultID: i7Data.flakn3p,
|
|
2592
|
+
terminalUUID: startTerminal === null || startTerminal === void 0 ? void 0 : startTerminal.mrid
|
|
2593
|
+
});
|
|
2594
|
+
this.svProfileZweigData.set(i7Data.flekn3p, {
|
|
2595
|
+
powerFlowResultID: i7Data.flekn3p,
|
|
2596
|
+
terminalUUID: targetTerminal === null || targetTerminal === void 0 ? void 0 : targetTerminal.mrid
|
|
2597
|
+
});
|
|
2584
2598
|
/**EQ */
|
|
2585
2599
|
if (flag_lfl && !flag_ks) {
|
|
2586
2600
|
equivalentBranch.r = (0, parser_utils_1.isNumericI7)(i7Data.r12_lfl) ? (0, parser_utils_1.convertToNumberI7)(i7Data.r12_lfl) : 10e9;
|
|
@@ -3385,6 +3399,10 @@ class ConverterIntegral7 {
|
|
|
3385
3399
|
}
|
|
3386
3400
|
if (connectivityNode) {
|
|
3387
3401
|
const cpTerminal = this.createConnection(cimModel, condEquip, connectivityNode, PhaseCode_1.PhaseCode.ABC, true);
|
|
3402
|
+
this.svProfileZweigData.set(i7Data.flussinfo3p, {
|
|
3403
|
+
powerFlowResultID: i7Data.flussinfo3p,
|
|
3404
|
+
terminalUUID: cpTerminal === null || cpTerminal === void 0 ? void 0 : cpTerminal.mrid
|
|
3405
|
+
});
|
|
3388
3406
|
//create regulating control
|
|
3389
3407
|
if (isRegulatingControl && (i7DataEinsp || i7DataKomp)) {
|
|
3390
3408
|
let cterminal = undefined; //connection point terminal of this device
|
|
@@ -4285,8 +4303,8 @@ class ConverterIntegral7 {
|
|
|
4285
4303
|
tableName = integral_sql_1.Integral7TableNames.FREILEITUNG;
|
|
4286
4304
|
}
|
|
4287
4305
|
const leitungStromkreisabschnitt = yield this.mysqlController.execQuery((0, integral_sql_1.getI7Query)(type, this.getAvailableColumnNames(tableName), leitungIDs));
|
|
4288
|
-
let result_ohl =
|
|
4289
|
-
let result_cable =
|
|
4306
|
+
let result_ohl = new Array;
|
|
4307
|
+
let result_cable = new Array;
|
|
4290
4308
|
if (type.match(integral_sql_1.I7Objects.STROMKREISABSCHNITT_KABEL_FREILEITUNG)) {
|
|
4291
4309
|
result_cable = yield this.mysqlController.execQuery((0, integral_sql_1.getI7Query)(integral_sql_1.I7Objects.STROMKREISABSCHNITT_KABEL, this.getAvailableColumnNames(integral_sql_1.Integral7TableNames.KABEL), leitungIDs));
|
|
4292
4310
|
result_ohl = yield this.mysqlController.execQuery((0, integral_sql_1.getI7Query)(integral_sql_1.I7Objects.STROMKREISABSCHNITT_FREILEITUNG, this.getAvailableColumnNames(integral_sql_1.Integral7TableNames.FREILEITUNG), leitungIDs));
|
|
@@ -4371,7 +4389,7 @@ class ConverterIntegral7 {
|
|
|
4371
4389
|
const acLineSegmentStart = acLineSegments[0];
|
|
4372
4390
|
const startTerminal = this.createBoundaryConnection(frame, acLineSegmentStart, i7Data.aknoten, PhaseCode_1.PhaseCode.ABC);
|
|
4373
4391
|
/** SVProfile Data */
|
|
4374
|
-
this.
|
|
4392
|
+
this.svProfileZweigData.set(i7Data.flakn3p, {
|
|
4375
4393
|
powerFlowResultID: i7Data.flakn3p,
|
|
4376
4394
|
terminalUUID: startTerminal === null || startTerminal === void 0 ? void 0 : startTerminal.mrid
|
|
4377
4395
|
});
|
|
@@ -4394,7 +4412,7 @@ class ConverterIntegral7 {
|
|
|
4394
4412
|
else {
|
|
4395
4413
|
this.logger.debug(`Leitung ${i7Data.id} ${acLineSegmentStart.mrid} besitzt keinen Anfangsknoten. ${i7Data.aknoten} ${this.integralID2UUID.get(i7Data.aknoten)}`);
|
|
4396
4414
|
}
|
|
4397
|
-
let cable = result_cable.filter(elem => elem.id === stromkreisabschnitte[0].id);
|
|
4415
|
+
let cable = result_cable === null || result_cable === void 0 ? void 0 : result_cable.filter(elem => elem.id === stromkreisabschnitte[0].id);
|
|
4398
4416
|
this.setACLineSegmentProperties(this.cimModelDefault, cimModel, acLineSegmentStart, stromkreisabschnitte[0], cable.length > 0, defaultValuesConfig);
|
|
4399
4417
|
cimModel.addACLineSegment(acLineSegmentStart);
|
|
4400
4418
|
/** Mitte */
|
|
@@ -4431,7 +4449,7 @@ class ConverterIntegral7 {
|
|
|
4431
4449
|
const acLineSegmentZiel = acLineSegments[anzahl - 1];
|
|
4432
4450
|
const targetTerminal = this.createBoundaryConnection(frame, acLineSegmentZiel, i7Data.eknoten, PhaseCode_1.PhaseCode.ABC);
|
|
4433
4451
|
/** SvProfile Data */
|
|
4434
|
-
this.
|
|
4452
|
+
this.svProfileZweigData.set(i7Data.flekn3p, {
|
|
4435
4453
|
powerFlowResultID: i7Data.flekn3p,
|
|
4436
4454
|
terminalUUID: targetTerminal === null || targetTerminal === void 0 ? void 0 : targetTerminal.mrid
|
|
4437
4455
|
});
|
|
@@ -5091,7 +5109,7 @@ class ConverterIntegral7 {
|
|
|
5091
5109
|
* */
|
|
5092
5110
|
const startTerminal = this.createBoundaryConnection(frame, powerTransformer, i7Data.aknoten, PhaseCode_1.PhaseCode.ABC);
|
|
5093
5111
|
/** SvProfile Data */
|
|
5094
|
-
this.
|
|
5112
|
+
this.svProfileZweigData.set(i7Data.flakn3p, {
|
|
5095
5113
|
powerFlowResultID: i7Data.flakn3p,
|
|
5096
5114
|
terminalUUID: startTerminal === null || startTerminal === void 0 ? void 0 : startTerminal.mrid
|
|
5097
5115
|
});
|
|
@@ -5130,7 +5148,7 @@ class ConverterIntegral7 {
|
|
|
5130
5148
|
const zielTerminal = ziel ? this.createConnection(cimModel, powerTransformer, ziel, PhaseCode.ABC, true, 2) : undefined;*/
|
|
5131
5149
|
const zielTerminal = this.createBoundaryConnection(frame, powerTransformer, i7Data.eknoten, PhaseCode_1.PhaseCode.ABC);
|
|
5132
5150
|
/** SvProfile Data */
|
|
5133
|
-
this.
|
|
5151
|
+
this.svProfileZweigData.set(i7Data.flekn3p, {
|
|
5134
5152
|
powerFlowResultID: i7Data.flekn3p,
|
|
5135
5153
|
terminalUUID: zielTerminal === null || zielTerminal === void 0 ? void 0 : zielTerminal.mrid
|
|
5136
5154
|
});
|
|
@@ -5332,7 +5350,7 @@ class ConverterIntegral7 {
|
|
|
5332
5350
|
const start = cimModel.getObject(knotenUUID);*/
|
|
5333
5351
|
const terminal1 = this.createBoundaryConnection(frame, powerTransformer, wicklung1.aknoten, PhaseCode_1.PhaseCode.ABC);
|
|
5334
5352
|
/** SvProfile Data */
|
|
5335
|
-
this.
|
|
5353
|
+
this.svProfileZweigData.set(wicklung1.flakn3p, {
|
|
5336
5354
|
powerFlowResultID: wicklung1.flakn3p,
|
|
5337
5355
|
terminalUUID: terminal1 === null || terminal1 === void 0 ? void 0 : terminal1.mrid
|
|
5338
5356
|
});
|
|
@@ -5382,7 +5400,7 @@ class ConverterIntegral7 {
|
|
|
5382
5400
|
/* const start2 = cimModel.getObject(this.integralID2UUID.get(wicklung2.aknoten));
|
|
5383
5401
|
const terminal2 = start ? this.createConnection(cimModel, powerTransformer, start2, PhaseCode.ABC, true, 2) : undefined;*/
|
|
5384
5402
|
const terminal2 = this.createBoundaryConnection(frame, powerTransformer, wicklung2.aknoten, PhaseCode_1.PhaseCode.ABC);
|
|
5385
|
-
this.
|
|
5403
|
+
this.svProfileZweigData.set(wicklung2.flakn3p, {
|
|
5386
5404
|
powerFlowResultID: wicklung2.flakn3p,
|
|
5387
5405
|
terminalUUID: terminal2 === null || terminal2 === void 0 ? void 0 : terminal2.mrid
|
|
5388
5406
|
});
|
|
@@ -5434,7 +5452,7 @@ class ConverterIntegral7 {
|
|
|
5434
5452
|
/* const start3 = cimModel.getObject(this.integralID2UUID.get(wicklung2.aknoten));
|
|
5435
5453
|
const terminal3 = start ? this.createConnection(cimModel, powerTransformer, start3, PhaseCode.ABC, true, 3) : undefined;*/
|
|
5436
5454
|
const terminal3 = this.createBoundaryConnection(frame, powerTransformer, wicklung3.aknoten, PhaseCode_1.PhaseCode.ABC);
|
|
5437
|
-
this.
|
|
5455
|
+
this.svProfileZweigData.set(wicklung3.flakn3p, {
|
|
5438
5456
|
powerFlowResultID: wicklung3.flakn3p,
|
|
5439
5457
|
terminalUUID: terminal3 === null || terminal3 === void 0 ? void 0 : terminal3.mrid
|
|
5440
5458
|
});
|