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
Using the file conversion
to_andes()
will automatically link the AMS system to the converted ANDES system in the attributedyn
.
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.
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
Indicator of whether the ANDES system is running a TDS.