필터 지우기
필터 지우기

N-1 contingency matpower

조회 수: 34 (최근 30일)
Dexter
Dexter 2022년 10월 24일
댓글: eng ahmed 2023년 11월 26일
Hi how can I run a N-1 contingency in matpower? for example N-1 contingency for case9.
  댓글 수: 1
eng ahmed
eng ahmed 2023년 11월 26일
hi i ned some help pls, im student , i ned the 57 buss or 40 buss contegency anylsis code matlap file , (a.iraq64@yahoo.com)

댓글을 달려면 로그인하십시오.

채택된 답변

Aditya
Aditya 2023년 9월 1일
Hi Dexter,
To perform an N-1 contingency test in MATPOWER, you can follow these steps:
  1. First, use the 'loadcase' function to load the data of the required case file into MATLAB.
  2. Next, access the 'branch' field of the case data to determine the number of contingencies. You can remove the desired contingency by modifying the data accordingly.
  3. Finally, use the 'rundcpf' function to run the power flow analysis for each contingency case.
For more detailed information on how to use MATPOWER and these specific functions, I recommend referring to the official documentation. You can find the MATPOWER manual at this link: https://matpower.org/docs/MATPOWER-manual.pdf
Here is an example code snippet that demonstrates the process:
% Load the base case data
mpc = loadcase('case5');
% Identify the contingencies
n_contingencies = size(mpc.branch, 1);
results = cell(n_contingencies, 1);
% Run power flow for each contingency
for i = 1:n_contingencies
% Create a copy of the base case
contingency_case = mpc;
% Remove the i-th contingency
contingency_case.branch(i, :) = [];
% Run power flow for the contingency case
results{i} = rundcpf(contingency_case);
end
Hope this helps!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Robust Control Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by