VeraGridEngine.Simulations.PowerFlow packageο
Subpackagesο
- VeraGridEngine.Simulations.PowerFlow.Formulations package
- Submodules
- VeraGridEngine.Simulations.PowerFlow.Formulations.pf_advanced_formulation module
PfAdvancedFormulationPfAdvancedFormulation.Jacobian()PfAdvancedFormulation.analyze_branch_controls()PfAdvancedFormulation.check_error()PfAdvancedFormulation.fx()PfAdvancedFormulation.fx_diff()PfAdvancedFormulation.get_fx_names()PfAdvancedFormulation.get_solution()PfAdvancedFormulation.get_x_names()PfAdvancedFormulation.size()PfAdvancedFormulation.update()PfAdvancedFormulation.update_bus_types()PfAdvancedFormulation.var2x()PfAdvancedFormulation.x2var()
adv_jacobian()calc_autodiff_jacobian()
- VeraGridEngine.Simulations.PowerFlow.Formulations.pf_basic_formulation module
PfBasicFormulationPfBasicFormulation.Jacobian()PfBasicFormulation.check_error()PfBasicFormulation.fx()PfBasicFormulation.get_fx_names()PfBasicFormulation.get_solution()PfBasicFormulation.get_x_names()PfBasicFormulation.size()PfBasicFormulation.update()PfBasicFormulation.update_bus_types()PfBasicFormulation.var2x()PfBasicFormulation.x2var()
- VeraGridEngine.Simulations.PowerFlow.Formulations.pf_basic_formulation_3ph module
PfBasicFormulation3PhPfBasicFormulation3Ph.Jacobian()PfBasicFormulation3Ph.check_error()PfBasicFormulation3Ph.compute_f()PfBasicFormulation3Ph.fx()PfBasicFormulation3Ph.get_fx_names()PfBasicFormulation3Ph.get_solution()PfBasicFormulation3Ph.get_x_names()PfBasicFormulation3Ph.size()PfBasicFormulation3Ph.update()PfBasicFormulation3Ph.update_bus_types()PfBasicFormulation3Ph.var2x()PfBasicFormulation3Ph.x2var()
calc_autodiff_jacobian()compute_current_loads()compute_generators()compute_power_loads()compute_ybus()compute_ybus_generator()expand3ph()expandVoltage3ph()expand_indices_3ph()expand_magnitudes()expand_matrix()expand_slice_indices_3ph()lookup_from_mask()slice_indices()
- VeraGridEngine.Simulations.PowerFlow.Formulations.pf_formulation_template module
PfFormulationTemplatePfFormulationTemplate.Jacobian()PfFormulationTemplate.VaPfFormulationTemplate.VmPfFormulationTemplate.check_error()PfFormulationTemplate.convergedPfFormulationTemplate.errorPfFormulationTemplate.fPfFormulationTemplate.fx()PfFormulationTemplate.get_f_df()PfFormulationTemplate.get_fx_names()PfFormulationTemplate.get_jacobian_df()PfFormulationTemplate.get_solution()PfFormulationTemplate.get_x_df()PfFormulationTemplate.get_x_names()PfFormulationTemplate.size()PfFormulationTemplate.solve_step()PfFormulationTemplate.solve_step_from_f()PfFormulationTemplate.update()PfFormulationTemplate.var2x()PfFormulationTemplate.x2var()
- VeraGridEngine.Simulations.PowerFlow.Formulations.pf_full_acdc_with_negative_poles module
PfAcDcWithNegativePolesPfAcDcWithNegativePoles.Jacobian()PfAcDcWithNegativePoles.check_error()PfAcDcWithNegativePoles.compute_f()PfAcDcWithNegativePoles.fx()PfAcDcWithNegativePoles.get_fx_names()PfAcDcWithNegativePoles.get_solution()PfAcDcWithNegativePoles.get_x_names()PfAcDcWithNegativePoles.size()PfAcDcWithNegativePoles.update()PfAcDcWithNegativePoles.var2x()PfAcDcWithNegativePoles.x2var()
adv_jacobian()calcSf()calcSt()calc_autodiff_jacobian()calc_flows_active_branch_per_bus()calc_flows_summation_per_bus()
- VeraGridEngine.Simulations.PowerFlow.Formulations.pf_full_acdc_with_negative_poles_sc module
PfAcDcWithNegativePolesScPfAcDcWithNegativePolesSc.Jacobian()PfAcDcWithNegativePolesSc.check_error()PfAcDcWithNegativePolesSc.compute_f()PfAcDcWithNegativePolesSc.fx()PfAcDcWithNegativePolesSc.get_fx_names()PfAcDcWithNegativePolesSc.get_solution()PfAcDcWithNegativePolesSc.get_x_names()PfAcDcWithNegativePolesSc.size()PfAcDcWithNegativePolesSc.update()PfAcDcWithNegativePolesSc.var2x()PfAcDcWithNegativePolesSc.x2var()
adv_jacobian()calcSf()calcSt()calc_autodiff_jacobian()calc_flows_active_branch_per_bus()calc_flows_summation_per_bus()
- VeraGridEngine.Simulations.PowerFlow.Formulations.pf_generalized_formulation module
PfGeneralizedFormulationPfGeneralizedFormulation.Jacobian()PfGeneralizedFormulation.check_error()PfGeneralizedFormulation.compute_f()PfGeneralizedFormulation.fx()PfGeneralizedFormulation.get_fx_names()PfGeneralizedFormulation.get_solution()PfGeneralizedFormulation.get_x_names()PfGeneralizedFormulation.size()PfGeneralizedFormulation.update()PfGeneralizedFormulation.var2x()PfGeneralizedFormulation.x2var()
adv_jacobian()calcSf()calcSt()calc_autodiff_jacobian()calc_flows_active_branch_per_bus()calc_flows_summation_per_bus()
- Module contents
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods package
- Submodules
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods.common_functions module
active_power_mismatch()asynchronous_gen_q()compute_current()compute_fx()compute_fx_error()compute_power()compute_zip_current()compute_zip_power()expand()expand_magnitudes()floating_star_currents()floating_star_powers()fortescue_012_to_abc()get_If()get_It()get_Sf()get_St()polar_to_rect()power_flow_post_process_linear()power_flow_post_process_nonlinear()power_flow_post_process_nonlinear_3ph()solve_slip()split_bus_quantity()split_reactive_power_between_generators_and_batteries()split_slack_bus_quantity_between_generators_and_batteries()voltage_pdc_droop()voltage_q_droop()
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods.converter_fault_controls module
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods.converter_fault_controls_no_ifs module
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods.discrete_controls module
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods.fast_decoupled module
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods.gauss_power_flow module
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods.helm_power_flow module
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods.iwamoto_newton_raphson module
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods.levenberg_marquadt_fx module
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods.linearized_power_flow module
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods.newton_raphson_fx module
- VeraGridEngine.Simulations.PowerFlow.NumericalMethods.powell_fx module
- Module contents
Submodulesο
VeraGridEngine.Simulations.PowerFlow.grid_analysis moduleο
VeraGridEngine.Simulations.PowerFlow.power_flow_driver moduleο
- class VeraGridEngine.Simulations.PowerFlow.power_flow_driver.PowerFlowDriver(grid: MultiCircuit, options: PowerFlowOptions | None = None, opf_results: OptimalPowerFlowResults | None = None, t_idx: int | None = None, engine: EngineType = VeraGrid)[source]ο
Bases:
DriverTemplate- convergence_reportsο
- name = 'Power Flow'ο
- opf_results: OptimalPowerFlowResults | Noneο
- options: PowerFlowOptionsο
- t_idx: int | Noneο
- tpe = 'Power flow'ο
Power flow wrapper to use with Qt
VeraGridEngine.Simulations.PowerFlow.power_flow_driver_3ph moduleο
- class VeraGridEngine.Simulations.PowerFlow.power_flow_driver_3ph.PowerFlowDriver3Ph(grid: MultiCircuit, options: PowerFlowOptions | None = None, opf_results: OptimalPowerFlowResults | None = None, engine: EngineType = VeraGrid)[source]ο
Bases:
DriverTemplate- done_signalο
- elapsedο
- engineο
- gridο
- loggerο
- name = 'Power Flow 3ph'ο
- progress_signalο
- progress_textο
- results: PowerFlowResults3Phο
- tpe = 'Power flow 3ph'ο
Power flow wrapper
VeraGridEngine.Simulations.PowerFlow.power_flow_options moduleο
- class VeraGridEngine.Simulations.PowerFlow.power_flow_options.PowerFlowOptions[source]ο
Bases:
OptionsTemplatePower flow options
- CLASS_NON_EDITABLE_PROPERTIES: Tuple[str, ...] = ('idtag', 'diff_changes')ο
- CLASS_PROPERTIES_WITH_PROFILE: Dict[str, str] = {}ο
- CLASS_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:solver_type, prop:retry_with_other_methods, prop:tolerance, prop:max_iter, prop:limit_i_vsc, prop:control_Q, prop:verbose, prop:initialize_with_existing_solution, prop:control_taps_modules, prop:control_taps_phase, prop:control_remote_voltage, prop:orthogonalize_controls, prop:apply_temperature_correction, prop:branch_impedance_tolerance_mode, prop:distributed_slack, prop:ignore_single_node_islands, prop:trust_radius, prop:backtracking_parameter, prop:use_stored_guess, prop:initialize_angles, prop:generate_report)ο
- CLASS_PROPERTY_LIST: Tuple[GCProp, ...] = (prop:idtag, prop:name, prop:code, prop:rdfid, prop:action, prop:comment, prop:diff_changes, prop:solver_type, prop:retry_with_other_methods, prop:tolerance, prop:max_iter, prop:limit_i_vsc, prop:control_Q, prop:verbose, prop:initialize_with_existing_solution, prop:control_taps_modules, prop:control_taps_phase, prop:control_remote_voltage, prop:orthogonalize_controls, prop:apply_temperature_correction, prop:branch_impedance_tolerance_mode, prop:distributed_slack, prop:ignore_single_node_islands, prop:trust_radius, prop:backtracking_parameter, prop:use_stored_guess, prop:initialize_angles, prop:generate_report)ο
- CLASS_REGISTERED_PROPERTIES: Dict[str, GCProp] = {'action': prop:action, 'apply_temperature_correction': prop:apply_temperature_correction, 'backtracking_parameter': prop:backtracking_parameter, 'branch_impedance_tolerance_mode': prop:branch_impedance_tolerance_mode, 'code': prop:code, 'comment': prop:comment, 'control_Q': prop:control_Q, 'control_remote_voltage': prop:control_remote_voltage, 'control_taps_modules': prop:control_taps_modules, 'control_taps_phase': prop:control_taps_phase, 'diff_changes': prop:diff_changes, 'distributed_slack': prop:distributed_slack, 'generate_report': prop:generate_report, 'idtag': prop:idtag, 'ignore_single_node_islands': prop:ignore_single_node_islands, 'initialize_angles': prop:initialize_angles, 'initialize_with_existing_solution': prop:initialize_with_existing_solution, 'limit_i_vsc': prop:limit_i_vsc, 'max_iter': prop:max_iter, 'name': prop:name, 'orthogonalize_controls': prop:orthogonalize_controls, 'rdfid': prop:rdfid, 'retry_with_other_methods': prop:retry_with_other_methods, 'solver_type': prop:solver_type, 'tolerance': prop:tolerance, 'trust_radius': prop:trust_radius, 'use_stored_guess': prop:use_stored_guess, 'verbose': prop:verbose}ο
- LOCAL_PROPERTY_DECLARATIONS: Tuple[GCProp, ...] = (prop:solver_type, prop:retry_with_other_methods, prop:tolerance, prop:max_iter, prop:limit_i_vsc, prop:control_Q, prop:verbose, prop:initialize_with_existing_solution, prop:control_taps_modules, prop:control_taps_phase, prop:control_remote_voltage, prop:orthogonalize_controls, prop:apply_temperature_correction, prop:branch_impedance_tolerance_mode, prop:distributed_slack, prop:ignore_single_node_islands, prop:trust_radius, prop:backtracking_parameter, prop:use_stored_guess, prop:initialize_angles, prop:generate_report)ο
- action: ActionTypeο
- comment: strο
- device_type: DeviceTypeο
- diff_changesο
- selected_to_mergeο
VeraGridEngine.Simulations.PowerFlow.power_flow_results moduleο
- class VeraGridEngine.Simulations.PowerFlow.power_flow_results.NumericPowerFlowResults(V: ndarray[tuple[Any, ...], dtype[complex128]], Scalc: ndarray[tuple[Any, ...], dtype[complex128]], m: ndarray[tuple[Any, ...], dtype[float64]], tau: ndarray[tuple[Any, ...], dtype[float64]], Sf: ndarray[tuple[Any, ...], dtype[complex128]], St: ndarray[tuple[Any, ...], dtype[complex128]], If: ndarray[tuple[Any, ...], dtype[complex128]], It: ndarray[tuple[Any, ...], dtype[complex128]], loading: ndarray[tuple[Any, ...], dtype[complex128]], losses: ndarray[tuple[Any, ...], dtype[complex128]], Pfp_vsc: ndarray[tuple[Any, ...], dtype[float64]], Pfn_vsc: ndarray[tuple[Any, ...], dtype[float64]], St_vsc: ndarray[tuple[Any, ...], dtype[complex128]], If_vsc: ndarray[tuple[Any, ...], dtype[float64]], It_vsc: ndarray[tuple[Any, ...], dtype[complex128]], losses_vsc: ndarray[tuple[Any, ...], dtype[float64]], loading_vsc: ndarray[tuple[Any, ...], dtype[float64]], Sf_hvdc: ndarray[tuple[Any, ...], dtype[complex128]], St_hvdc: ndarray[tuple[Any, ...], dtype[complex128]], losses_hvdc: ndarray[tuple[Any, ...], dtype[complex128]], loading_hvdc: ndarray[tuple[Any, ...], dtype[float64]], norm_f: float, converged: bool, iterations: int, elapsed: float)[source]ο
Bases:
objectNumericPowerFlowResults, used to return values from the numerical methods
- Ifο
- If_vscο
- Itο
- It_vscο
- Pfn_vscο
- Pfp_vscο
- Scalcο
- Sfο
- Sf_hvdcο
- Stο
- St_hvdcο
- St_vscο
- Vο
- convergedο
- elapsedο
- iterationsο
- loadingο
- loading_hvdcο
- loading_vscο
- lossesο
- losses_hvdcο
- losses_vscο
- methodο
- norm_fο
- tap_angleο
- tap_moduleο
- class VeraGridEngine.Simulations.PowerFlow.power_flow_results.PowerFlowResults(n: int, m: int, n_hvdc: int, n_vsc: int, n_gen: int, n_batt: int, n_sh: int, bus_names: ndarray, branch_names: ndarray, hvdc_names: ndarray, vsc_names: ndarray, gen_names: ndarray, batt_names: ndarray, sh_names: ndarray, bus_types: ndarray, clustering_results=None)[source]ο
Bases:
ResultsTemplate- CLASS_DATA_VARIABLES = {'F': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pf_hvdc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pfn_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pfp_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pt_hvdc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sbus': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sf': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'T': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Vbranch': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'area_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'batt_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'battery_p': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'battery_q': <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_p': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'gen_q': <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>, 'loading': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_hvdc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses': <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_q': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'tap_angle': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'tap_module': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'voltage': <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>)ο
- If: CxVecο
- If_vscο
- It: CxVecο
- It_vscο
- 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>)ο
- Pf_hvdc: Vecο
- Pfn_vscο
- Pfp_vscο
- Pt_hvdc: Vecο
- Sbus: CxVecο
- Sf: CxVecο
- St: CxVecο
- St_vscο
- Vbranch: CxVecο
- 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
- apply_new_rates(nc: NumericalCircuit)[source]ο
- Parameters:
nc
- Returns:
- batt_namesο
- battery_p: Vecο
- battery_q: Vecο
- branch_names: StrVecο
- bus_names: StrVecο
- bus_types: IntVecο
- compare(other: PowerFlowResults, 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
- gen_namesο
- gen_p: Vecο
- gen_q: Vecο
- 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_overload_score(branch_prices: ndarray[tuple[Any, ...], dtype[float64]])[source]ο
Compute the cost of overload :param branch_prices: array of branch prices :return:
- get_report_dataframe(island_idx=0)[source]ο
Get a DataFrame containing the convergence report.
Arguments:
island_idx: (optional) island index
Returns:
DataFrame
- hvdc_names: StrVecο
- property iterationsο
Check if converged in all modes :return: True / False
- loading: CxVecο
- loading_hvdc: Vecο
- loading_vscο
- losses: CxVecο
- losses_hvdc: Vecο
- losses_vscο
- mdl(result_type: ResultTypes) ResultsTable[source]ο
get the ResultsTable model :param result_type: ResultTypes :return: ResultsTable instance
- plot_bars_limit: intο
- sh_namesο
- shunt_q: Vecο
- tap_angle: Vecο
- tap_module: Vecο
- voltage: CxVecο
- vsc_names: StrVecο
VeraGridEngine.Simulations.PowerFlow.power_flow_results_3ph moduleο
- class VeraGridEngine.Simulations.PowerFlow.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>)ο
- F: IntVec | Noneο
- 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>)ο
- T: IntVec | Noneο
- 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
- area_names: StrVec | Noneο
- available_results: Dict[ResultTypes, List[ResultTypes]]ο
- bus_area_indices: IntVec | Noneο
- clustering_resultsο
- 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
- property elapsedο
Check if converged in all modes :return: True / False
- property errorο
Check if converged in all modes :return: True / False
- 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_F: IntVec | Noneο
- hvdc_T: IntVec | Noneο
- property iterationsο
Check if converged in all modes :return: True / False
- mdl(result_type: ResultTypes) ResultsTable[source]ο
get the ResultsTable model :param result_type: ResultTypes :return: ResultsTable instance
- name: strο
- original_sample_idx: IntVec | Noneο
- report_text: strο
- sampled_probabilities: Vec | Noneο
- study_results_type: StudyResultsTypeο
- time_indices: IntVec | Noneο
- using_clustersο
- VeraGridEngine.Simulations.PowerFlow.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.PowerFlow.power_flow_ts_driver moduleο
- class VeraGridEngine.Simulations.PowerFlow.power_flow_ts_driver.PowerFlowTimeSeriesDriver(grid: MultiCircuit, options: PowerFlowOptions | None = None, time_indices: ndarray[tuple[Any, ...], dtype[int64]] | None = None, opf_time_series_results=None, clustering_results: ClusteringResults | None = None, engine: EngineType = VeraGrid)[source]ο
Bases:
TimeSeriesDriverTemplate- name = 'Power flow time series'ο
- opf_time_series_resultsο
- optionsο
- run_gslv(time_indices=None) PowerFlowTimeSeriesResults[source]ο
Run with GSLV :param time_indices: array of time indices :return:
- run_newton_pa(time_indices=None) PowerFlowTimeSeriesResults[source]ο
Run with Newton Power Analytics :param time_indices: array of time indices :return:
- run_single_thread(time_indices) PowerFlowTimeSeriesResults[source]ο
Run single thread time series :param time_indices: array of time indices to consider :return: TimeSeriesResults instance
- tpe = 'Power flow time series'ο
VeraGridEngine.Simulations.PowerFlow.power_flow_ts_input moduleο
VeraGridEngine.Simulations.PowerFlow.power_flow_ts_results moduleο
- class VeraGridEngine.Simulations.PowerFlow.power_flow_ts_results.PowerFlowTimeSeriesResults(n: int, m: int, n_hvdc: int, n_vsc: 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_]], time_array: DatetimeIndex, bus_types: ndarray[tuple[Any, ...], dtype[int64]], n_gen: int, n_batt: int, n_sh: int, gen_names: ndarray[tuple[Any, ...], dtype[str_]], batt_names: ndarray[tuple[Any, ...], dtype[str_]], sh_names: ndarray[tuple[Any, ...], dtype[str_]], area_names: ndarray[tuple[Any, ...], dtype[str_]], clustering_results: ClusteringResults | None = None)[source]ο
Bases:
ResultsTemplate- CLASS_DATA_VARIABLES = {'F': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'If_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'It_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pf_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Pfn_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'S': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Sf': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'St_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'T': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'Vbranch': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'area_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'batt_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'battery_p': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'battery_q': <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_p': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'gen_q': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_F': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_Pf': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_Pt': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_T': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_loading': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_losses': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'hvdc_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'loading_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'losses_vsc': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'sh_names': <VeraGridEngine.Simulations.results_template.ResultsProperty object>, 'shunt_q': <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': <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>)ο
- If: CxMatο
- If_vscο
- It: CxMatο
- It_vscο
- 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>)ο
- Pf_vscο
- Pfn_vscο
- Sο
- Sfο
- Stο
- St_vscο
- Vbranchο
- apply_new_time_series_rates(nc: NumericalCircuit) None[source]ο
Recompute the loading with new rates
- Parameters:
nc β NumericalCircuit instance.
- batt_names: StrVecο
- battery_pο
- battery_qο
- branch_names: StrVecο
- bus_names: StrVecο
- bus_types: IntVecο
- converged_valuesο
- error_valuesο
- fill_circuit_info(grid: MultiCircuit) None[source]ο
- Parameters:
grid
- Returns:
- gen_names: StrVecο
- gen_pο
- gen_qο
- get_branch_values_per_area(branch_values: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]] | ndarray[tuple[Any, ...], dtype[complex128]]) ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]] | ndarray[tuple[Any, ...], dtype[complex128]][source]ο
- Parameters:
branch_values
- Returns:
- get_bus_values_per_area(bus_values: ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]] | ndarray[tuple[Any, ...], dtype[complex128]]) ndarray[tuple[Any, ...], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]] | ndarray[tuple[Any, ...], dtype[complex128]][source]ο
Aggregate bus-related time-series values per area.
- Parameters:
bus_values β Time-series bus values with shape
(nt, nbus).- Returns:
Area-aggregated values with shape
(nt, n_area).
- hvdc_Pfο
- hvdc_Ptο
- hvdc_loadingο
- hvdc_lossesο
- hvdc_names: StrVecο
- loadingο
- loading_vscο
- lossesο
- losses_vscο
- mdl(result_type: ResultTypes) ResultsTable[source]ο
- Parameters:
result_type
- Returns:
- static merge_if(df, arr, ind, cols)[source]ο
@param df: @param arr: @param ind: @param cols: @return:
- set_at(t: int, results: PowerFlowResults) None[source]ο
Store one snapshot power-flow solution into a time position.
- Parameters:
t β Time index.
results β Snapshot power-flow results.
- sh_names: StrVecο
- shunt_qο
- tap_angle: Matο
- tap_module: Matο
- voltageο
- vsc_names: StrVecο
VeraGridEngine.Simulations.PowerFlow.power_flow_worker moduleο
- VeraGridEngine.Simulations.PowerFlow.power_flow_worker.multi_island_pf(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) PowerFlowResults[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.PowerFlow.power_flow_worker.multi_island_pf_nc(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) PowerFlowResults[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
VeraGridEngine.Simulations.PowerFlow.power_flow_worker_3ph moduleο
- VeraGridEngine.Simulations.PowerFlow.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.PowerFlow.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