Networks#
Network#
Constructor#
General methods#
|
Return the DataFrame of static components for component_name. |
|
Alias for [n.static][pypsa.Network.static]. |
|
Return the dictionary of DataFrames of varying components. |
|
Alias for [n.dynamic][pypsa.Network.dynamic]. |
|
Convert the network's geometries and bus coordinates to a new crs. |
|
Set the snapshots/time steps and reindex all time-dependent data. |
|
Set the investment periods of the network. |
|
Add components to the network. |
|
Add multiple components to the network, along with their attributes. |
|
Remove a single component or a list of components from the network. |
|
Remove multiple components from the network. |
|
Return a deep copy of Network object. |
|
Check for equality of two networks. |
|
Get branches. |
Get passive branches. |
|
Get controllable branches. |
|
|
Build sub_networks from topology. |
|
Iterate over components. |
|
Check network for consistency. |
Attributes#
Dictionary of the network meta data. |
|
Coordinate reference system of the network's geometries. |
|
Spatial reference system identifier of the network's geometries. |
|
Snapshots dimension of the network. |
|
Weightings applied to each snapshots during the optimization (LOPF). |
|
Periods level of snapshots dimension. |
|
Weightings applied to each investment period during the optimization (LOPF). |
Input and output methods#
|
Merge the components of two networks. |
|
Import network data from CSVs in a folder. |
|
Export network and components to a folder of CSVs. |
|
Import network data from an Excel file. |
|
Export network and components to an Excel file. |
|
Import network data from HDF5 store at path. |
|
Export network and components to an HDF store. |
|
Import network data from netCDF file or xarray Dataset at path. |
|
Export network and components to a netCDF file. |
|
Import network from PYPOWER PPC dictionary format version 2. |
|
Import PyPSA network from pandapower net. |
|
Import components from a pandas DataFrame. |
|
Import time series from a pandas DataFrame. |
Power flow methods#
Also see Power Flow for all power flow functions.
Contingency analysis#
See Contingency Analysis.
Clustering methods#
See Clustering.
Optimization methods#
See Optimisation.
Statistics methods#
See Statistics.
Plotting methods#
See Plots.
Graph methods#
|
Build NetworkX graph. |
|
Construct a sparse adjacency matrix (directed). |
|
Construct a sparse incidence matrix (directed). |
Descriptor methods#
Getter function. |
|
Getter function. |
|
|
Return a Dataframe for a time-varying component attribute . |
Getter function. |
|
|
Get active components mask of component type in investment period(s). |
Sub-Network#
Constructor#
methods#
|
Construct a sparse adjacency matrix (directed). |
|
Get the branches in the sub-network. |
|
Get the index of the branches in the sub-network. |
|
Get the buses in the sub-network. |
|
Get the index of the buses in the sub-network. |
|
Calculate the Branch Outage Distribution Factor (BODF) for sub_network. |
|
Calculate B and H matrices for AC or DC sub-networks. |
|
Calculate the Power Transfer Distribution Factor (PTDF) for sub_network. |
|
Calculate bus admittance matrices for AC sub-networks. |
Find slack and all PV and PQ buses for a sub_network. |
|
Find the slack bus in a connected sub-network. |
|
Get the generators in the sub-network. |
|
Get the index of the generators in the sub-network. |
|
|
Build NetworkX graph. |
|
Construct a sparse incidence matrix (directed). |
|
Iterate over components of the sub-network. |
|
Get the index of the lines in the sub-network. |
|
Get the loads in the sub-network. |
|
Get the index of the loads in the sub-network. |
|
Linear power flow for connected sub-network. |
|
Non-linear power flow for connected sub-network. |
Get the shunt impedances in the sub-network. |
|
Get the index of the shunt impedances in the sub-network. |
|
Get the storage units in the sub-network. |
|
Get the index of the storage units in the sub-network. |
|
|
Get the index of the stores in the sub-network. |
Get the index of the transformers in the sub-network. |