Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
Power System Simulation and Optimization
DPsim
DPsim
Commits
249585b0
Commit
249585b0
authored
Dec 21, 2017
by
Viviane Sapucaia
Browse files
Function to convert fundamental parameters to standard parameters
parent
8d915048
Changes
2
Hide whitespace changes
Inline
Side-by-side
Examples/Matlab/FundamentalToStandard.m
0 → 100644
View file @
249585b0
function
[
Td0_t
,
Td0_s
,
Td_t
,
Td_s
,
Ld_t
,
Ld_s
,
Tq0_t
,
Tq0_s
,
...
Lq_t
,
Lq_s
,
Ld
,
Lq
]
=
...
FundamentalToStandard
(
Ll
,
Lad
,
Lfd
,
L1d
,
R1d
,
Rfd
,
...
Laq
,
L1q
,
L2q
,
R1q
,
R2q
)
%FundamentalToStandard Transform fundamental machine parameters to standard
%parameters
% The calculations are based on the classical definition.
% Equations used are from Kundur p. 144 - 147
% ---- Relationship between parameters used in DPSim and parameters
% defined in Kundur:
% Lad = Lmd
% L1d = Llkd
% Lfd = Llfd
% Laq = Lmq
% L1q = Llkq1
% L2q = Llkq2
%% Calculation of standard parameters
% D-axis inductance
Ld
=
Lad
+
Ll
;
Lq
=
Laq
+
Ll
;
% Time constants of d-axis
Td0_t
=
(
Lad
+
Lfd
)/
Rfd
;
Td0_s
=
(
1
/
R1d
)
*
(
L1d
+
(
Lad
*
Lfd
)/(
Lad
+
Lfd
));
Td_t
=
(
1
/
Rfd
)
*
(
Lfd
+
(
Lad
*
Ll
)/(
Lad
+
Ll
));
Td_s
=
(
1
/
R1d
)
*
(
L1d
+
(
Lad
*
Lfd
*
Ll
)/(
Lad
*
Ll
+
Lad
*
Lfd
+
Lfd
*
Ll
));
Td0_t
=
Td0_t
/
377
;
Td0_s
=
Td0_s
/
377
;
Td_t
=
Td_t
/
377
;
Td_s
=
Td_s
/
377
;
% Inductances of d-axis
Ld_s
=
Ld
*
(
Td_t
*
Td_s
/(
Td0_t
*
Td0_s
));
Ld_t
=
Ld
*
(
Td_t
/
Td0_t
);
% Time constants of q-axis
Tq0_t
=
(
Laq
+
L1q
)/
R1q
;
Tq0_s
=
(
1
/
R2q
)
*
(
L2q
+
(
Laq
*
L1q
)/(
Laq
+
L1q
));
% Tq_t = (1/R1q)*(L1q + (Laq*Ll)/(Laq + Ll));
% Tq_s = (1/R2q)*(L2q + (Laq*L1q*Ll)/(Laq*Ll + Laq*L1q + L1q*Ll));
Tq0_t
=
Tq0_t
/
377
;
Tq0_s
=
Tq0_s
/
377
;
% Tq_t = Tq_t/377;
% Tq_s = Tq_s/377;
% Inductances of q-axis
Lq_s
=
Ll
+
Laq
*
L1q
*
L2q
/(
Laq
*
L1q
+
Laq
*
L2q
+
L1q
*
L2q
);
Lq_t
=
Ll
+
Laq
*
L1q
/(
Laq
+
L1q
);
end
Examples/Matlab/TestingParameterConvertion.m
0 → 100644
View file @
249585b0
[ Td0_t, Td0_s, Td_t, Td_s, Ld_t, Ld_s, Tq0_t, Tq0_s, ...
Lq_t, Lq_s, Ld, Lq ] = ...
FundamentalToStandard(0.15, 1.66, 0.165, 0.1713, 0.0284, 0.0006, 1.61, 0.7252, 0.125, 0.0062, 0.0237)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment