summaryrefslogtreecommitdiff
path: root/1997/CH6/EX6.2/example2.sce
blob: b69809f57a0fbdceea2e4f7aac855732e6a8760c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Chapter-6 example 2
//=============================================================================
clc;
clear;
//input data
Vdc   = 2.5*10^3;//Beam voltage
Idc   = 25*10^-3;//beam current in A;
Zo    = 10;//charecteristic impedance 
F     = 9.5*10^9;//TWT operating frequency in hz
N     = 40;//circuit length

//Calculations
C     = ((Idc*Zo)/(4*Vdc))^(1/3);//gain parameter
Ap     = -9.54+(47.3*N*C);//Output power gain of twt
w     = 2*%pi*F;
vdc   = 0.593*10^6*sqrt(Vdc);
Be    = w/vdc;
//Output
mprintf('Gain parameter is %3.3f\n Output Power gain is %3.3f dB\n phase constant of electron beam is %e rad/m',C,Ap,Be);

//=============end of the program==============================================