% Prechodne deje realizovane na transformatoru a vedeni

clear
clc

% Zakladni technicke parametry transformatoru
Un1=25
Un2=400
Snt=500
dP0p=0.1
dPfep=dP0p
dPkp=0.5
dPcup=dPkp
Ukp=11
I0p=1
frekv=50
omega=2*pi*frekv

% Vypocty parametru nahraniho schematu
Znt=Un1^2/Snt

Rk=(dPkp/100)*Znt
Rk1=Rk/2
Zk=(Ukp/100)*Znt
Xs=sqrt(Zk^2-Rk^2)
Ls=Xs/omega
Ls1=Ls/2

Gfe=(dP0p/100)/Znt
Rfe=1/Gfe
Y0=(I0p/100)/Znt
Xh=1/sqrt(Y0^2-Gfe^2)
Lh=Xh/omega

% Kontrola pres komplexni vyjadreni impedance Zk a admitance Y0
Zk2=abs(Rk+i*Xs)
Y02=abs(1/Rfe + 1/(i*Xh))

% Jmenovity proud
Int=Snt/(Un1*sqrt(3))
Uf=Un1/sqrt(3)
Um=Uf*sqrt(2)

