tops.utility_functions

Classes

DynamicModel

EventManager

Functions

newton_rhapson_power_flow(y_bus, v_0, p_sum_bus, ...)

remove_recarray_field(a, field)

combine_recarrays(a, b)

Combine columns of recarrays

replace_str_col(a, col, strings)

Replaces column with strings (col) in structured array (a) with new strings.

concatenate_structured_arrays(a_list)

Combine rows of recarrays

structured_array_from_list(names, entries)

lookup_strings(a, b[, return_mask])

jacobian_num(f, x[, eps])

Module Contents

tops.utility_functions.newton_rhapson_power_flow(y_bus, v_0, p_sum_bus, q_sum_bus, bus_types, tol, pf_max_it)
tops.utility_functions.remove_recarray_field(a, field)
tops.utility_functions.combine_recarrays(a, b)

Combine columns of recarrays :param a: :param b: :return:

tops.utility_functions.replace_str_col(a, col, strings)

Replaces column with strings (col) in structured array (a) with new strings. dtype is updated if new strings are longer than previous strings. :param a: Structured array :param col: String that points to column of a :param strings: Array of strings that will replace content in a[col] :return: Structured array with updated column

tops.utility_functions.concatenate_structured_arrays(a_list)

Combine rows of recarrays :param a_list: :return:

tops.utility_functions.structured_array_from_list(names, entries)
tops.utility_functions.lookup_strings(a, b, return_mask=False)
tops.utility_functions.jacobian_num(f, x, eps=1e-10, **params)
class tops.utility_functions.DynamicModel
class tops.utility_functions.EventManager(events, event_function)
events
event_flags
event_function
update(t_now)