DAE.resize_arrays#

DAE.resize_arrays()[source]#

Resize arrays to the new sizes m and n, and o.

If m > len(self.y) or n > len(self.x, arrays will be extended. Otherwise, new empty arrays will be sliced, starting from 0 to the given size.

Warning

This function should not be called directly. Instead, it is called in System.set_address which re-points variables used in power flow to the new array for dynamic analyses.