Skip to content

Capacity related APIs

Changgang Li edited this page Feb 8, 2021 · 1 revision

get_allowed_maximum_bus_number

Format: get_allowed_maximum_bus_number()
Description: Get allowed maximum bus number.
Args: N/A

Rets:

(1) Allowed maximum bus number.

Example:

num_max = simulator.get_allowed_maximum_bus_number()  

set_allowed_maximum_bus_number

Format: set_allowed_maximum_bus_number(max_bus_number)
Description: Set allowed maximum bus number. All buses in the database should be less than the give max bus number.
Args:

(1) max_bus_number: Allowed maximum bus number.

Rets: N/A

Example:

num_max = 10000  
simulator.set_allowed_maximum_bus_number(num_max) # 1~10000  
num_max = 9000  
simulator.set_allowed_maximum_bus_number(num_max) # 1~9000  

get_bus_capacity

Format: get_bus_capacity()
Description: Get capacity for storing buses in database.
Args: N/A

Rets:

(1) Maximum number of buses that can be stored in the database.

Example:

nbus_max = simulator.get_bus_capacity()  

get_generator_capacity

Format: get_generator_capacity()
Description: Get capacity for storing generators in database.
Args: N/A

Rets:

(1) Maximum number of generators that can be stored in the database.

Example:

ngen_max = simulator.get_generator_capacity()  

get_wt_generator_capacity

Format: get_wt_generator_capacity()
Description: Get capacity for storing wind turbine generators in database.
Args: N/A

Rets:

(1) Maximum number of wind turbine generators that can be stored in the database.

Example:

nwtgen_max = simulator.get_wt_generator_capacity()  

get_pv_unit_capacity

Format: get_pv_unit_capacity()
Description: Get capacity for storing PV units in database.
Args: N/A

Rets:

(1) Maximum number of PV units that can be stored in the database.

Example:

npv_max = simulator.get_pv_unit_capacity()  

get_load_capacity

Format: get_load_capacity()
Description: Get capacity for storing loads in database.
Args: N/A

Rets:

(1) Maximum number of loads that can be stored in the database.

Example:

nload_max = simulator.get_load_capacity()  

get_fixed_shunt_capacity

Format: get_fixed_shunt_capacity()
Description: Get capacity for storing fixed shunts in database.
Args: N/A

Rets:

(1) Maximum number of fixed shunts that can be stored in the database.

Example:

nshunt_max = simulator.get_fixed_shunt_capacity()  

get_line_capacity

Format: get_line_capacity()
Description: Get capacity for storing transmission lines in database.
Args: N/A

Rets:

(1) Maximum number of transmission lines that can be stored in the database.

Example:

nline_max = simulator.get_line_capacity()  

get_transformer_capacity

Format: get_transformer_capacity()
Description: Get capacity for storing transformers in database.
Args: N/A

Rets:

(1) Maximum number of transformers that can be stored in the database.

Example:

ntrans_max = simulator.get_transformer_capacity()  

get_hvdc_capacity

Format: get_hvdc_capacity()
Description: Get capacity for storing HVDC links in database.
Args: N/A

Rets:

(1) Maximum number of HVDC links that can be stored in the database.

Example:

nhvdc_max = simulator.get_hvdc_capacity()  

get_equivalent_device_capacity

Format: get_equivalent_device_capacity()
Description: Get capacity for storing equivalent devices in database.
Args: N/A

Rets:

(1) Maximum number of equivalent devices that can be stored in the database.

Example:

ned_max = simulator.get_equivalent_device_capacity()  

get_energy_storage_capacity

Format: get_energy_storage_capacity()
Description: Get capacity for storing energy storages in database.
Args: N/A

Rets:

(1) Maximum number of energy storages that can be stored in the database.

Example:

nstorage_max = simulator.get_energy_storage_capacity()  

get_area_capacity

Format: get_area_capacity()
Description: Get capacity for storing areas in database.
Args: N/A

Rets:

(1) Maximum number of areas that can be stored in the database.

Example:

narea_max = simulator.get_area_capacity()  

get_zone_capacity

Format: get_zone_capacity()
Description: Get capacity for storing zones in database.
Args: N/A

Rets:

(1) Maximum number of zones that can be stored in the database.

Example:

nzone_max = simulator.get_zone_capacity()  

get_owner_capacity

Format: get_owner_capacity()
Description: Get capacity for storing owners in database.
Args: N/A

Rets:

(1) Maximum number of owners that can be stored in the database.

Example:

nowner_max = simulator.get_owner_capacity()  

set_bus_capacity

Format: set_bus_capacity(capacity)
Description: Set capacity for storing buses in database.
Args:

(1) capacity: Maximum number of buses that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example:

nbus_max = simulator.get_bus_capacity()  

set_generator_capacity

Format: set_generator_capacity(capacity)
Description: Set capacity for storing generators in database.
Args:

(1) capacity: Maximum number of generators that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

set_wt_generator_capacity

Format: set_wt_generator_capacity(capacity)
Description: Set capacity for storing wind turbine generators in database.
Args:

(1) capacity: Maximum number of wind turbine generators that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

set_pv_unit_capacity

Format: set_pv_unit_capacity(capacity)
Description: Set capacity for storing PV units in database.
Args:

(1) capacity: Maximum number of PV units that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

set_load_capacity

Format: set_load_capacity(capacity)
Description: Set capacity for storing loads in database.
Args:

(1) capacity: Maximum number of loads that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

set_fixed_shunt_capacity

Format: set_fixed_shunt_capacity(capacity)
Description: Set capacity for storing fixed shunts in database.
Args:

(1) capacity: Maximum number of fixed shunts that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

set_line_capacity

Format: set_line_capacity(capacity)
Description: Set capacity for storing transmission lines in database.
Args:

(1) capacity: Maximum number of transmission lines that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

set_transformer_capacity

Format: set_transformer_capacity(capacity)
Description: Set capacity for storing transformers in database.
Args:

(1) capacity: Maximum number of transformers that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

set_hvdc_capacity

Format: set_hvdc_capacity(capacity)
Description: Set capacity for storing HVDC links in database.
Args:

(1) capacity: Maximum number of HVDC links that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

set_equivalent_device_capacity

Format: set_equivalent_device_capacity(capacity)
Description: Set capacity for storing equivalent devices in database.
Args:

(1) capacity: Maximum number of equivalent devices that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

set_energy_storage_capacity

Format: set_energy_storage_capacity(capacity)
Description: Set capacity for storing energy storages in database.
Args:

(1) capacity: Maximum number of energy storages that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

set_area_capacity

Format: set_area_capacity(capacity)
Description: Set capacity for storing areas in database.
Args:

(1) capacity: Maximum number of areas that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

set_zone_capacity

Format: set_zone_capacity(capacity)
Description: Set capacity for storing zones in database.
Args:

(1) capacity: Maximum number of zones that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

set_owner_capacity

Format: set_owner_capacity(capacity)
Description: Set capacity for storing owners in database.
Args:

(1) capacity: Maximum number of owners that can be stored in the database.

Rets: N/A

Tips:

This function SHOULD be called before adding devices to the database.

Example: N/A

get_dynamic_model_database_capacity

Format: get_dynamic_model_database_capacity()
Description: Get capacity of dynamic model database.
Args: N/A

Rets:

(1) database capacity in bytes, integer

Example: N/A

set_dynamic_model_database_capacity

Format: set_dynamic_model_database_capacity(cap=10000000)
Description: Set capacity of dynamic model database. If the capacity is not enough, dynamic data cannot be successfully loaded.
Args:

(1) cap: integer, database capacity, in bytes.

Rets:

(1) N/A

Example: N/A

Clone this wiki locally