{ "cells": [ { "cell_type": "markdown", "id": "5556432f", "metadata": {}, "source": [ "# Tutorial 52: General Creation of Element Dataframes" ] }, { "cell_type": "markdown", "id": "8899e69a", "metadata": {}, "source": [ "This Example demonstrates the capabilities of the class Dataframes_SIR3S_Model that extends SIR3S_Model be abilities to work directley with pandas dataframes. It is shown how to create dataframes containing information about elements such as Nodes, Pipes, etc. existing in a SIR 3S Model. The methods presented are not user-defined and neither efficient, but get you the most important information quickly. For more detailed methods of creating dataframes, see Tutorial 51." ] }, { "cell_type": "markdown", "id": "e2d40c36", "metadata": {}, "source": [ "# Toolkit Release" ] }, { "cell_type": "code", "execution_count": 1, "id": "7fb5a07b", "metadata": {}, "outputs": [], "source": [ "#pip install " ] }, { "cell_type": "markdown", "id": "d6773e12", "metadata": {}, "source": [ "# Imports" ] }, { "cell_type": "markdown", "id": "134689cf", "metadata": {}, "source": [ "## SIR 3S Toolkit" ] }, { "cell_type": "markdown", "id": "69665f68", "metadata": {}, "source": [ "### Regular Import/Init" ] }, { "cell_type": "code", "execution_count": null, "id": "79d0fb2c", "metadata": {}, "outputs": [], "source": [ "SIR3S_SIRGRAF_DIR = r\"C:\\3S\\SIR 3S\\SirGraf-90-15-00-24_Quebec-Upd2\" #change to local path" ] }, { "cell_type": "code", "execution_count": 3, "id": "0f41d17a", "metadata": {}, "outputs": [], "source": [ "from sir3stoolkit.core import wrapper" ] }, { "cell_type": "code", "execution_count": 4, "id": "d539c981", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "" ] }, "execution_count": 4, "metadata": {}, "output_type": "execute_result" } ], "source": [ "wrapper" ] }, { "cell_type": "code", "execution_count": 5, "id": "37d59df0", "metadata": {}, "outputs": [], "source": [ "wrapper.Initialize_Toolkit(SIR3S_SIRGRAF_DIR)" ] }, { "cell_type": "markdown", "id": "ebf2c56e", "metadata": {}, "source": [ "### Additional Import/Init for Dataframes class" ] }, { "cell_type": "code", "execution_count": 6, "id": "893f889e", "metadata": {}, "outputs": [], "source": [ "from sir3stoolkit.mantle.dataframes import SIR3S_Model_Dataframes" ] }, { "cell_type": "code", "execution_count": 7, "id": "4b65297f", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Initialization complete\n" ] } ], "source": [ "s3s = SIR3S_Model_Dataframes()" ] }, { "cell_type": "markdown", "id": "2007993a", "metadata": {}, "source": [ "## Additional" ] }, { "cell_type": "code", "execution_count": 8, "id": "3a443734", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "from shapely.geometry import Point\n", "import re\n", "import folium\n", "from folium.plugins import HeatMap\n", "import numpy as np\n", "import geopandas as gpd\n", "from shapely import wkt\n", "import matplotlib.pyplot as plt\n", "import contextily as cx" ] }, { "cell_type": "markdown", "id": "d9a78e4d", "metadata": {}, "source": [ "# Open Model" ] }, { "cell_type": "code", "execution_count": 9, "id": "20ff3c21", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Model is open for further operation\n" ] } ], "source": [ "s3s.OpenModel(dbName=r\"Toolkit_Tutorial52_Model.db3\",\n", " providerType=s3s.ProviderTypes.SQLite,\n", " Mid=\"M-1-0-1\",\n", " saveCurrentlyOpenModel=False,\n", " namedInstance=\"\",\n", " userID=\"\",\n", " password=\"\")" ] }, { "cell_type": "markdown", "id": "95781c49", "metadata": {}, "source": [ "# Calculate Model" ] }, { "cell_type": "code", "execution_count": 10, "id": "410661f7", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Model Calculation is complete\n" ] } ], "source": [ "s3s.ExecCalculation(True) # To ensure result data" ] }, { "cell_type": "markdown", "id": "ccc8f89c", "metadata": {}, "source": [ "# Generate Element Dataframes" ] }, { "cell_type": "markdown", "id": "8d6189f7", "metadata": {}, "source": [ "We can use the [generate_element_dataframe()](https://3sconsult.github.io/sir3stoolkit/references/sir3stoolkit.mantle.html#sir3stoolkit.mantle.dataframes.SIR3S_Model_Dataframes.generate_element_dataframe) method to quickly generate basic dataframes containing all instances of hydraulic element types (Node, Pipe, etc.) in a SIR 3S model. " ] }, { "cell_type": "markdown", "id": "e94e2f37", "metadata": {}, "source": [ "All model_data and most result values (self.GetResultProperties_from_elementType(onlySelectedVectors=True)) for the static timestamp are included. Result values are given as floats, unless they are in vectorized form (relevant only for pipes), in that case they are strings." ] }, { "cell_type": "markdown", "id": "bfe6454d", "metadata": {}, "source": [ "The pd.Dataframe will automatically be transformed into a gpd.GeoDataFrame if a SRID is defined in the model, after a geometry column is created." ] }, { "cell_type": "code", "execution_count": 11, "id": "16e105ab", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "['AGSN_HydraulicProfile', 'AirVessel', 'Arrow', 'Atmosphere', 'BlockConnectionNode', 'CalcPari', 'CharacteristicLossTable', 'CharacteristicLossTable_Row', 'Circle', 'Compressor', 'CompressorTable', 'CompressorTable_Row', 'ControlEngineeringNexus', 'ControlMode', 'ControlPointTable', 'ControlPointTable_Row', 'ControlValve', 'ControlVariableConverter', 'ControlVariableConverterRSTE', 'CrossSectionTable', 'CrossSectionTable_Row', 'DPGR_DPKT_DatapointDpgrConnection', 'DPGR_DataPointGroup', 'DPKT_Datapoint', 'DamageRatesTable', 'DamageRatesTable_Row', 'DeadTimeElement', 'Demand', 'DifferentialRegulator', 'DirectionalArrow', 'DistrictHeatingConsumer', 'DistrictHeatingFeeder', 'Divider', 'DriveEfficiencyTable', 'DriveEfficiencyTable_Row', 'DrivePowerTable', 'DrivePowerTable_Row', 'EBES_FeederGroups', 'EfficiencyConverterTable', 'EfficiencyConverterTable_Row', 'ElementQuery', 'EnergyRecoveryTable', 'EnergyRecoveryTable_Row', 'EnvironmentTemp', 'FWBZ_DistrictHeatingReferenceValues', 'FlapValve', 'FlowControlUnit', 'FluidQualityParamSet', 'FluidQualityParamSet_OS', 'FluidThermalPropertyGroup', 'FreeDuct', 'FunctionGenerator', 'FunctionTable', 'FunctionTable_Row', 'GasComponent', 'GasMixture', 'GeneralSection', 'Gravitation', 'HeatExchanger', 'HeatFeederConsumerStation', 'HeaterCooler', 'Histeresis', 'House', 'Hydrant', 'Integrator', 'LAYR_Layer', 'LoadFactorTable', 'LoadFactorTable_Row', 'LogicalComparison', 'LogicalStorage', 'MeasuredVariableTable', 'MeasuredVariableTable_Row', 'MinMaxSelection', 'Multiplier', 'NetValve', 'Node', 'NonReturnValvesTable', 'NonReturnValvesTable_Row', 'NumericalDisplay', 'ObjectContainerSymbol', 'OpenContainer', 'Oval', 'PARZ_TransientCalculationParameters', 'PhaseSeparation', 'PidController', 'Pipe', 'PipeGroup', 'PipeTable', 'PipeTable_Row', 'PipeVertex', 'Polygon', 'Polyline', 'PressureRegulator', 'PressureZone', 'Pt1Controller', 'Pump', 'PumpCharTable', 'PumpCharTable_Row', 'PumpGroup', 'PumpOfPumpGroup', 'PumpSpeedTable', 'PumpSpeedTable_Row', 'RART_ControlMode', 'REGP_ControlParameters', 'RMES_DPTS_RmesInternalDataPoint', 'Rectangle', 'RegulatorsTable', 'RegulatorsTable_Row', 'ReturnTemperaturTable', 'ReturnTemperaturTable_Row', 'RoundRectangle', 'SIRGRAF', 'SPLZ_TimeSeries', 'SafetyValve', 'SetpointDevice', 'SolarCollector', 'StandPipe', 'Street', 'SummingPoint', 'SwitchInBlock', 'TemperatureTable', 'TemperatureTable_Row', 'Text', 'ThermalOutputTable', 'ThermalOutputTable_Row', 'ThermophysPropTable', 'ThermophysPropTable_Row', 'TransitionSymbol', 'Transmitter', 'TransportVariable', 'USCH_UserDefinedProperties', 'Unknown', 'VARA_ColorScale', 'VARA_ROWS_WidthOrScale', 'VRCT_ViewRectangle', 'Valve', 'ValveLiftTable', 'ValveLiftTable_Row', 'VarFlowTable', 'VarFlowTable_Row', 'VarPressureTable', 'VarPressureTable_Row', 'VentOpenCloseTable', 'VentOpenCloseTable_Row', 'VentValve', 'VentilatedPressureAirVessel', 'WBLZ_ThermalBalance', 'WeatherDataTable', 'WeatherDataTable_Row']\n" ] } ], "source": [ "object_types = [item for item in dir(s3s.ObjectTypes) if not (item.startswith('__') and item.endswith('__'))]\n", "print(object_types) # Check for hydraulic elmement types" ] }, { "cell_type": "markdown", "id": "fb750618", "metadata": {}, "source": [ "This function allows for little user definition the only paramters are element_type and tks of that element type to exclusively use. For more user defined dataframe creation see Tutorial 52." ] }, { "cell_type": "markdown", "id": "f8446b05", "metadata": {}, "source": [ "## Node" ] }, { "cell_type": "code", "execution_count": 12, "id": "1929d1bb", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "[2026-03-03 15:24:53,718] INFO in sir3stoolkit.mantle.dataframes: [generate_element_dataframe] Generating df for element type: ObjectTypes.Node ...\n", "[2026-03-03 15:24:53,719] DEBUG in sir3stoolkit.mantle.dataframes: [generate_element_dataframe] Generating df_model_data for element type: ObjectTypes.Node ...\n", "[2026-03-03 15:24:53,952] INFO in sir3stoolkit.mantle.dataframes: [model_data] Generating model_data dataframe for element type: ObjectTypes.Node\n", "[2026-03-03 15:24:53,952] INFO in sir3stoolkit.mantle.dataframes: [model_data] Retrieved 517 element(s) of element type ObjectTypes.Node.\n", "[2026-03-03 15:24:53,983] INFO in sir3stoolkit.mantle.dataframes: [Resolving model_data Properties] No properties given → using ALL model_data properties for ObjectTypes.Node.\n", "[2026-03-03 15:24:53,985] INFO in sir3stoolkit.mantle.dataframes: [Resolving model_data Properties] Using 37 model_data properties.\n", "[2026-03-03 15:24:53,986] INFO in sir3stoolkit.mantle.dataframes: [model_data] Retrieving model_data properties ['Name', 'Ktyp', 'Zkor', 'QmEin', 'Lfakt', 'Fkpzon', 'Fkfstf', 'Fkutmp', 'Fkfqps', 'Fkcont', 'Fk2lknot', 'Beschreibung', 'Idreferenz', 'Iplanung', 'Kvr', 'Qakt', 'Xkor', 'Ykor', 'NodeNamePosition', 'ShowNodeName', 'KvrKlartext', 'NumberOfVERB', 'HasBlockConnection', 'Tk', 'Pk', 'InVariant', 'GeometriesDiffer', 'SymbolFactor', 'bz.Drakonz', 'bz.Fk', 'bz.Fkpvar', 'bz.Fkqvar', 'bz.Fklfkt', 'bz.PhEin', 'bz.Tm', 'bz.Te', 'bz.PhMin'], geometry...\n", "[2026-03-03 15:24:56,899] INFO in sir3stoolkit.mantle.dataframes: [model_data] Transforming DataFrame to GeoDataFrame successful with EPSG: 25832\n", "[2026-03-03 15:24:56,899] INFO in sir3stoolkit.mantle.dataframes: [model_data] Done. Shape: (517, 39)\n", "[2026-03-03 15:24:57,166] DEBUG in sir3stoolkit.mantle.dataframes: [generate_element_dataframe] Generating df_results for element type: ObjectTypes.Node; at timestamp: 2023-02-13 00:00:00.000 +01:00 ...\n", "[2026-03-03 15:24:57,166] INFO in sir3stoolkit.mantle.dataframes: [results] Generating results dataframe for element type: ObjectTypes.Node\n", "[2026-03-03 15:24:57,485] INFO in sir3stoolkit.mantle.dataframes: [Resolving Timestamps] Only static timestamp 2023-02-13 00:00:00.000 +01:00 is used\n", "[2026-03-03 15:24:57,489] INFO in sir3stoolkit.mantle.dataframes: [Resolving Timestamps] 1 valid timestamp(s) will be used.\n", "[2026-03-03 15:24:57,496] INFO in sir3stoolkit.mantle.dataframes: [Resolving tks] Retrieved 517 element(s) of element type ObjectTypes.Node.\n", "[2026-03-03 15:24:57,504] INFO in sir3stoolkit.mantle.dataframes: [results] Using 73 result properties.\n", "[2026-03-03 15:24:57,555] INFO in sir3stoolkit.mantle.dataframes: [results] Retrieving result values...\n", "[2026-03-03 15:25:04,916] INFO in sir3stoolkit.mantle.dataframes: [results] 26884 fully NaN columns dropped.\n", "[2026-03-03 15:25:05,311] INFO in sir3stoolkit.mantle.dataframes: [results] Done. Shape: (1, 10857)\n", "[2026-03-03 15:25:05,311] DEBUG in sir3stoolkit.mantle.dataframes: [generate_element_dataframe] Merging df_model_data with df_results for element type: ObjectTypes.Node ...\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
tkNameKtypZkorQmEinLfaktFkpzonFkfstfFkutmpFkfqpsFkcontFk2lknotBeschreibungIdreferenzIplanungKvrQaktXkorYkorNodeNamePositionShowNodeNameKvrKlartextNumberOfVERBHasBlockConnectionTkPkInVariantGeometriesDifferSymbolFactorbz.Drakonzbz.Fkbz.Fkpvarbz.Fkqvarbz.Fklfktbz.PhEinbz.Tmbz.Tebz.PhMingeometryBCINDDPDPHHHMAX_INSTHMIN_INSTIAKTIVLFAKTAKTPPDAMPFPHPHMINMAXDIFPH_EINPH_MINPMAX_INSTPMIN_INSTQMRHOTTTRVOLD
04612618373909997110V-K2133SQKON543.5601552072816977965238647986732526367511155591325053703727727-150291288749724631185611267768413515094Anfangsknoten generiert von SirDB3S96AE619D388EA6F4CC9F24456148E088110714332.8580745.578924e+061FalseVorlauf0False46126183739099971104612618373909997110FalseFalse0.204612618373909997110-1-1-10000POINT (714332.858 5578924.328)17.00.007860.007861.1211651.1211651.1211651.01.01.7720490.01230.7720490.000000.7720490.01.7720491.7720490.01000.310.00000.0000000.0
14619205996903908050V-K983SQKON548.2601552072816977965238647986732526367511155591325053703727727-150291288749724631185130743098019975840Anfangsknoten generiert von SirDB3S56C0B9A1652EF8E9B7AB8C5DEACA2DC4110713611.0707335.578598e+061FalseVorlauf0False46192059969039080504619205996903908050FalseFalse0.204619205996903908050-1-1-10000POINT (713611.071 5578598.067)17.0-103.87130-103.87130-77.653320-77.653320-77.6533200.01.0-77.46335015.5488-78.463350-78.46335-78.4633500.0-77.463350-77.4633500.0865.2665.89700.0150230.0
24619682681341516951R-K2803SQKON554.9901552072816977965238647986732526367511155591325053703727727-150291288749724631185367059433340055050Anfangsknoten generiert von SirDB3S7BD49C919428AD75D6EA1203195E860E120713542.6394815.578805e+061FalseRücklauf0False46196826813415169514619682681341516951FalseFalse0.204619682681341516951-1-1-10000POINT (713542.639 5578804.842)17.0-93.81168-93.8116821.13528021.13528021.1352800.01.020.66526015.548819.6652600.0000019.6652600.020.66526020.6652600.0865.2662.46180.0000000.0
\n", "
" ], "text/plain": [ " tk Name Ktyp Zkor QmEin Lfakt \\\n", "0 4612618373909997110 V-K2133S QKON 543.56 0 1 \n", "1 4619205996903908050 V-K983S QKON 548.26 0 1 \n", "2 4619682681341516951 R-K2803S QKON 554.99 0 1 \n", "\n", " Fkpzon Fkfstf Fkutmp Fkfqps \\\n", "0 5520728169779652386 4798673252636751115 5591325053703727727 -1 \n", "1 5520728169779652386 4798673252636751115 5591325053703727727 -1 \n", "2 5520728169779652386 4798673252636751115 5591325053703727727 -1 \n", "\n", " Fkcont Fk2lknot \\\n", "0 5029128874972463118 5611267768413515094 \n", "1 5029128874972463118 5130743098019975840 \n", "2 5029128874972463118 5367059433340055050 \n", "\n", " Beschreibung Idreferenz \\\n", "0 Anfangsknoten generiert von SirDB 3S96AE619D388EA6F4CC9F24456148E088 \n", "1 Anfangsknoten generiert von SirDB 3S56C0B9A1652EF8E9B7AB8C5DEACA2DC4 \n", "2 Anfangsknoten generiert von SirDB 3S7BD49C919428AD75D6EA1203195E860E \n", "\n", " Iplanung Kvr Qakt Xkor Ykor NodeNamePosition \\\n", "0 1 1 0 714332.858074 5.578924e+06 1 \n", "1 1 1 0 713611.070733 5.578598e+06 1 \n", "2 1 2 0 713542.639481 5.578805e+06 1 \n", "\n", " ShowNodeName KvrKlartext NumberOfVERB HasBlockConnection \\\n", "0 False Vorlauf 0 False \n", "1 False Vorlauf 0 False \n", "2 False Rücklauf 0 False \n", "\n", " Tk Pk InVariant GeometriesDiffer \\\n", "0 4612618373909997110 4612618373909997110 False False \n", "1 4619205996903908050 4619205996903908050 False False \n", "2 4619682681341516951 4619682681341516951 False False \n", "\n", " SymbolFactor bz.Drakonz bz.Fk bz.Fkpvar bz.Fkqvar \\\n", "0 0.2 0 4612618373909997110 -1 -1 \n", "1 0.2 0 4619205996903908050 -1 -1 \n", "2 0.2 0 4619682681341516951 -1 -1 \n", "\n", " bz.Fklfkt bz.PhEin bz.Tm bz.Te bz.PhMin \\\n", "0 -1 0 0 0 0 \n", "1 -1 0 0 0 0 \n", "2 -1 0 0 0 0 \n", "\n", " geometry BCIND DP DPH H \\\n", "0 POINT (714332.858 5578924.328) 17.0 0.00786 0.00786 1.121165 \n", "1 POINT (713611.071 5578598.067) 17.0 -103.87130 -103.87130 -77.653320 \n", "2 POINT (713542.639 5578804.842) 17.0 -93.81168 -93.81168 21.135280 \n", "\n", " HMAX_INST HMIN_INST IAKTIV LFAKTAKT P PDAMPF PH \\\n", "0 1.121165 1.121165 1.0 1.0 1.772049 0.0123 0.772049 \n", "1 -77.653320 -77.653320 0.0 1.0 -77.463350 15.5488 -78.463350 \n", "2 21.135280 21.135280 0.0 1.0 20.665260 15.5488 19.665260 \n", "\n", " PHMINMAXDIF PH_EIN PH_MIN PMAX_INST PMIN_INST QM RHO \\\n", "0 0.00000 0.772049 0.0 1.772049 1.772049 0.0 1000.3 \n", "1 -78.46335 -78.463350 0.0 -77.463350 -77.463350 0.0 865.2 \n", "2 0.00000 19.665260 0.0 20.665260 20.665260 0.0 865.2 \n", "\n", " T TTR VOLD \n", "0 10.0000 0.000000 0.0 \n", "1 665.8970 0.015023 0.0 \n", "2 662.4618 0.000000 0.0 " ] }, "execution_count": 12, "metadata": {}, "output_type": "execute_result" } ], "source": [ "(s3s.generate_element_dataframe(element_type=s3s.ObjectTypes.Node, tks=None)).head(3)" ] }, { "cell_type": "markdown", "id": "42c338bc", "metadata": {}, "source": [ "## Pipe" ] }, { "cell_type": "code", "execution_count": 13, "id": "7ac84f6c", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "[2026-03-03 15:25:05,404] INFO in sir3stoolkit.mantle.dataframes: [generate_element_dataframe] Generating df for element type: ObjectTypes.Pipe ...\n", "[2026-03-03 15:25:05,406] DEBUG in sir3stoolkit.mantle.dataframes: [generate_element_dataframe] Generating df_model_data for element type: ObjectTypes.Pipe ...\n", "[2026-03-03 15:25:05,568] INFO in sir3stoolkit.mantle.dataframes: [model_data] Generating model_data dataframe for element type: ObjectTypes.Pipe\n", "[2026-03-03 15:25:05,568] INFO in sir3stoolkit.mantle.dataframes: [model_data] Retrieved 524 element(s) of element type ObjectTypes.Pipe.\n", "[2026-03-03 15:25:05,577] INFO in sir3stoolkit.mantle.dataframes: [Resolving model_data Properties] No properties given → using ALL model_data properties for ObjectTypes.Pipe.\n", "[2026-03-03 15:25:05,579] INFO in sir3stoolkit.mantle.dataframes: [Resolving model_data Properties] Using 46 model_data properties.\n", "[2026-03-03 15:25:05,580] INFO in sir3stoolkit.mantle.dataframes: [model_data] Retrieving model_data properties ['Name', 'FkdtroRowd', 'Fkltgr', 'Fkstrasse', 'L', 'Lzu', 'Rau', 'Jlambs', 'Lambda0', 'Zein', 'Zaus', 'Zuml', 'Asoll', 'Indschall', 'Baujahr', 'Hal', 'Fkcont', 'Fk2lrohr', 'Beschreibung', 'Idreferenz', 'Iplanung', 'Kvr', 'LineWidthMM', 'DottedLine', 'DN', 'Di', 'KvrKlartext', 'HasClosedNSCHs', 'Tk', 'Pk', 'InVariant', 'Xkor', 'Ykor', 'GeometriesDiffer', 'bz.Fk', 'bz.Qsvb', 'bz.Irtrenn', 'bz.Leckstatus', 'bz.Leckstart', 'bz.Leckend', 'bz.Leckort', 'bz.Leckmenge', 'bz.Imptnz', 'bz.Zvlimptnz', 'bz.Kantenzv', 'bz.ITrennWithNSCH'], geometry, end nodes...\n", "[2026-03-03 15:25:07,256] INFO in sir3stoolkit.mantle.dataframes: [model_data] 2 non-empty end node columns were created.\n", "[2026-03-03 15:25:07,431] INFO in sir3stoolkit.mantle.dataframes: [model_data] Transforming DataFrame to GeoDataFrame successful with EPSG: 25832\n", "[2026-03-03 15:25:07,431] INFO in sir3stoolkit.mantle.dataframes: [model_data] Done. Shape: (524, 50)\n", "[2026-03-03 15:25:07,501] DEBUG in sir3stoolkit.mantle.dataframes: [generate_element_dataframe] Generating df_results for element type: ObjectTypes.Pipe; at timestamp: 2023-02-13 00:00:00.000 +01:00 ...\n", "[2026-03-03 15:25:07,501] INFO in sir3stoolkit.mantle.dataframes: [results] Generating results dataframe for element type: ObjectTypes.Pipe\n", "[2026-03-03 15:25:07,566] INFO in sir3stoolkit.mantle.dataframes: [Resolving Timestamps] Only static timestamp 2023-02-13 00:00:00.000 +01:00 is used\n", "[2026-03-03 15:25:07,566] INFO in sir3stoolkit.mantle.dataframes: [Resolving Timestamps] 1 valid timestamp(s) will be used.\n", "[2026-03-03 15:25:07,573] INFO in sir3stoolkit.mantle.dataframes: [Resolving tks] Retrieved 524 element(s) of element type ObjectTypes.Pipe.\n", "[2026-03-03 15:25:07,575] INFO in sir3stoolkit.mantle.dataframes: [results] Using 82 result properties.\n", "[2026-03-03 15:25:07,598] INFO in sir3stoolkit.mantle.dataframes: [results] Retrieving result values...\n", "[2026-03-03 15:25:13,201] INFO in sir3stoolkit.mantle.dataframes: [results] 26724 fully NaN columns dropped.\n", "[2026-03-03 15:25:14,794] INFO in sir3stoolkit.mantle.dataframes: [results] Done. Shape: (1, 16244)\n", "[2026-03-03 15:25:14,797] DEBUG in sir3stoolkit.mantle.dataframes: [generate_element_dataframe] Merging df_model_data with df_results for element type: ObjectTypes.Pipe ...\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
tkNameFkdtroRowdFkltgrFkstrasseLLzuRauJlambsLambda0ZeinZausZumlAsollIndschallBaujahrHalFkcontFk2lrohrBeschreibungIdreferenzIplanungKvrLineWidthMMDottedLineDNDiKvrKlartextHasClosedNSCHsTkPkInVariantXkorYkorGeometriesDifferbz.Fkbz.Qsvbbz.Irtrennbz.Leckstatusbz.Leckstartbz.Leckendbz.Leckortbz.Leckmengebz.Imptnzbz.Zvlimptnzbz.Kantenzvbz.ITrennWithNSCHgeometryfkKIfkKKADTTRDWVERLDWVERLABSIAKTIVIRTRENNJVMVEC_startMVEC_endMVEC_sequencePDAMPFPHRPMINPVEC_startPVEC_endPVEC_sequencePVECMAX_INST_startPVECMAX_INST_endPVECMAX_INST_sequencePVECMIN_INST_startPVECMIN_INST_endPVECMIN_INST_sequenceQMAVQMIQMKRHOIRHOKRHOVEC_startRHOVEC_endRHOVEC_sequenceSVEC_startSVEC_endSVEC_sequenceTITKTTRVEC_startTTRVEC_endTTRVEC_sequenceTVEC_startTVEC_endTVEC_sequenceVAVVIVKVOLDAWVLZVEC_startZVEC_endZVEC_sequence
04614463970292122863Rohr R-K4383S R-K4183S4689226368751411179477975287665684418854318450289033820317.78067400.051000010000050291288749724631184713734746689397424OSM: Knoten 450994211 -> Knoten 476971188; Län...166815824520.0050999994.0Rücklauf46144639702921228634614463970292122863False714262.4829305.578857e+06False461446397029212286300000000000LINESTRING (714262.483 5578857.42, 714269.543 ...473006605908996185749171890809650351200.00.00.00.01.00.00.0-4.292815e-10-4.292815e-10(-4.292815e-10, -4.292815e-10)0.01230.01.6150811.615081.688655(1.61508, 1.688655)1.615081.688655(1.61508, 1.688655)1.615081.688655(1.61508, 1.688655)-0.0-0.0-0.01000.31000.31000.31000.3(1000.3, 1000.3)0.07.780674(0.0, 7.780674)9.9999949.9999940.00007.780674(0.0, 7.780674)10.010.0(10.0, 10.0)-0.0-0.0-0.00.00.0545.09544.34(545.09, 544.34)
14615723899944629797Rohr V-K203S V-K213S46892263687514111794779752876656844188572872605962003672664.28724000.051000010000050291288749724631184938076287810941486OSM: Knoten 390310977 -> Knoten 1368674233; Lä...24633100510.0050999994.0Vorlauf46157238999446297974615723899944629797False713738.2965675.579220e+06False461572389994462979700000000000LINESTRING (713738.297 5579219.902, 713793.23 ...512958437245866215053328259196900900610.00.00.00.01.00.00.02.582965e-092.582965e-09(2.582965e-09, 2.582965e-09, 2.582965e-09, 2.5...0.01230.0-74.2059-74.20590-73.920440(-74.2059, -74.16512, -74.12434, -74.08356, -7...-74.20590-73.920440(-74.2059, -74.16512, -74.12434, -74.08356, -7...-74.20590-73.920440(-74.2059, -74.16512, -74.12434, -74.08356, -7...0.00.00.01000.31000.31000.31000.3(1000.3, 1000.3, 1000.3, 1000.3, 1000.3, 1000....0.064.287240(0.0, 9.183891, 18.36778, 27.55167, 36.73557, ...9.9999949.999994107.366943.079700(107.3669, 98.18304, 88.99916, 79.81527, 70.63...10.010.0(10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0)0.00.00.00.00.0565.84562.93(565.84, 565.4243, 565.0086, 564.5929, 564.177...
24621030304810285220Rohr R-K2573S R-K2583S5516336706687055417477975287665684418856448814175126160953.95683800.051000010000050291288749724631185625716875961234775OSM: Knoten 476971211 -> Knoten 264607350; Län...24386111020.0050100107.1Rücklauf46210303048102852204621030304810285220False713650.6134005.578990e+06False462103030481028522000000000000LINESTRING (713650.613 5578990.488, 713649.498...507079558016828391257258485779421386060.03.9568380.00.00.00.00.01.680974e-081.680974e-08(1.680974e-08, 1.680974e-08)0.01230.019.8623319.8750819.862340(19.87508, 19.86234)19.8750819.862340(19.87508, 19.86234)19.8750819.862340(19.87508, 19.86234)0.00.00.01000.31000.31000.31000.3(1000.3, 1000.3)0.03.956838(0.0, 3.956838)9.9999949.99999412017.900012021.860000(12017.9, 12021.86)10.010.0(10.0, 10.0)0.00.00.00.00.0563.01563.14(563.01, 563.14)
\n", "
" ], "text/plain": [ " tk Name FkdtroRowd \\\n", "0 4614463970292122863 Rohr R-K4383S R-K4183S 4689226368751411179 \n", "1 4615723899944629797 Rohr V-K203S V-K213S 4689226368751411179 \n", "2 4621030304810285220 Rohr R-K2573S R-K2583S 5516336706687055417 \n", "\n", " Fkltgr Fkstrasse L Lzu Rau Jlambs \\\n", "0 4779752876656844188 5431845028903382031 7.780674 0 0.05 1 \n", "1 4779752876656844188 5728726059620036726 64.287240 0 0.05 1 \n", "2 4779752876656844188 5644881417512616095 3.956838 0 0.05 1 \n", "\n", " Lambda0 Zein Zaus Zuml Asoll Indschall Baujahr Hal \\\n", "0 0 0 0 0 1000 0 0 \n", "1 0 0 0 0 1000 0 0 \n", "2 0 0 0 0 1000 0 0 \n", "\n", " Fkcont Fk2lrohr \\\n", "0 5029128874972463118 4713734746689397424 \n", "1 5029128874972463118 4938076287810941486 \n", "2 5029128874972463118 5625716875961234775 \n", "\n", " Beschreibung Idreferenz Iplanung \\\n", "0 OSM: Knoten 450994211 -> Knoten 476971188; Län... 166815824 5 \n", "1 OSM: Knoten 390310977 -> Knoten 1368674233; Lä... 24633100 5 \n", "2 OSM: Knoten 476971211 -> Knoten 264607350; Län... 24386111 0 \n", "\n", " Kvr LineWidthMM DottedLine DN Di KvrKlartext HasClosedNSCHs \\\n", "0 2 0.005 0 999 994.0 Rücklauf \n", "1 1 0.005 0 999 994.0 Vorlauf \n", "2 2 0.005 0 100 107.1 Rücklauf \n", "\n", " Tk Pk InVariant Xkor \\\n", "0 4614463970292122863 4614463970292122863 False 714262.482930 \n", "1 4615723899944629797 4615723899944629797 False 713738.296567 \n", "2 4621030304810285220 4621030304810285220 False 713650.613400 \n", "\n", " Ykor GeometriesDiffer bz.Fk bz.Qsvb bz.Irtrenn \\\n", "0 5.578857e+06 False 4614463970292122863 0 0 \n", "1 5.579220e+06 False 4615723899944629797 0 0 \n", "2 5.578990e+06 False 4621030304810285220 0 0 \n", "\n", " bz.Leckstatus bz.Leckstart bz.Leckend bz.Leckort bz.Leckmenge \\\n", "0 0 0 0 0 0 \n", "1 0 0 0 0 0 \n", "2 0 0 0 0 0 \n", "\n", " bz.Imptnz bz.Zvlimptnz bz.Kantenzv bz.ITrennWithNSCH \\\n", "0 0 0 0 0 \n", "1 0 0 0 0 \n", "2 0 0 0 0 \n", "\n", " geometry fkKI \\\n", "0 LINESTRING (714262.483 5578857.42, 714269.543 ... 4730066059089961857 \n", "1 LINESTRING (713738.297 5579219.902, 713793.23 ... 5129584372458662150 \n", "2 LINESTRING (713650.613 5578990.488, 713649.498... 5070795580168283912 \n", "\n", " fkKK A DTTR DWVERL DWVERLABS IAKTIV IRTRENN JV \\\n", "0 4917189080965035120 0.0 0.0 0.0 0.0 1.0 0.0 0.0 \n", "1 5332825919690090061 0.0 0.0 0.0 0.0 1.0 0.0 0.0 \n", "2 5725848577942138606 0.0 3.956838 0.0 0.0 0.0 0.0 0.0 \n", "\n", " MVEC_start MVEC_end \\\n", "0 -4.292815e-10 -4.292815e-10 \n", "1 2.582965e-09 2.582965e-09 \n", "2 1.680974e-08 1.680974e-08 \n", "\n", " MVEC_sequence PDAMPF PHR PMIN \\\n", "0 (-4.292815e-10, -4.292815e-10) 0.0123 0.0 1.615081 \n", "1 (2.582965e-09, 2.582965e-09, 2.582965e-09, 2.5... 0.0123 0.0 -74.2059 \n", "2 (1.680974e-08, 1.680974e-08) 0.0123 0.0 19.86233 \n", "\n", " PVEC_start PVEC_end PVEC_sequence \\\n", "0 1.61508 1.688655 (1.61508, 1.688655) \n", "1 -74.20590 -73.920440 (-74.2059, -74.16512, -74.12434, -74.08356, -7... \n", "2 19.87508 19.862340 (19.87508, 19.86234) \n", "\n", " PVECMAX_INST_start PVECMAX_INST_end \\\n", "0 1.61508 1.688655 \n", "1 -74.20590 -73.920440 \n", "2 19.87508 19.862340 \n", "\n", " PVECMAX_INST_sequence PVECMIN_INST_start \\\n", "0 (1.61508, 1.688655) 1.61508 \n", "1 (-74.2059, -74.16512, -74.12434, -74.08356, -7... -74.20590 \n", "2 (19.87508, 19.86234) 19.87508 \n", "\n", " PVECMIN_INST_end PVECMIN_INST_sequence QMAV \\\n", "0 1.688655 (1.61508, 1.688655) -0.0 \n", "1 -73.920440 (-74.2059, -74.16512, -74.12434, -74.08356, -7... 0.0 \n", "2 19.862340 (19.87508, 19.86234) 0.0 \n", "\n", " QMI QMK RHOI RHOK RHOVEC_start RHOVEC_end \\\n", "0 -0.0 -0.0 1000.3 1000.3 1000.3 1000.3 \n", "1 0.0 0.0 1000.3 1000.3 1000.3 1000.3 \n", "2 0.0 0.0 1000.3 1000.3 1000.3 1000.3 \n", "\n", " RHOVEC_sequence SVEC_start SVEC_end \\\n", "0 (1000.3, 1000.3) 0.0 7.780674 \n", "1 (1000.3, 1000.3, 1000.3, 1000.3, 1000.3, 1000.... 0.0 64.287240 \n", "2 (1000.3, 1000.3) 0.0 3.956838 \n", "\n", " SVEC_sequence TI TK \\\n", "0 (0.0, 7.780674) 9.999994 9.999994 \n", "1 (0.0, 9.183891, 18.36778, 27.55167, 36.73557, ... 9.999994 9.999994 \n", "2 (0.0, 3.956838) 9.999994 9.999994 \n", "\n", " TTRVEC_start TTRVEC_end \\\n", "0 0.0000 7.780674 \n", "1 107.3669 43.079700 \n", "2 12017.9000 12021.860000 \n", "\n", " TTRVEC_sequence TVEC_start TVEC_end \\\n", "0 (0.0, 7.780674) 10.0 10.0 \n", "1 (107.3669, 98.18304, 88.99916, 79.81527, 70.63... 10.0 10.0 \n", "2 (12017.9, 12021.86) 10.0 10.0 \n", "\n", " TVEC_sequence VAV VI VK VOLDA WVL \\\n", "0 (10.0, 10.0) -0.0 -0.0 -0.0 0.0 0.0 \n", "1 (10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0) 0.0 0.0 0.0 0.0 0.0 \n", "2 (10.0, 10.0) 0.0 0.0 0.0 0.0 0.0 \n", "\n", " ZVEC_start ZVEC_end ZVEC_sequence \n", "0 545.09 544.34 (545.09, 544.34) \n", "1 565.84 562.93 (565.84, 565.4243, 565.0086, 564.5929, 564.177... \n", "2 563.01 563.14 (563.01, 563.14) " ] }, "execution_count": 13, "metadata": {}, "output_type": "execute_result" } ], "source": [ "(s3s.generate_element_dataframe(element_type=s3s.ObjectTypes.Pipe, tks=None)).head(3)" ] }, { "cell_type": "markdown", "id": "219eb668", "metadata": {}, "source": [ "As can be seen some result values are in vectorized form, since pipes have result values that are calculated for interior points." ] }, { "cell_type": "markdown", "id": "808b2c79", "metadata": {}, "source": [ "## DistrictHeatingConsumer" ] }, { "cell_type": "markdown", "id": "5d924f90", "metadata": {}, "source": [ "We can specify the timestamp we want the result data for either as \"2023-02-13 01:00:00.000 +01:00\" or 1 meaning the second element in s3s.GetTimeStamps()[0], otherwise static is used." ] }, { "cell_type": "code", "execution_count": 14, "id": "4eaae862", "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "[2026-03-03 15:25:14,998] INFO in sir3stoolkit.mantle.dataframes: [generate_element_dataframe] Generating df for element type: ObjectTypes.DistrictHeatingConsumer ...\n", "[2026-03-03 15:25:14,999] DEBUG in sir3stoolkit.mantle.dataframes: [generate_element_dataframe] Generating df_model_data for element type: ObjectTypes.DistrictHeatingConsumer ...\n", "[2026-03-03 15:25:15,083] INFO in sir3stoolkit.mantle.dataframes: [model_data] Generating model_data dataframe for element type: ObjectTypes.DistrictHeatingConsumer\n", "[2026-03-03 15:25:15,085] INFO in sir3stoolkit.mantle.dataframes: [model_data] Retrieved 337 element(s) of element type ObjectTypes.DistrictHeatingConsumer.\n", "[2026-03-03 15:25:15,087] INFO in sir3stoolkit.mantle.dataframes: [Resolving model_data Properties] No properties given → using ALL model_data properties for ObjectTypes.DistrictHeatingConsumer.\n", "[2026-03-03 15:25:15,087] INFO in sir3stoolkit.mantle.dataframes: [Resolving model_data Properties] Using 55 model_data properties.\n", "[2026-03-03 15:25:15,089] INFO in sir3stoolkit.mantle.dataframes: [model_data] Retrieving model_data properties ['Name', 'Beschreibung', 'Ind0', 'W0', 'Qm0', 'Tvl0', 'Trs0', 'Lfk', 'Rho0', 'Dtmin', 'Indtr', 'Trsk', 'Fktrft', 'A', 'B', 'C', 'Vtyp', 'V0', 'P1soll', 'Dpvlmin', 'Fkzep1vl', 'Tsvl', 'Zevk', 'Dphaus', 'Dprlmin', 'Fkzep1rl', 'Tsrl', 'Imbg', 'Irfv', 'Fkcont', 'Idreferenz', 'Iplanung', 'CPM', 'NumberOfVERB', 'IndtrKlartext', 'M0Estimated', 'W0Estimated', 'Tk', 'Pk', 'InVariant', 'Xkor', 'Ykor', 'ShowDescription', 'PositionOfDescription', 'Angle', 'SymbolFactor', 'GeometriesDiffer', 'bz.Fk', 'bz.Indlast', 'bz.Indlfkt2', 'bz.Fklfkt', 'bz.Fklfkt2', 'bz.Fkqvar', 'bz.Fktevt', 'bz.IndlastKlartext'], geometry, end nodes...\n", "[2026-03-03 15:25:16,176] INFO in sir3stoolkit.mantle.dataframes: [model_data] 2 non-empty end node columns were created.\n", "[2026-03-03 15:25:16,312] INFO in sir3stoolkit.mantle.dataframes: [model_data] Transforming DataFrame to GeoDataFrame successful with EPSG: 25832\n", "[2026-03-03 15:25:16,312] INFO in sir3stoolkit.mantle.dataframes: [model_data] Done. Shape: (337, 59)\n", "[2026-03-03 15:25:16,377] DEBUG in sir3stoolkit.mantle.dataframes: [generate_element_dataframe] Generating df_results for element type: ObjectTypes.DistrictHeatingConsumer; at timestamp: 2023-02-13 01:00:00.000 +01:00 ...\n", "[2026-03-03 15:25:16,377] INFO in sir3stoolkit.mantle.dataframes: [results] Generating results dataframe for element type: ObjectTypes.DistrictHeatingConsumer\n", "[2026-03-03 15:25:16,465] INFO in sir3stoolkit.mantle.dataframes: [Resolving Timestamps] 1 valid timestamp(s) will be used.\n", "[2026-03-03 15:25:16,465] INFO in sir3stoolkit.mantle.dataframes: [Resolving tks] Retrieved 337 element(s) of element type ObjectTypes.DistrictHeatingConsumer.\n", "[2026-03-03 15:25:16,467] INFO in sir3stoolkit.mantle.dataframes: [results] Using 36 result properties.\n", "[2026-03-03 15:25:16,474] INFO in sir3stoolkit.mantle.dataframes: [results] Retrieving result values...\n", "[2026-03-03 15:25:17,582] INFO in sir3stoolkit.mantle.dataframes: [results] 5392 fully NaN columns dropped.\n", "[2026-03-03 15:25:17,987] INFO in sir3stoolkit.mantle.dataframes: [results] Done. Shape: (1, 6740)\n", "[2026-03-03 15:25:17,989] DEBUG in sir3stoolkit.mantle.dataframes: [generate_element_dataframe] Merging df_model_data with df_results for element type: ObjectTypes.DistrictHeatingConsumer ...\n" ] }, { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
tkNameBeschreibungInd0W0Qm0Tvl0Trs0LfkRho0DtminIndtrTrskFktrftABCVtypV0P1sollDpvlminFkzep1vlTsvlZevkDphausDprlminFkzep1rlTsrlImbgIrfvFkcontIdreferenzIplanungCPMNumberOfVERBIndtrKlartextM0EstimatedW0EstimatedTkPkInVariantXkorYkorShowDescriptionPositionOfDescriptionAngleSymbolFactorGeometriesDifferbz.Fkbz.Indlastbz.Indlfkt2bz.Fklfktbz.Fklfkt2bz.Fkqvarbz.Fktevtbz.IndlastKlartextgeometryfkKIfkKKDHDPDPHIAKTIVINDUVLFHLFTMMHYUVMTHUVPHIRLPHIVLQMRHOIRHOKTITKTVMINWWSOLL
04611752310942477664Fernwärmeverbraucher V-K1203S R-K3683SGattendorf;95185;Obere Au;28;None;yes0139.043319060110003360-12-0.25-21100-1000.20.3-1001502912887497246311883088723814.19030Tabelle Temperatur TEVT, TRS(t)3.98186234.9191746117523109424776644611752310942477664False713675.3002325.578705e+06False300.1False4611752310942477664004835417738045943522-1-15395645951786400348Lastfaktor thermischPOINT (713675.3 5578705.193)46737015971874116854995788945387711669-1525.83400-129.462600-129.4626000.0-1.05.3535620.57395.920521-15.39335-15.39335-3.333333e+32-3.333333e+3221.31388865.2865.2665.7723662.7723682.06179.7969579.79695
14612528660388965271Fernwärmeverbraucher V-K1783S R-K4263SNone;None;None;None;None;yes0386.413419060110003360-12-0.25-21000-1000.20.3-10015029128874972463118105628731714.19030Tabelle Temperatur TEVT, TRS(t)11.06594034.9191746125286603889652714612528660388965271False714251.3323955.578925e+06False300.1False4612528660388965271005554262436821166605-1-15395645951786400348Lastfaktor thermischPOINT (714251.332 5578925.001)501510189172519860357518088373480527640.070120.0068780.0068781.0-1.00.0000000.00000.0000000.000000.00000-3.333333e+32-3.333333e+320.000001000.3865.210.0000666.000010.0000.000000.00000
24612562908060328263Fernwärmeverbraucher V-K1623S R-K4103SGattendorf;95185;Langenbachstraße;4;None;yes0106.640919060110003360-12-0.25-21100-1000.20.3-1001502912887497246311883081818214.19030Tabelle Temperatur TEVT, TRS(t)3.05393634.9191746125629080603282634612562908060328263False713271.2718175.578980e+06False300.1False4612562908060328263004835417738045943522-1-15395645951786400348Lastfaktor thermischPOINT (713271.272 5578979.743)49652996298146392054779536530687993701-1511.19700-128.220700-128.2207000.0-1.05.3537560.57394.540978-11.80654-11.80654-3.333333e+32-3.333333e+3216.34752865.2865.2665.7705662.7705682.06161.2012161.20121
\n", "
" ], "text/plain": [ " tk Name \\\n", "0 4611752310942477664 Fernwärmeverbraucher V-K1203S R-K3683S \n", "1 4612528660388965271 Fernwärmeverbraucher V-K1783S R-K4263S \n", "2 4612562908060328263 Fernwärmeverbraucher V-K1623S R-K4103S \n", "\n", " Beschreibung Ind0 W0 Qm0 Tvl0 \\\n", "0 Gattendorf;95185;Obere Au;28;None;yes 0 139.0433 1 90 \n", "1 None;None;None;None;None;yes 0 386.4134 1 90 \n", "2 Gattendorf;95185;Langenbachstraße;4;None;yes 0 106.6409 1 90 \n", "\n", " Trs0 Lfk Rho0 Dtmin Indtr Trsk Fktrft A B C Vtyp V0 P1soll \\\n", "0 60 1 1000 3 3 60 -1 2 -0.25 -2 1 1 0 \n", "1 60 1 1000 3 3 60 -1 2 -0.25 -2 1 0 0 \n", "2 60 1 1000 3 3 60 -1 2 -0.25 -2 1 1 0 \n", "\n", " Dpvlmin Fkzep1vl Tsvl Zevk Dphaus Dprlmin Fkzep1rl Tsrl Imbg Irfv \\\n", "0 0 -1 0 0 0.2 0.3 -1 0 0 1 \n", "1 0 -1 0 0 0.2 0.3 -1 0 0 1 \n", "2 0 -1 0 0 0.2 0.3 -1 0 0 1 \n", "\n", " Fkcont Idreferenz Iplanung CPM NumberOfVERB \\\n", "0 5029128874972463118 830887238 1 4.1903 0 \n", "1 5029128874972463118 1056287317 1 4.1903 0 \n", "2 5029128874972463118 830818182 1 4.1903 0 \n", "\n", " IndtrKlartext M0Estimated W0Estimated \\\n", "0 Tabelle Temperatur TEVT, TRS(t) 3.981862 34.91917 \n", "1 Tabelle Temperatur TEVT, TRS(t) 11.065940 34.91917 \n", "2 Tabelle Temperatur TEVT, TRS(t) 3.053936 34.91917 \n", "\n", " Tk Pk InVariant Xkor \\\n", "0 4611752310942477664 4611752310942477664 False 713675.300232 \n", "1 4612528660388965271 4612528660388965271 False 714251.332395 \n", "2 4612562908060328263 4612562908060328263 False 713271.271817 \n", "\n", " Ykor ShowDescription PositionOfDescription Angle SymbolFactor \\\n", "0 5.578705e+06 False 3 0 0.1 \n", "1 5.578925e+06 False 3 0 0.1 \n", "2 5.578980e+06 False 3 0 0.1 \n", "\n", " GeometriesDiffer bz.Fk bz.Indlast bz.Indlfkt2 \\\n", "0 False 4611752310942477664 0 0 \n", "1 False 4612528660388965271 0 0 \n", "2 False 4612562908060328263 0 0 \n", "\n", " bz.Fklfkt bz.Fklfkt2 bz.Fkqvar bz.Fktevt \\\n", "0 4835417738045943522 -1 -1 5395645951786400348 \n", "1 5554262436821166605 -1 -1 5395645951786400348 \n", "2 4835417738045943522 -1 -1 5395645951786400348 \n", "\n", " bz.IndlastKlartext geometry fkKI \\\n", "0 Lastfaktor thermisch POINT (713675.3 5578705.193) 4673701597187411685 \n", "1 Lastfaktor thermisch POINT (714251.332 5578925.001) 5015101891725198603 \n", "2 Lastfaktor thermisch POINT (713271.272 5578979.743) 4965299629814639205 \n", "\n", " fkKK DH DP DPH IAKTIV INDUV \\\n", "0 4995788945387711669 -1525.83400 -129.462600 -129.462600 0.0 -1.0 \n", "1 5751808837348052764 0.07012 0.006878 0.006878 1.0 -1.0 \n", "2 4779536530687993701 -1511.19700 -128.220700 -128.220700 0.0 -1.0 \n", "\n", " LFH LFT M MHYUV MTHUV PHIRL PHIVL \\\n", "0 5.353562 0.5739 5.920521 -15.39335 -15.39335 -3.333333e+32 -3.333333e+32 \n", "1 0.000000 0.0000 0.000000 0.00000 0.00000 -3.333333e+32 -3.333333e+32 \n", "2 5.353756 0.5739 4.540978 -11.80654 -11.80654 -3.333333e+32 -3.333333e+32 \n", "\n", " QM RHOI RHOK TI TK TVMIN W WSOLL \n", "0 21.31388 865.2 865.2 665.7723 662.7723 682.061 79.79695 79.79695 \n", "1 0.00000 1000.3 865.2 10.0000 666.0000 10.000 0.00000 0.00000 \n", "2 16.34752 865.2 865.2 665.7705 662.7705 682.061 61.20121 61.20121 " ] }, "execution_count": 14, "metadata": {}, "output_type": "execute_result" } ], "source": [ "(s3s.generate_element_dataframe(element_type=s3s.ObjectTypes.DistrictHeatingConsumer, tks=None, timestamp=1)).head(3)" ] } ], "metadata": { "kernelspec": { "display_name": "base", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.8" } }, "nbformat": 4, "nbformat_minor": 5 }