フィルターのクリア

how to prepare a matlab code for tcsc

2 ビュー (過去 30 日間)
Karthika
Karthika 2015 年 1 月 16 日
回答済み: Swaraj 2023 年 2 月 9 日
i dont have any idea to model a tcsc by matlab coding. Is it possible to model it by coding? if it us possible please help me.
  3 件のコメント
Aswiny s
Aswiny s 2018 年 7 月 19 日
Plz if u know help me to write the matlab code
Popy Naomi
Popy Naomi 2021 年 8 月 23 日
please share me the code if you get it, thankyou

サインインしてコメントする。

回答 (1 件)

Swaraj
Swaraj 2023 年 2 月 9 日
Yes, it is Possible to write MATLAB code to implement TCSC.
f_base = 60; %Hz
R = 0.1; %Ohm
C = 100e-8; %F
V_base = 20e4; %V
alpha = 0.5;
L = 0.1; %H
t = 0:1e-3:1; %s
% Sinusoidal voltage and current waveform
V = V_base * sin(2 * pi * f_base * t);
I = V_base * sin(2 * pi * f_base * t) / (R + 1i * (2 * pi * f_base * L));
% Control signal
V_c = alpha * V;
% Capacitance Voltage
V_cap = V_c .* sin(2 * pi * f_base * t);
% Impedance
Z = R + 1i * (2 * pi * f_base * L + 1 / (2 * pi * f_base * C));
% Current
I_tcsc = V_cap / Z;
% Plot the results
figure;
subplot(2, 1, 1);
plot(t, V);
xlabel('s');
ylabel('V');
title('Voltage');
subplot(2, 1, 2);
plot(t, abs(I), 'r', t, abs(I_tcsc), 'b');
xlabel('s');
ylabel('A');
legend('Without TCSC', 'With TCSC');
title('Current Waveform');

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by