@enervance/insight-cim-model 0.0.257 → 0.0.258
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 -1
- package/dist/converter/integral7/converter.integral7.js +23 -14
- package/dist/converter/integral7/converter.integral7.js.map +1 -1
- package/dist/converter/integral7/dl-convert/dl-converter-i7.d.ts +3 -0
- package/dist/converter/integral7/dl-convert/dl-converter-i7.js +7 -9
- package/dist/converter/integral7/dl-convert/dl-converter-i7.js.map +1 -1
- package/dist/converter/integral7/dl-convert/executor.d.ts +31 -3
- package/dist/converter/integral7/dl-convert/executor.js +90 -24
- package/dist/converter/integral7/dl-convert/executor.js.map +1 -1
- package/dist/converter/integral7/interface-i7/data-structures-i7.js.map +1 -1
- package/dist/converter/integral7/interface-i7/export-frame-i7.js +1 -0
- package/dist/converter/integral7/interface-i7/export-frame-i7.js.map +1 -1
- package/dist/converter/integral7/interface-i7/uuid-config.interface.d.ts +0 -1
- package/dist/converter/integral7/utils-cgmes-export.js +1 -0
- package/dist/converter/integral7/utils-cgmes-export.js.map +1 -1
- package/dist/etl/etl-neplan/etl-neplan-csv.js +1 -1
- package/dist/etl/etl-neplan/etl-neplan-csv.js.map +1 -1
- package/dist/model/common/Location.js +1 -2
- package/dist/model/common/Location.js.map +1 -1
- package/dist/model/common/PositionPoint.js +1 -2
- package/dist/model/common/PositionPoint.js.map +1 -1
- package/dist/model/core/BaseVoltage.js +1 -2
- package/dist/model/core/BaseVoltage.js.map +1 -1
- package/dist/model/core/ConnectivityNode.js +1 -2
- package/dist/model/core/ConnectivityNode.js.map +1 -1
- package/dist/model/core/IdentifiedObject.js +1 -3
- package/dist/model/core/IdentifiedObject.js.map +1 -1
- package/dist/model/core/Substation.js +1 -2
- package/dist/model/core/Substation.js.map +1 -1
- package/dist/model/core/Terminal.js +0 -2
- package/dist/model/core/Terminal.js.map +1 -1
- package/dist/model/core/VoltageLevel.js +3 -4
- package/dist/model/core/VoltageLevel.js.map +1 -1
- package/dist/model/diagram/Diagram.js +2 -2
- package/dist/model/diagram/Diagram.js.map +1 -1
- package/dist/model/equivalents/EquivalentBranch.d.ts +0 -1
- package/dist/model/equivalents/EquivalentBranch.js +2 -10
- package/dist/model/equivalents/EquivalentBranch.js.map +1 -1
- package/dist/model/equivalents/EquivalentInjection.d.ts +0 -4
- package/dist/model/equivalents/EquivalentInjection.js +24 -54
- package/dist/model/equivalents/EquivalentInjection.js.map +1 -1
- package/dist/model/extensions/integral/assetinfo/INTEGRALPowerTransformer2WInfo.js +2 -3
- package/dist/model/extensions/integral/assetinfo/INTEGRALPowerTransformer2WInfo.js.map +1 -1
- package/dist/model/extensions/integral/assetinfo/INTEGRALPowerTransformer3WInfo.js +0 -3
- package/dist/model/extensions/integral/assetinfo/INTEGRALPowerTransformer3WInfo.js.map +1 -1
- package/dist/model/extensions/integral/equivalents/INTEGRALEquivalentInjection.js +5 -12
- package/dist/model/extensions/integral/equivalents/INTEGRALEquivalentInjection.js.map +1 -1
- package/dist/model/extensions/neplan-westnetz/assets/WNFacility.js.map +1 -1
- package/dist/model/extensions/neplan-westnetz/core/WNFeeder.js +26 -5
- package/dist/model/extensions/neplan-westnetz/core/WNFeeder.js.map +1 -1
- package/dist/model/extensions/neplan-westnetz/wires/WNEnergyConsumer.js +12 -2
- package/dist/model/extensions/neplan-westnetz/wires/WNEnergyConsumer.js.map +1 -1
- package/dist/model/generation/ThermalGeneratingUnit.d.ts +0 -6
- package/dist/model/generation/ThermalGeneratingUnit.js +0 -53
- package/dist/model/generation/ThermalGeneratingUnit.js.map +1 -1
- package/dist/model/operationallimits/CurrentLimit.js +2 -6
- package/dist/model/operationallimits/CurrentLimit.js.map +1 -1
- package/dist/model/operationallimits/OperationalLimitSet.js +2 -5
- package/dist/model/operationallimits/OperationalLimitSet.js.map +1 -1
- package/dist/model/operationallimits/OperationalLimitType.js +1 -3
- package/dist/model/operationallimits/OperationalLimitType.js.map +1 -1
- package/dist/model/wires/ACLineSegment.js +2 -3
- package/dist/model/wires/ACLineSegment.js.map +1 -1
- package/dist/model/wires/BusbarSection.js +1 -2
- package/dist/model/wires/BusbarSection.js.map +1 -1
- package/dist/model/wires/ExternalNetworkInjection.js +2 -5
- package/dist/model/wires/ExternalNetworkInjection.js.map +1 -1
- package/dist/model/wires/GroundDisconnector.d.ts +1 -1
- package/dist/model/wires/GroundDisconnector.js +1 -1
- package/dist/model/wires/GroundDisconnector.js.map +1 -1
- package/dist/model/wires/Line.js +2 -5
- package/dist/model/wires/Line.js.map +1 -1
- package/dist/model/wires/PowerTransformer.js +0 -2
- package/dist/model/wires/PowerTransformer.js.map +1 -1
- package/dist/model/wires/PowerTransformerEnd.js +0 -2
- package/dist/model/wires/PowerTransformerEnd.js.map +1 -1
- package/dist/model/wires/RatioTapChanger.js +1 -1
- package/dist/model/wires/RegulatingControl.js +1 -2
- package/dist/model/wires/RegulatingControl.js.map +1 -1
- package/dist/model/wires/Switch.js +2 -3
- package/dist/model/wires/Switch.js.map +1 -1
- package/dist/model/wires/SynchronousMachine.js +1 -2
- package/dist/model/wires/SynchronousMachine.js.map +1 -1
- package/dist/model-container/model/EVModelsContainer.d.ts +0 -6
- package/dist/model-container/model/EVModelsContainer.js +2 -19
- package/dist/model-container/model/EVModelsContainer.js.map +1 -1
- package/dist/model-container/model/ModelContainer.d.ts +4 -1
- package/dist/model-container/model/ModelContainer.js +10 -0
- package/dist/model-container/model/ModelContainer.js.map +1 -1
- package/dist/util/util-topology.js +8 -23
- package/dist/util/util-topology.js.map +1 -1
- package/dist/utils2/cim.model.utils.js +1 -5
- package/dist/utils2/cim.model.utils.js.map +1 -1
- package/dist/utils2/common.utils.js +2 -3
- package/dist/utils2/common.utils.js.map +1 -1
- package/dist/utils2/import.utils.js +2 -0
- package/dist/utils2/import.utils.js.map +1 -1
- package/dist/utils2/parser.utils.d.ts +1 -0
- package/dist/utils2/parser.utils.js +3 -0
- package/dist/utils2/parser.utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/etl/etl-igp/etl-igp.d.ts +0 -2
- package/dist/etl/etl-igp/etl-igp.js +0 -7
- package/dist/etl/etl-igp/etl-igp.js.map +0 -1
|
@@ -10,10 +10,11 @@ import { DefaultValuesConfigInterface } from './interface-i7/default-values-conf
|
|
|
10
10
|
import { I7ExportFrame } from './interface-i7/export-frame-i7.js';
|
|
11
11
|
import { ObjectMappingConfigInterface } from './interface-i7/object-mapping-config.interface.js';
|
|
12
12
|
import { AsynchronmotorTyp, Einspeisung, Ersatzquerzweig, GeneratorTyp, KDrosselTyp, Standort, Trafo } from './model/interfaces.js';
|
|
13
|
-
import { Executor } from './dl-convert/executor.js';
|
|
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';
|
|
16
16
|
export declare class ConverterIntegral7 {
|
|
17
|
+
#private;
|
|
17
18
|
logger: ILogger;
|
|
18
19
|
terminalUUID: string;
|
|
19
20
|
/** Verbindung zur MySQL DB */
|
|
@@ -59,6 +60,8 @@ export declare class ConverterIntegral7 {
|
|
|
59
60
|
executor: Executor;
|
|
60
61
|
objectMappingConfig: ObjectMappingConfigInterface;
|
|
61
62
|
defaultValuesConfig: DefaultValuesConfigInterface;
|
|
63
|
+
set configurableDLConvertOptions(arg: ConfigurableDLConvertOptions);
|
|
64
|
+
get configurableDLConvertOptions(): ConfigurableDLConvertOptions;
|
|
62
65
|
constructor();
|
|
63
66
|
/**
|
|
64
67
|
* Konvertiert das Netz aus der MySQL Datenbank
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _ConverterIntegral7_configurableDLConvertOptions;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.getGeoCoordinates = exports.ConverterIntegral7 = void 0;
|
|
4
5
|
const tslib_1 = require("tslib");
|
|
@@ -146,6 +147,12 @@ const i7_graph_utils_1 = require("./model/i7-graph-utils.js");
|
|
|
146
147
|
const TopologicalNode_1 = require("../../model/topology/TopologicalNode.js");
|
|
147
148
|
const geodata_util_1 = require("../../util/geodata.util.js");
|
|
148
149
|
class ConverterIntegral7 {
|
|
150
|
+
set configurableDLConvertOptions(arg) {
|
|
151
|
+
tslib_1.__classPrivateFieldSet(this, _ConverterIntegral7_configurableDLConvertOptions, arg, "f");
|
|
152
|
+
}
|
|
153
|
+
get configurableDLConvertOptions() {
|
|
154
|
+
return tslib_1.__classPrivateFieldGet(this, _ConverterIntegral7_configurableDLConvertOptions, "f");
|
|
155
|
+
}
|
|
149
156
|
constructor() {
|
|
150
157
|
/** Exportnetze gemäß Konfiguration */
|
|
151
158
|
this.exportFrames = new Map();
|
|
@@ -180,6 +187,7 @@ class ConverterIntegral7 {
|
|
|
180
187
|
this.ersatzZweigAnschlussKnotenIDs = new Set();
|
|
181
188
|
/** List of Blocktransformatoren */
|
|
182
189
|
this.blocktransformatoren = [];
|
|
190
|
+
_ConverterIntegral7_configurableDLConvertOptions.set(this, {});
|
|
183
191
|
}
|
|
184
192
|
/**
|
|
185
193
|
* Konvertiert das Netz aus der MySQL Datenbank
|
|
@@ -290,6 +298,7 @@ class ConverterIntegral7 {
|
|
|
290
298
|
});
|
|
291
299
|
}
|
|
292
300
|
convertFrame(frame, geoRegion, objectMappingConfig, energyTypesConfig, defaultValuesConfig, energySourceTypeMappingConfig) {
|
|
301
|
+
var _a;
|
|
293
302
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
294
303
|
const integral7Modell = frame.getI7Model();
|
|
295
304
|
const cimModel = frame.cimModel;
|
|
@@ -561,6 +570,7 @@ class ConverterIntegral7 {
|
|
|
561
570
|
const netz_standortIds = standortIDs.map(standortId => {
|
|
562
571
|
return { id: standortId };
|
|
563
572
|
});
|
|
573
|
+
const boundary_standortIds = [];
|
|
564
574
|
const netz_knotensoIds = knotenSoIDs.map(knotenSoId => {
|
|
565
575
|
return { id: knotenSoId };
|
|
566
576
|
});
|
|
@@ -570,6 +580,7 @@ class ConverterIntegral7 {
|
|
|
570
580
|
});
|
|
571
581
|
entry[1].integral7Modell.integralKnotenSo.forEach((_, key) => {
|
|
572
582
|
netz_knotensoIds.push({ id: key });
|
|
583
|
+
boundary_standortIds.push({ id: key });
|
|
573
584
|
});
|
|
574
585
|
}
|
|
575
586
|
const netzLeitungIds = [...integral7Modell.integralLeitungen.keys()];
|
|
@@ -577,9 +588,9 @@ class ConverterIntegral7 {
|
|
|
577
588
|
const netzErsatzlaengszweigIds = [...integral7Modell.integalErsatzLaengszweigIds.values()];
|
|
578
589
|
const netzStreckenlastIds = [...integral7Modell.integralLeitungen.values()].map(leitung => leitung.streckenlastId).filter(id => id !== undefined && id !== null);
|
|
579
590
|
const allLeitungIds = [...new Set([...netzLeitungIds, ...netzHgueLeitungIds, ...netzErsatzlaengszweigIds, ...netzStreckenlastIds]).values()];
|
|
580
|
-
const
|
|
581
|
-
|
|
582
|
-
|
|
591
|
+
const overall_substation_amount = ((_a = standortIDs === null || standortIDs === void 0 ? void 0 : standortIDs.length) !== null && _a !== void 0 ? _a : 0);
|
|
592
|
+
this.configurableDLConvertOptions;
|
|
593
|
+
const convertOptions = Object.assign(Object.assign({}, JSON.parse(JSON.stringify(this.configurableDLConvertOptions))), { overall_substation_amount: overall_substation_amount, visible_only: true, boundary_standortIds, only: {
|
|
583
594
|
netz_standortIds,
|
|
584
595
|
netz_knotensoIds,
|
|
585
596
|
netz_schaltanlagenIds: schaltanlagenIDs.map(schaltanlagenId => {
|
|
@@ -594,8 +605,8 @@ class ConverterIntegral7 {
|
|
|
594
605
|
netz_leitungIds: allLeitungIds.map(leitungId => {
|
|
595
606
|
return { id: leitungId };
|
|
596
607
|
})
|
|
597
|
-
}
|
|
598
|
-
|
|
608
|
+
} });
|
|
609
|
+
frame.cimModel.addDiagramStyle(this.executor.dlConverter.diagramStyles[cim_constants_1.DiagramLayoutTypes.NODE_BREAKER]);
|
|
599
610
|
const resultingObjects = yield this.executor.convert(convertOptions);
|
|
600
611
|
for (const resultingObject of resultingObjects) {
|
|
601
612
|
if (resultingObject instanceof Diagram_1.Diagram) {
|
|
@@ -2053,13 +2064,10 @@ class ConverterIntegral7 {
|
|
|
2053
2064
|
equivalentInjection.q_bel = q_sKonst;
|
|
2054
2065
|
equivalentInjection.p_ki = p_ki;
|
|
2055
2066
|
equivalentInjection.q_ki = q_ki;
|
|
2056
|
-
const p = (p_ein ? p_ein : 0) + (p_sKonst ? p_sKonst : 0)
|
|
2057
|
-
const q = (q_ein ? q_ein : 0) + (q_sKonst ? q_sKonst : 0)
|
|
2058
|
-
if (i7Data.guid === '_dc09c365-ca51-4e10-964c-fc99b33e98dd') {
|
|
2059
|
-
console.log();
|
|
2060
|
-
}
|
|
2067
|
+
const p = (p_ein ? p_ein : 0) + (p_sKonst ? p_sKonst : 0);
|
|
2068
|
+
const q = (q_ein ? q_ein : 0) + (q_sKonst ? q_sKonst : 0);
|
|
2061
2069
|
equivalentInjection.p = p;
|
|
2062
|
-
equivalentInjection.
|
|
2070
|
+
equivalentInjection.p = q;
|
|
2063
2071
|
equivalentInjection.einspeisePrio = einspeisePrio;
|
|
2064
2072
|
equivalentInjection.kr = kr;
|
|
2065
2073
|
equivalentInjection.aggregate = true; // default Wert im I7 Export. Not needed for EquivalentInjection, BusbarSection, PowerTransformerEnd, EquivalentShunt, EquivalentBranch
|
|
@@ -2215,9 +2223,6 @@ class ConverterIntegral7 {
|
|
|
2215
2223
|
equivalentBranch.key = i7Schluessel;
|
|
2216
2224
|
const flag_lfl = (0, parser_utils_1.isBooleanI7)(i7Data.flag_lfl) ? (0, parser_utils_1.convertToBooleanI7)(i7Data.flag_lfl) : false;
|
|
2217
2225
|
const flag_ks = (0, parser_utils_1.isBooleanI7)(i7Data.flag_ks) ? (0, parser_utils_1.convertToBooleanI7)(i7Data.flag_ks) : false;
|
|
2218
|
-
if (equivalentBranch.getUUID() === '4d3708ad-7474-4bae-adc4-f636b64cdfc' || i7Data.guid === '_4d3708ad-7474-4bae-adc4-f636b64cdfcb') {
|
|
2219
|
-
let stop = true;
|
|
2220
|
-
}
|
|
2221
2226
|
// Topologie
|
|
2222
2227
|
/** Anfang
|
|
2223
2228
|
* 3 moegliche Anschluesse
|
|
@@ -2226,6 +2231,9 @@ class ConverterIntegral7 {
|
|
|
2226
2231
|
* KnotenZw -> Netzschlaufe -> KnotenSo -> Anschlusspunkt */
|
|
2227
2232
|
this.createBoundaryConnection(frame, equivalentBranch, i7Data.aknoten, PhaseCode_1.PhaseCode.ABC);
|
|
2228
2233
|
this.createBoundaryConnection(frame, equivalentBranch, i7Data.eknoten, PhaseCode_1.PhaseCode.ABC);
|
|
2234
|
+
if (equivalentBranch.getUUID() === '67528dfe-be93-4c44-81db-5708ecd9377e') {
|
|
2235
|
+
let stop = true;
|
|
2236
|
+
}
|
|
2229
2237
|
/**EQ */
|
|
2230
2238
|
if (flag_lfl && !flag_ks) {
|
|
2231
2239
|
equivalentBranch.r = (0, parser_utils_1.isNumericI7)(i7Data.r12_lfl) ? (0, parser_utils_1.convertToNumberI7)(i7Data.r12_lfl) : 10e9;
|
|
@@ -6703,6 +6711,7 @@ class ConverterIntegral7 {
|
|
|
6703
6711
|
}
|
|
6704
6712
|
}
|
|
6705
6713
|
exports.ConverterIntegral7 = ConverterIntegral7;
|
|
6714
|
+
_ConverterIntegral7_configurableDLConvertOptions = new WeakMap();
|
|
6706
6715
|
function getGeoCoordinates(i7Data) {
|
|
6707
6716
|
/** Fall 1
|
|
6708
6717
|
* geokoor_pl_breite_h && geokoor_pl_breite_m geokoor_pl_breite_s sind gepflegt */
|