Synchronous Generator transient response problem

AI Thread Summary
The discussion revolves around a code issue related to the transient response of a synchronous generator, specifically the challenge of achieving a 50 Hz, 230 volts output. The user has provided a code snippet that includes signal processing elements such as sampling frequency and discrete signal plotting. They mention that while the time domain graphs appear correct, the FFT results are confusing, indicating a scaling problem. The user has also shared a data file for context, emphasizing their use of the per unit (pu) system in the model. Assistance is sought to resolve the scaling issue in the FFT analysis.
commelion
Messages
40
Reaction score
0
Hi , Hope someone could offer me a solution to this piece of code, the code below shows a period in time of a synchronous generator transient response, My scaling is the problem as I am not getting 50 Hz 230 volts, your help would be appreciated..

My efforts so far are

% Transient Response of Generator


%clear all;
%close all;

%Highest known frequency component > 50 Hz

% set appropriate signal variables
fs = 150;
T = 1/fs;
N = 400;
n = 0:N-1;
t = n*T;
fax = (0:N/2) * (fs/N);

% Discrete signal
x = (D5(2000:5000));
subplot(211)

% Plot discrete signal
subplot (211);
plot (x);
title('Syn Generator Transient Window','FontSize',14);
xlabel('Samples', 'FontSize',12);
ylabel('Amplitude','FontSize', 12);

%Plot DFT
subplot(212)
X = abs(fft(x));
stem(fax,(2/N) * X(1:N/2+1));
title('DFT','FontSize',14);
xlabel('Frequency [Hz]','FontSize',12);
ylabel('Magnitude','FontSize',12);
 

Attachments

Last edited:
Physics news on Phys.org
commelion said:
Hi , Hope someone could offer me a solution to this piece of code, the code below shows a period in time of a synchronous generator transient response, My scaling is the problem as I am not getting 50 Hz 230 volts, your help would be appreciated..

My efforts so far are

% Transient Response of Generator%clear all;
%close all;

%Highest known frequency component > 50 Hz

% set appropriate signal variables
fs = 150;
T = 1/fs;
N = 400;
n = 0:N-1;
t = n*T;
fax = (0:N/2) * (fs/N);

% Discrete signal
x = (D5(2000:5000));
subplot(211)

% Plot discrete signal
subplot (211);
plot (x);
title('Syn Generator Transient Window','FontSize',14);
xlabel('Samples', 'FontSize',12);
ylabel('Amplitude','FontSize', 12);

%Plot DFT
subplot(212)
X = abs(fft(x));
stem(fax,(2/N) * X(1:N/2+1));
title('DFT','FontSize',14);
xlabel('Frequency [Hz]','FontSize',12);
ylabel('Magnitude','FontSize',12);
>> I have added the data file in exel format, it is 3000 samples long, this would be 1.5 seconds of a larger time set.

>>Just to note i am using the per unit (pu) system on my model, so this is why the time domain shows -1000 to 1000, all the time domain graphing is correct, its the fft that has me confused.com!Thanks in advance
 
Last edited:

Similar threads

Replies
8
Views
2K
Replies
5
Views
2K
Replies
4
Views
2K
Replies
1
Views
435
Replies
4
Views
2K
Replies
5
Views
1K
Replies
1
Views
2K
Replies
2
Views
6K
Back
Top