System.to_andes#
- System.to_andes(setup=True, addfile=None, **kwargs)[source]#
Convert the AMS system to an ANDES system.
A preferred dynamic system file to be added has following features: 1. The file contains both power flow and dynamic models. 2. The file can run in ANDES natively. 3. Power flow models are in the same shape as the AMS system. 4. Dynamic models, if any, are in the same shape as the AMS system.
- Parameters:
- setupbool, optional
Whether to call setup() after the conversion. Default is True.
- addfilestr, optional
The additional file to be converted to ANDES dynamic mdoels.
- **kwargsdict
Keyword arguments to be passed to andes.system.System.
- Returns:
- andesandes.system.System
The converted ANDES system.
Examples
>>> import ams >>> import andes >>> sp = ams.load(ams.get_case('ieee14/ieee14_rted.xlsx'), setup=True) >>> sa = sp.to_andes(setup=False, ... addfile=andes.get_case('ieee14/ieee14_wt3.xlsx'), ... overwrite=True, no_keep=True, no_output=True)