ams.interop.andes.Dynamic#

class ams.interop.andes.Dynamic(amsys=None, adsys=None)[source]#

ANDES interface class.

Parameters:
amsysAMS.system.System

The AMS system.

adsysANDES.system.System

The ANDES system.

Notes

  1. Using the file conversion to_andes() will automatically link the AMS system to the converted ANDES system in the attribute dyn.

Examples

>>> import ams
>>> import andes
>>> sp = ams.load(ams.get_case('ieee14/ieee14_rted.xlsx'), setup=True)
>>> sa = sp.to_andes(setup=True,
...                  addfile=andes.get_case('ieee14/ieee14_wt3.xlsx'),
...                  overwrite=True, keep=False, no_output=True)
>>> sp.RTED.run()
>>> sp.RTED.dc2ac()
>>> sp.dyn.send()  # send RTED results to ANDES system
>>> sa.PFlow.run()
>>> sp.TDS.run()
>>> sp.dyn.receive()  # receive TDS results from ANDES system
Attributes:
linkpandas.DataFrame

The ANDES system link table.

__init__(amsys=None, adsys=None) None[source]#

Methods

link_andes(adsys)

Link the ANDES system to the AMS system.

receive([adsys, routine, no_update])

Receive ANDES system results to AMS devices.

send([adsys, routine])

Send results of the recent sovled AMS dispatch (sp.recent) to the target ANDES system.

Attributes

is_tds

Indicator of whether the ANDES system is running a TDS.