do you mean that ?
Code dot - [expand ] 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Options ResourceUsage= yes UseNutmegFormat= no EnableOptim= no TopDesignName= "Etude_Redresseur_avec_HSMS2820_lib:Redresseur_Doubleur_Tension_HSMS2820_the_optimisation:schematic"
define DA_LCBandpassDT1_Redresseur_Doubleur_Tension_HSMS2820 ( N__3 N__2 )
parameters Fs1= .5 GHz Fp1= 1 GHz Fp2= 2 GHz Fs2= 2.5 GHz Ap= 3 dB As= 20 dB N= 0 ResponseType= 1 MinLorC= 4 Rg= 50 Ohm Rl= 50 Ohm MaxRealizations= 25
C:C3 N__2 0 C= 3.18058 pF
L:L2 N__3 N__4 L= 15.902902 nH R= 1e- 12 Ohm Noise= yes
L:L3 N__2 0 L= 1.327341 nH R= 1e- 12 Ohm Noise= yes
C:C1 N__3 0 C= 3.18058 pF
C:C2 N__4 N__2 C= 265.468272 fF
L:L1 N__3 0 L= 1.327341 nH R= 1e- 12 Ohm Noise= yes
end DA_LCBandpassDT1_Redresseur_Doubleur_Tension_HSMS2820
R:R1 Vout 0 R= RL Ohm Noise= yes
S_Param:SP1 CalcS= yes CalcY= no CalcZ= no GroupDelayAperture= 1e- 4 FreqConversion= no FreqConversionPort= 1 StatusLevel= 2 CalcNoise= no SortNoise= 0 BandwidthForNoise= 1.0 Hz DevOpPtLevel= 0 \
SweepVar= "freq" SweepPlan= "SP1_stim" OutputPlan= "SP1_Output"
SweepPlan: SP1_stim Start= 0 GHz Stop= 8 GHz Step= 0.01 GHz
OutputPlan:SP1_Output \
Type= "Output" \
UseEquationNestLevel= yes \
EquationNestLevel= 2 \
UseSavedEquationNestLevel= yes \
SavedEquationNestLevel= 2
Pin= 30
RL= 160 opt{ 80 to 240 }
Cf= 68 opt{ 34 to 102 }
Freq= 2.45
HB:HB1 MaxOrder= 4 Freq[ 1 ] = Freq GHz Order[ 1 ] = 3 StatusLevel= 2 Restart= no OutputBudgetIV= no SweepVar= "Pin" SweepPlan= "HB1_stim" OutputPlan= "HB1_Output"
SweepPlan: HB1_stim Start= 0 Stop= 50 Step= 0.1
OutputPlan:HB1_Output \
Type= "Output" \
UseNodeNestLevel= yes \
NodeNestLevel= 2 \
UseEquationNestLevel= yes \
EquationNestLevel= 2 \
UseSavedEquationNestLevel= yes \
SavedEquationNestLevel= 2 \
UseDeviceCurrentNestLevel= yes \
DeviceCurrentNestLevel= 0 \
DeviceCurrentDeviceType= "All" \
DeviceCurrentSymSyntax= yes \
UseCurrentNestLevel= yes \
CurrentNestLevel= 999 \
UseDeviceVoltageNestLevel= no \
DeviceVoltageNestLevel= 0 \
DeviceVoltageDeviceType= "All"
Tran:HB1_tran HB_Sol= 1 SteadyState= 1 StatusLevel= 3 \
Freq[ 1 ] = Freq GHz Order[ 1 ] = 3 \
OutputPlan= "HB1_Output"
Component:tahb_HB1 Module= "ATAHB" Type= "ModelExtractor" \
Tran_Analysis= "HB1_tran" HB_Analysis= "HB1"
Port:PORT1 Vin 0 Num= 1 Z= 50 Ohm P[ 1 ] = polar( dbmtow( Pin) ,0 ) Freq[ 1 ] = Freq GHz Noise= yes Pac= polar( dbmtow( 0 ) ,0 )
#uselib "ckt" , "P_Probe"
P_Probe:P_Probe1 Vin N__17
C:C1 N__6 0 C= Cf pF
L:L1 N__11 N__6 L= 100 nH Noise= yes
Short:DC_Block1 N__2 N__14 Mode= 1
DA_LCBandpassDT1_Redresseur_Doubleur_Tension_HSMS2820:DA_LCBandpassDT1 N__17 N__2 Fs1= 1 GHz Fp1= 2 GHz Fp2= 3 GHz Fs2= 4 GHz Ap= 3 dB As= 20 dB N= 3 ResponseType= 1 MinLorC= 4 Rg= 50 Ohm Rl= 50 Ohm MaxRealizations= 25
#uselib "ckt" , "P_Probe"
P_Probe:P_Probe2 N__6 Vout
#uselib "HfDiodeLibrary" , "di_hp_HSMS2820_20000301"
di_hp_HSMS2820_20000301:D2 0 N__16 N__14
#uselib "HfDiodeLibrary" , "di_hp_HSMS2820_20000301"
di_hp_HSMS2820_20000301:D3 N__14 N__9 N__11
OptimGoal:OptimGoal1 Expr= "Rendement" SimInstanceName= "HB1" Weight = 1.0 \
IndepVar[ 1 ] = "Pin" \
SpecLimitLine[ 1 ] = "OptimGoal1_limit1" SpecLimitLine[ 2 ] = "OptimGoal1_limit2"
SpecLimitLine:"OptimGoal1_limit1" Type= "GreaterThan" Min = 50 Weight = 1.0 \
IndepVar[ 1 ] = "Pin" IndepMin[ 1 ] = 0 IndepMax[ 1 ] = 50
SpecLimitLine:"OptimGoal1_limit2" Type= "LessThan" Max = 100 Weight = 1.0 \
IndepVar[ 1 ] = "Pin" IndepMin[ 1 ] = 0 IndepMax[ 1 ] = 50
Optim:Optim1 OptimType= "hpVMO" ErrorForm= "L2" MaxIters= 50 P= 2 DesiredError= 0.0 StatusLevel= 4 FinalAnalysis= "None" NormalizeGoals= yes SetBestValues= yes SaveSolns= yes SaveGoals= yes SaveOptimVars= no UpdateDataset= yes SaveNominal= no SaveAllIterations= no UseAllOptVars= yes UseAllGoals= yes SaveCurrentEF= no InitialTemp= 0.1 NumShootsPerIter= 20 EnableCockpit= yes SaveAllTrials= no
aele Rendement= ( P_Probe2.p[ 0 ] / P_Probe1.p[ 1 ] ) * 100 ;
Last edited by a moderator: May 12, 2020