@enervance/insight-cim-model 0.0.258 → 0.0.260

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