Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate TDPF in overall FACTS structure #2328

Open
4 tasks done
rbolgaryn opened this issue Jul 3, 2024 · 0 comments
Open
4 tasks done

Integrate TDPF in overall FACTS structure #2328

rbolgaryn opened this issue Jul 3, 2024 · 0 comments
Assignees

Comments

@rbolgaryn
Copy link
Member

Feature Checklist

Issue

        J = create_jacobian_matrix(Ybus+Ybus_ssc_not_controllable+Ybus_vsc_not_controllable, V, ref, refpvpq, pvpq, pq, createJ, pvpq_lookup, nref, npv, npq, numba, slack_weights, dist_slack)

        # if tdpf:
        #     # p.u. values for T, a1, a2, I, S
        #     # todo: distributed_slack works fine if sn_mva is rather high (e.g. 1000), otherwise no convergence. Why?
        #     J = create_J_tdpf(branch, tdpf_lines, alpha_pu, r_ref_pu, refpvpq if dist_slack else pvpq, pq, pvpq_lookup,
        #                       pq_lookup, tau, tdpf_delay_s, Vm, Va, r_theta_pu, J, r, x, g)

        if any_facts_controllable or tdpf:
            K_J = vstack([eye(J.shape[0], format="csr"),
                          csr_matrix((num_facts_controllable + len(tdpf_lines), J.shape[0]))], format="csr")
            J = K_J * J * K_J.T  # this extends the J matrix with 0-rows and 0-columns
        if tdpf:
            J_m_tdpf = create_J_tdpf(branch, tdpf_lines, alpha_pu, r_ref_pu, refpvpq if dist_slack else pvpq, pq, pvpq_lookup,
                              pq_lookup, tau, tdpf_delay_s, Vm, Va, r_theta_pu, J, r, x, g)
            J = J + J_m_tdpf
        if any_svc:
            J_m_svc = create_J_modification_svc(J, svc_buses, refpvpq if dist_slack else pvpq, pq, pq_lookup, Vm,
                                                x_control_svc, svc_x_l_pu, svc_x_cvar_pu, num_svc_controllable,
                                                svc_controllable)
            J = J + J_m_svc

Label

  • Relevant labels are selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants