Professional Documents
Culture Documents
disp('-----------')
Connection = input('Please Enter The Connection type : for Dy press 1 - for Dd press 2 - for Yy press 3 -
for Yd press 4');
if Connection == 1
VHv = 1 * VHv;
VLv = 1 * VLv ;
elseif Connection == 2
elseif Connection == 3
elseif Connection == 4
else
end
if S <= 200
Kw = 10 /(30+VHv);
elseif S <= 50
Kw = 8 /(30+VHv);
Kw = 12 /(30+VHv);
else
Kw = 10 /(30+VHv);
% As the voltage rating of the transformer increases, quantity of insulation in the window increases,
area of copper reduces.
End
Trans = input('Please Enter If it Power Or Distribution Transformer : for Power press 1 - for Distribution
press 2');
if Trans == 1
Bm = 1.35;
Pi = 2.6;
HL = 900;
Bm_Y = Bm * 0.8;
Pi_Y = 1.3;
HY = 400;
elseif Trans == 2
Bm = 1.25;
Bm_Y = Bm * 0.8;
Pi = 2.1;
Pi_Y = 1.2;
HL = 450 ;
HY = 200 ;
else
Bm_Y = Bm * 0.8;
Pi_Y =input('Please Enter The Power Loss of specific Yoke (W/Kg) :');
end
Type = input('Please Enter If it core or shell type : for core press 1 for shell press 2');
if Type == 1
K=0.55;
elseif Type == 2
K=1.3;
Else
end
Et = K * sqrt (S);
Ai=(Et/(4.44*F*Bm));
s = S / (10^3); %becouse we have two law , one with KVA & another with VA
Aw = s / (3.33*F*Bm*Kw*Ai*Density);
Ww = sqrt(Aw/3);
Hw = Aw / Ww;
Stepped = input('For squre core press 1 - For Cruciform core press 2 - For 3-Stepped core press 3 - For 4-
Stepped core press 4');
if Stepped == 1
Kc = 0.45;
d = sqrt(Ai / Kc);
a = d / sqrt(2);
elseif Stepped == 2
Kc = 0.56;
d = sqrt(Ai / Kc);
a = 0.85 * d;
elseif Stepped == 3
Kc = 0.6;
d = sqrt(Ai / Kc);
a = 0.9 * d;
elseif Stepped == 4
Kc = 0.62;
d = sqrt(Ai / Kc);
a = 0.93 * d;
else
end
hY = 1.2 * a;
D = Ww + d;
H = Hw + 2*hY;
disp (msg1)
disp (msg2)
disp (msg3)
msg4 = ['the value of D= Distance between core centers (meter) is :' num2str(D)];
disp (msg4)
disp (msg5)
disp (msg6)
disp(' ')
disp(' ')
disp('Winding Design')
disp('--------------')
TL =ceil(VphL / Et) ;
TH= ceil(TH/10)*10;
tap0 =input('Please Enter The Max. OFF-load tap changer percentage (%) :');
msg7 = ['the value of TL = No. of turns at low voltage side (turns) is :' num2str(TL)];
disp (msg7)
msg8 = ['the value of TH = No. of turns at high voltage side (turns) is :' num2str(TH)];
disp (msg8)
msg9 = ['the value of Extra Winding For tap changer (turns) is :' num2str(ceil(tap/10)*10)];
disp (msg9)
if A_L < 10
else
end
msg10 = ['the value of A_L = Cross Sectional Area of low voltage side (mm^2) is :' num2str(A_L)];
disp (msg10)
if A_H < 10
else
end
disp (msg11)
disp('--------------------------------------------------------')
% Check
msg12 = ['the value of d_tot = Total distance of LOW voltage side Former(cm) is :' num2str(d_tot)];
disp (msg12)
msg13 = ['the value of Lc_L = Total Height Of LOW voltage side Former(cm) is :' num2str(Lc_L)];
disp (msg13)
else
end
d_act = d_c + 2;
% d_act = Autual High Voltage Side Conductor diameter (with Instulation) (mm)
Lc_H = (d_act) + 2;
duct = 5;
% duct = a (cm)
dH_in = d_tot + (2*duct);
msgx = ['the value of dH_out = Outer Distance of High Voltage Side (cm) is :' num2str(dH_out)];
disp (msgx)
msg14 = ['the value of Lc_H = Total Height Of High voltage side of one Former(cm) is :' num2str(Lc_H)];
disp (msg14)
R_T = mod(TH,100);
r = ceil(R_T/10);
L_R = ( r * (d_act/10)) +2 ;
msg15 = ['the value of L_R = Total Height Of Remaining turns of High Voltage Formers(cm) is :'
num2str(L_R)];
disp (msg15)
msg16 = ['the value of L_Ch = Total Height Of Tap changer turns of High Voltage Formers(cm) is :'
num2str(L_Ch)];
disp (msg16)
msg17 = ['the value of Lh_T = Total Height Of H.V Former (cm) is :' num2str(Lh_T)];
disp (msg17)
% Check
else
end
% Check
if D >= dH_out + C
else
end
disp(' ')
disp(' ')
disp('Req,Xeq,Zeq Calculation')
disp('-----------------------')
msg18 = ['the value of Req_L = Equivlant resistance Referred to Low voltage (ohm) is :' num2str(Req_L)];
disp (msg18)
msg19 = ['the value of Req_H = Equivlant resistance Referred to High voltage (ohm) is :'
num2str(Req_H)];
disp (msg19)
duct = 0.06 ;
msg20 = ['the value of Xeq_H = Equivlant Inductance Referred to High voltage (ohm) is :'
num2str(Xeq_H)];
disp (msg20)
disp (msg21)
% Check
Z_base = ((VHv*1000)/I_H);
else
end
disp(' Ic ')
V_L = 3 * Ai * Hw ;
V_Y = 2 * 1.2 * Ai * W;
% 7800 == Density
Rc = (3 * ((VHv*1000)^2))/Poi;
Ic = (VHv*1000) / Rc ;
disp (msg22)
disp (msg23)
disp(' Im ')
Im = AT / ( 3 * 1.41421 *TH );
% Im = Magnitizting Current (Amp)
Xc = VHv *1000 / Im ;
disp (msg24)
disp (msg25)
disp('Tank Design')
disp('-----------')
if VHv <= 66
D_N = 12;
% D_N = (cm)
else
D_N =32;
end
Z = H + 0.5 ;
disp (msg26)
disp (msg27)
disp (msg28)
disp (msg29)
Theta =input('Please Enter The Max. Allowable Temp. rise (Celsius degree):');
else
end
if S <= 20
elseif S <= 50
else
end
disp('----------------------------------------------------------------------')