uesgraphs.examples.e18_pandapipes_analysis

Example for analyzing pandapipes simulation results using the analysis_pp class.

This example demonstrates the workflow if for analyzing pandapipes simulation results using the analysis_pp class. Ensure that this example is run after completing E17, which generates the necessary simulation results and UESGraph JSON files for analysis.

Here are the steps covered in this example: 1. Setup Workspace and Paths:

Create a local workspace for this example and define paths to the simulation results generated in E17.

  1. Generate analysis class and run analysis:

    Create an instance of the analysis_pp class with the path to the simulation results and optionally set the timestep. Then, call the thermal_loss_analysis and pump_power_analysis methods to perform the analyses. Also pipe_plots allows a deeper analysis of the pipe results, so you get plots of all avaible simulation variables for the whole timeseries. You can use retransform_pipe_geojson_data to retransform the data to the geojson that is used. Also visualize_network allows you to visualize pressures, temperatures and mass flows of the whole district for a specific timestep, which is the index of the saved timeseries data. For the pump power analysis a parameter eta_total is set to 0.65, adjust this value as needed for your specific system by setting it in the method call.

  2. Summary and Next Steps:

    Summarize the results printed in the terminal and suggest next steps for further analysis or visualization.

Functions

main()

workspace_example([name_workspace])

Creates a local workspace with given name (copied from e1_readme_example)

uesgraphs.examples.e18_pandapipes_analysis.workspace_example(name_workspace=None)[source]

Creates a local workspace with given name (copied from e1_readme_example)

Parameters:

name_workspace (str) – Name of the local workspace to be created

Returns:

workspace – Full path to the new workspace

Return type:

str

uesgraphs.examples.e18_pandapipes_analysis.main()[source]