VeraGridEngine.Simulations.PowerFlow3ph package

Subpackages

Submodules

VeraGridEngine.Simulations.PowerFlow3ph.power_flow_driver_3ph module

class VeraGridEngine.Simulations.PowerFlow3ph.power_flow_driver_3ph.PowerFlowDriver3Ph(grid: MultiCircuit, options: PowerFlowOptions | None = None, opf_results: OptimalPowerFlowResults | None = None, engine: EngineType = VeraGrid)[source]

Bases: DriverTemplate

add_report() → None[source]

Add a report of the results (in-place)

convergence_reports: List
get_steps() → List[str][source]
Returns:

name = 'Power flow 3ph'
opf_results: OptimalPowerFlowResults | None
options: PowerFlowOptions
run() → None[source]

Pack run_pf for the QThread

tpe = 'Power flow 3ph'

Power flow wrapper

VeraGridEngine.Simulations.PowerFlow3ph.power_flow_results_3ph module

class VeraGridEngine.Simulations.PowerFlow3ph.power_flow_results_3ph.PowerFlowResults3Ph(n: int, m: int, n_hvdc: int, n_vsc: int, n_gen: int, n_batt: int, n_sh: int, n_load: int, bus_names: ndarray, branch_names: ndarray, hvdc_names: ndarray, vsc_names: ndarray, gen_names: ndarray, batt_names: ndarray, sh_names: ndarray, load_names: ndarray, bus_types: ndarray, clustering_results=None)[source]

Bases: ResultsTemplate

CLASS_DATA_VARIABLES = {'F': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If_N': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_N': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_vsc_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_vsc_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_vsc_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pf_hvdc_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pf_hvdc_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pf_hvdc_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pfp_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pt_hvdc_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pt_hvdc_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pt_hvdc_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sbus_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sbus_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sbus_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sbus_N': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sf_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sf_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sf_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_vsc_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_vsc_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_vsc_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'T': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Vbranch_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Vbranch_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Vbranch_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'area_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'batt_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'battery_q_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'battery_q_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'battery_q_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'branch_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'bus_area_indices': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'bus_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'bus_types': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'gen_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'gen_q_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'gen_q_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'gen_q_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_F': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_T': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'load_Vn': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'load_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_hvdc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses_hvdc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'sh_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'shunt_Vn': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'shunt_q_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'shunt_q_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'shunt_q_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'tap_angle': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'tap_module': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'voltage_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'voltage_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'voltage_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'voltage_N': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'vsc_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>}
CLASS_RESULTS_DECLARATIONS = (<VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>)
If_A: ndarray[tuple[Any, ...], dtype[complex128]]
If_B: ndarray[tuple[Any, ...], dtype[complex128]]
If_C: ndarray[tuple[Any, ...], dtype[complex128]]
If_N: ndarray[tuple[Any, ...], dtype[complex128]]
If_vsc
It_A: ndarray[tuple[Any, ...], dtype[complex128]]
It_B: ndarray[tuple[Any, ...], dtype[complex128]]
It_C: ndarray[tuple[Any, ...], dtype[complex128]]
It_N: ndarray[tuple[Any, ...], dtype[complex128]]
It_vsc_A
It_vsc_B
It_vsc_C
LOCAL_RESULTS_DECLARATIONS = (<VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>)
Pf_hvdc_A: ndarray[tuple[Any, ...], dtype[float64]]
Pf_hvdc_B: ndarray[tuple[Any, ...], dtype[float64]]
Pf_hvdc_C: ndarray[tuple[Any, ...], dtype[float64]]
Pfp_vsc
Pt_hvdc_A: ndarray[tuple[Any, ...], dtype[float64]]
Pt_hvdc_B: ndarray[tuple[Any, ...], dtype[float64]]
Pt_hvdc_C: ndarray[tuple[Any, ...], dtype[float64]]
Sbus_A: ndarray[tuple[Any, ...], dtype[complex128]]
Sbus_B: ndarray[tuple[Any, ...], dtype[complex128]]
Sbus_C: ndarray[tuple[Any, ...], dtype[complex128]]
Sbus_N: ndarray[tuple[Any, ...], dtype[complex128]]
Sf_A: ndarray[tuple[Any, ...], dtype[complex128]]
Sf_B: ndarray[tuple[Any, ...], dtype[complex128]]
Sf_C: ndarray[tuple[Any, ...], dtype[complex128]]
St_A: ndarray[tuple[Any, ...], dtype[complex128]]
St_B: ndarray[tuple[Any, ...], dtype[complex128]]
St_C: ndarray[tuple[Any, ...], dtype[complex128]]
St_vsc_A
St_vsc_B
St_vsc_C
Vbranch_A: ndarray[tuple[Any, ...], dtype[complex128]]
Vbranch_B: ndarray[tuple[Any, ...], dtype[complex128]]
Vbranch_C: ndarray[tuple[Any, ...], dtype[complex128]]
apply_from_island(results: NumericPowerFlowResults, b_idx: ndarray, br_idx: ndarray, hvdc_idx: ndarray, vsc_idx: ndarray) → None[source]

Apply results from another island circuit to the circuit results represented here. :param results: NumericPowerFlowResults from an island circuit :param b_idx: bus original indices :param br_idx: branch original indices :param hvdc_idx: hvdc original indices :param vsc_idx: vsc original indices :return: None

batt_names
battery_q_A: ndarray[tuple[Any, ...], dtype[float64]]
battery_q_B: ndarray[tuple[Any, ...], dtype[float64]]
battery_q_C: ndarray[tuple[Any, ...], dtype[float64]]
branch_names: ndarray[tuple[Any, ...], dtype[str_]]
bus_names: ndarray[tuple[Any, ...], dtype[str_]]
bus_types: ndarray[tuple[Any, ...], dtype[int64]]
compare(other: PowerFlowResults3Ph, tol=1e-06) → Tuple[bool, Logger][source]

Compare this results with another :param other: PowerFlowResults :param tol: absolute comparison tolerance :return: all ok?, Logger

property converged

Check if converged in all modes :return: True / False

convergence_reports: List[ConvergenceReport]
property elapsed

Check if converged in all modes :return: True / False

property error

Check if converged in all modes :return: True / False

export_all()[source]

Exports all the results to DataFrames.

Returns:

Bus results, Branch results

gen_names
gen_q_A: ndarray[tuple[Any, ...], dtype[float64]]
gen_q_B: ndarray[tuple[Any, ...], dtype[float64]]
gen_q_C: ndarray[tuple[Any, ...], dtype[float64]]
get_branch_df() → DataFrame[source]

Get a DataFrame with the branches results :return: DataFrame, Pf in MW, Qf in MVAr, Pt in MW, Qt in MVAr, loading in %, Ploss in MW, Qloss in MVAr

get_bus_df() → DataFrame[source]

Get a DataFrame with the buses results :return: DataFrame, Vm in p.u., Va in deg, P in MW, Q in MVAr

get_current_3ph_df() → DataFrame[source]

Get a DataFrame with the current results in p.u. :return: DataFrame

get_current_unbalance_factor_df() → DataFrame[source]

Get the Current Unbalance Factor (IUF) :return: DataFrame

get_load_neutral_voltage_df() → DataFrame[source]

Get a DataFrame with the load neutral voltage results, Vm in p.u., Va in deg :return: DataFrame

get_report_dataframe(island_idx=0)[source]

Get a DataFrame containing the convergence report.

Arguments:

island_idx: (optional) island index

Returns:

DataFrame

get_shunt_neutral_voltage_df() → DataFrame[source]

Get a DataFrame with the load neutral voltage results, Vm in p.u., Va in deg :return: DataFrame

get_voltage_3ph_df() → DataFrame[source]

Get a DataFrame with the buses results, Vm in p.u., Va in deg :return: DataFrame

get_voltage_unbalance_factor_df() → DataFrame[source]

Get the Voltage Unbalance Factor (VUF) :return: DataFrame

hvdc_names: ndarray[tuple[Any, ...], dtype[str_]]
property iterations

Check if converged in all modes :return: True / False

load_Vn: ndarray[tuple[Any, ...], dtype[float64]]
load_names
loading_A: ndarray[tuple[Any, ...], dtype[complex128]]
loading_B: ndarray[tuple[Any, ...], dtype[complex128]]
loading_C: ndarray[tuple[Any, ...], dtype[complex128]]
loading_hvdc: ndarray[tuple[Any, ...], dtype[float64]]
loading_vsc
losses_A: ndarray[tuple[Any, ...], dtype[complex128]]
losses_B: ndarray[tuple[Any, ...], dtype[complex128]]
losses_C: ndarray[tuple[Any, ...], dtype[complex128]]
losses_hvdc: ndarray[tuple[Any, ...], dtype[float64]]
losses_vsc
m
mdl(result_type: ResultTypes) → ResultsTable[source]

get the ResultsTable model :param result_type: ResultTypes :return: ResultsTable instance

n
n_batt
n_gen
n_hvdc
n_load
n_sh
n_vsc
plot_bars_limit: int
sh_names
shunt_Vn: ndarray[tuple[Any, ...], dtype[float64]]
shunt_q_A: ndarray[tuple[Any, ...], dtype[float64]]
shunt_q_B: ndarray[tuple[Any, ...], dtype[float64]]
shunt_q_C: ndarray[tuple[Any, ...], dtype[float64]]
tap_angle: ndarray[tuple[Any, ...], dtype[float64]]
tap_module: ndarray[tuple[Any, ...], dtype[float64]]
voltage_A: ndarray[tuple[Any, ...], dtype[complex128]]
voltage_B: ndarray[tuple[Any, ...], dtype[complex128]]
voltage_C: ndarray[tuple[Any, ...], dtype[complex128]]
voltage_N: ndarray[tuple[Any, ...], dtype[complex128]]
vsc_names: ndarray[tuple[Any, ...], dtype[str_]]
VeraGridEngine.Simulations.PowerFlow3ph.power_flow_results_3ph.get_3p_indices(length_3p: int) → Tuple[ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]], ndarray[tuple[Any, ...], dtype[int64]]][source]

get the 3-phase indexing :param length_3p: 4N length :return: index N, index A, index B, index C

VeraGridEngine.Simulations.PowerFlow3ph.power_flow_ts_driver_3ph module

class VeraGridEngine.Simulations.PowerFlow3ph.power_flow_ts_driver_3ph.PowerFlowTimeSeriesDriver3Ph(grid: MultiCircuit, options: PowerFlowOptions | None = None, time_indices: IntVec | None = None, opf_time_series_results: OptimalPowerFlowTimeSeriesResults | None = None, clustering_results: ClusteringResults | None = None, engine: EngineType = VeraGrid)[source]

Bases: TimeSeriesDriverTemplate

Three-phase power-flow time-series driver.

name = 'Power flow time series 3ph'
opf_time_series_results: OptimalPowerFlowTimeSeriesResults | None
options: PowerFlowOptions
run() → None[source]

Run the selected three-phase time-series simulation.

Returns:

None.

run_gslv(time_indices: ndarray[tuple[Any, ...], dtype[int64]]) → PowerFlowTimeSeriesResults3Ph[source]

Run the three-phase time series with one native GSLV snapshot per time step.

Parameters:

time_indices – Selected time indices.

Returns:

Time-series results.

run_single_thread(time_indices: ndarray[tuple[Any, ...], dtype[int64]]) → PowerFlowTimeSeriesResults3Ph[source]

Run the three-phase time series with the internal engine.

Parameters:

time_indices – Selected time indices.

Returns:

Time-series results.

tpe = 'Power flow time series 3ph'

VeraGridEngine.Simulations.PowerFlow3ph.power_flow_ts_results_3ph module

class VeraGridEngine.Simulations.PowerFlow3ph.power_flow_ts_results_3ph.PowerFlowTimeSeriesResults3Ph(n: int, m: int, n_hvdc: int, n_vsc: int, n_gen: int, n_batt: int, n_sh: int, n_load: int, bus_names: ndarray[tuple[Any, ...], dtype[str_]], branch_names: ndarray[tuple[Any, ...], dtype[str_]], hvdc_names: ndarray[tuple[Any, ...], dtype[str_]], vsc_names: ndarray[tuple[Any, ...], dtype[str_]], gen_names: ndarray[tuple[Any, ...], dtype[str_]], batt_names: ndarray[tuple[Any, ...], dtype[str_]], sh_names: ndarray[tuple[Any, ...], dtype[str_]], load_names: ndarray[tuple[Any, ...], dtype[str_]], bus_types: ndarray[tuple[Any, ...], dtype[int64]], time_array: DatetimeIndex, clustering_results: ClusteringResults | None = None)[source]

Bases: ResultsTemplate

Three-phase power-flow time-series results container.

CLASS_DATA_VARIABLES = {'F': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If_N': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_N': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_vsc_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_vsc_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_vsc_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pf_hvdc_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pf_hvdc_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pf_hvdc_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pfp_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pt_hvdc_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pt_hvdc_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pt_hvdc_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sbus_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sbus_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sbus_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sbus_N': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sf_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sf_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sf_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_vsc_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_vsc_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_vsc_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'T': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Vbranch_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Vbranch_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Vbranch_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'area_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'batt_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'battery_q_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'battery_q_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'battery_q_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'branch_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'bus_area_indices': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'bus_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'bus_types': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'converged_values': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'error_values': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'gen_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'gen_q_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'gen_q_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'gen_q_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_F': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_T': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'load_Vn': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'load_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_hvdc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses_hvdc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'sh_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'shunt_Vn': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'shunt_q_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'shunt_q_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'shunt_q_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'tap_angle': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'tap_module': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'time_array': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'voltage_A': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'voltage_B': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'voltage_C': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'voltage_N': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'vsc_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>}
CLASS_RESULTS_DECLARATIONS = (<VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>)
If_A: ndarray[tuple[Any, ...], dtype[complex128]]
If_B: ndarray[tuple[Any, ...], dtype[complex128]]
If_C: ndarray[tuple[Any, ...], dtype[complex128]]
If_N: ndarray[tuple[Any, ...], dtype[complex128]]
If_vsc: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
It_A: ndarray[tuple[Any, ...], dtype[complex128]]
It_B: ndarray[tuple[Any, ...], dtype[complex128]]
It_C: ndarray[tuple[Any, ...], dtype[complex128]]
It_N: ndarray[tuple[Any, ...], dtype[complex128]]
It_vsc_A: ndarray[tuple[Any, ...], dtype[complex128]]
It_vsc_B: ndarray[tuple[Any, ...], dtype[complex128]]
It_vsc_C: ndarray[tuple[Any, ...], dtype[complex128]]
LOCAL_RESULTS_DECLARATIONS = (<VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>, <VeraGridEngine.Simulations.results_template.ResultsProperty object>)
Pf_hvdc_A: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
Pf_hvdc_B: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
Pf_hvdc_C: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
Pfp_vsc: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
Pt_hvdc_A: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
Pt_hvdc_B: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
Pt_hvdc_C: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
Sbus_A: ndarray[tuple[Any, ...], dtype[complex128]]
Sbus_B: ndarray[tuple[Any, ...], dtype[complex128]]
Sbus_C: ndarray[tuple[Any, ...], dtype[complex128]]
Sbus_N: ndarray[tuple[Any, ...], dtype[complex128]]
Sf_A: ndarray[tuple[Any, ...], dtype[complex128]]
Sf_B: ndarray[tuple[Any, ...], dtype[complex128]]
Sf_C: ndarray[tuple[Any, ...], dtype[complex128]]
St_A: ndarray[tuple[Any, ...], dtype[complex128]]
St_B: ndarray[tuple[Any, ...], dtype[complex128]]
St_C: ndarray[tuple[Any, ...], dtype[complex128]]
St_vsc_A: ndarray[tuple[Any, ...], dtype[complex128]]
St_vsc_B: ndarray[tuple[Any, ...], dtype[complex128]]
St_vsc_C: ndarray[tuple[Any, ...], dtype[complex128]]
Vbranch_A: ndarray[tuple[Any, ...], dtype[complex128]]
Vbranch_B: ndarray[tuple[Any, ...], dtype[complex128]]
Vbranch_C: ndarray[tuple[Any, ...], dtype[complex128]]
batt_names: ndarray[tuple[Any, ...], dtype[str_]]
battery_q_A: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
battery_q_B: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
battery_q_C: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
branch_names: ndarray[tuple[Any, ...], dtype[str_]]
bus_names: ndarray[tuple[Any, ...], dtype[str_]]
bus_types: ndarray[tuple[Any, ...], dtype[int64]]
converged_values: ndarray[tuple[Any, ...], dtype[bool]]
error_values: ndarray[tuple[Any, ...], dtype[float64]]
gen_names: ndarray[tuple[Any, ...], dtype[str_]]
gen_q_A: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
gen_q_B: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
gen_q_C: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
hvdc_names: ndarray[tuple[Any, ...], dtype[str_]]
load_Vn: ndarray[tuple[Any, ...], dtype[complex128]]
load_names: ndarray[tuple[Any, ...], dtype[str_]]
loading_A: ndarray[tuple[Any, ...], dtype[complex128]]
loading_B: ndarray[tuple[Any, ...], dtype[complex128]]
loading_C: ndarray[tuple[Any, ...], dtype[complex128]]
loading_hvdc: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
loading_vsc: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
losses_A: ndarray[tuple[Any, ...], dtype[complex128]]
losses_B: ndarray[tuple[Any, ...], dtype[complex128]]
losses_C: ndarray[tuple[Any, ...], dtype[complex128]]
losses_hvdc: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
losses_vsc: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
mdl(result_type: ResultTypes) → ResultsTable[source]

Build the requested time-series table.

Parameters:

result_type – Requested result type.

Returns:

Results table.

set_at(t: int, results: PowerFlowResults3Ph) → None[source]

Store one snapshot three-phase power-flow solution at one time index.

Parameters:
  • t – Time row index.

  • results – Snapshot three-phase results object.

Returns:

None.

sh_names: ndarray[tuple[Any, ...], dtype[str_]]
shunt_Vn: ndarray[tuple[Any, ...], dtype[complex128]]
shunt_q_A: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
shunt_q_B: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
shunt_q_C: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
tap_angle: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
tap_module: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]]
voltage_A: ndarray[tuple[Any, ...], dtype[complex128]]
voltage_B: ndarray[tuple[Any, ...], dtype[complex128]]
voltage_C: ndarray[tuple[Any, ...], dtype[complex128]]
voltage_N: ndarray[tuple[Any, ...], dtype[complex128]]
vsc_names: ndarray[tuple[Any, ...], dtype[str_]]

VeraGridEngine.Simulations.PowerFlow3ph.power_flow_worker_3ph module

VeraGridEngine.Simulations.PowerFlow3ph.power_flow_worker_3ph.multi_island_pf_3ph(multi_circuit: MultiCircuit, options: PowerFlowOptions, opf_results: VALID_OPF_RESULTS | None = None, t: Union[int, None] = None, logger: Logger = <VeraGridEngine.basic_structures.Logger object>, bus_dict: Union[Dict[Bus, int], None] = None, areas_dict: Union[Dict[Area, int], None] = None) → PowerFlowResults3Ph[source]

Multiple islands power flow (this is the most generic power flow function) :param multi_circuit: MultiCircuit instance :param options: PowerFlowOptions instance :param opf_results: OPF results, to be used if not None :param t: time step, if None, the snapshot is compiled :param logger: list of events to add to :param bus_dict: Dus object to index dictionary :param areas_dict: Area to area index dictionary :return: PowerFlowResults instance

VeraGridEngine.Simulations.PowerFlow3ph.power_flow_worker_3ph.multi_island_pf_nc_3ph(nc: NumericalCircuit, options: PowerFlowOptions, logger: Logger | None = None, V_guess: ndarray[tuple[Any, ...], dtype[complex128]] | None = None, Sbus_input: ndarray[tuple[Any, ...], dtype[complex128]] | None = None) → PowerFlowResults3Ph[source]

Multiple islands power flow (this is the most generic power flow function) :param nc: SnapshotData instance :param options: PowerFlowOptions instance :param logger: logger :param V_guess: voltage guess :param Sbus_input: Use this power injections if provided (in p.u.) :return: PowerFlowResults instance

Module contents