Presentation on theme: "Automatic design using FD TD simulator in an optimization loop"— Presentation transcript:
1Automatic design using FD TD simulator in an optimization loop Presented by: Wojciech K.Gwarekwith contributions from : Malgorzata Celuch-Marcysiak, Przemyslaw Miazga, Maciej Sypniewski and Andrzej Wieckowskithe authors are with:Institute of RadioelectronicsWarsaw University of TechnologyWarszawa, Nowowiejska 15/19 Poland
2Abstract :We discuss the elements of a general optimization scheme consisting of : 1. A parametric shape editor2. An FD-TD simulator3. An optimizer4. A goal function calculatorThe aim is to discuss the possibilities provided to engineers by general-purpose tools available commercially. In particular we examine the possibilities provided by QWED’s QuickWave-3D FD-TD simulator and widely used Matlab ® toolbox. We discuss particular features of the FD-TD method applied in electromagnetic simulations for automatic design purposes, the sources of errors of analysis and ways to make it more efficient.We show the results of automatic design on 5 examples:a coaxial connector, a microstrip to waveguide transition, a waveguide diode mount, a septum polarizer and a waveguide filter. In each case we discuss the sources of errors, the ways to speed up the optimization process and to enhance the chances of convergence to a satisfactory solution. We also provide hints on practical applications.
3General scheme for automatic design using FD TD simulator in an optimization loop
4General requirements: 1. Simulator which:- is fast enough to produce the single simulation results in seconds or minutes, not in hours- allows smooth change of the results as a function of the change in dimensions2. Parametric shape editor which is:- universal, allowing a large variety of shapes and media- easy to use3. Comprehensive and programmable goal function calculator4. Optimizer which- is relatively insensitive to rough goal functionand preferably- is able to skip local minimum to look for the global one.
5Why should we use FD-TD method When applied to linear circuits with pulse excitation it permits to extract wide-band circuit parameters after just one simulationIt is very fast especially when applied to a wide scope of deterministic problems concerning S-matrix or radiation pattern extraction. It produces acceptable computing times even for relatively large problems.It has clear physical interpretations giving good insight into the operation of the circuitIt is easy to apply with a variety of media forming the analyzed structureThere are practically no problems with parasitic solutions and the algorithms are not sensitive to computer round-off errorsDisadvantages to be fought:Fast, explicit integration schemes used in time domain enforce additional restrictions on meshing flexibilityHigh-Q circuits (like narrow band filters) need special consideration
6Hints how to use FD-TD electromagnetic simulation in automatic design and/or optimization processes whenever possible reduce the number of considered dimensions or use symmetry conditionsif possible perform segmentation and assign specific goals to optimization of the specific segmentscheck carefully the number of needed FD-TD iterations; avoid exciting off-band resonancescheck the accuracy of the FD-TD approximation and continuity of the goal function with respect to change of variablestry to avoid the situation when the change of a dimension drastically modifies meshing in sensitive areastry to economize the computing time by taking into account systematic errorsprior to final setting of the set of variables and scaling factors run sensitivity analysis and/or grid search to see the type of dependence on major variables
7Whenever possible reduce the number of considered dimensions Whenever possible reduce the number of considered dimensions. Problems presented below are all 2-D ( or more precisely vector 2D)
8Example 1: Optimisation of N to LCM20 coaxial connector for 0-8GHz band Original commercial design: Optimised design:
9Comparison of the simulated S11 for the original and the optimized design: Reference:P.Miazga, W.Gwarek, IEEE Trans MTT, May 1997, pp
10Example 2 : Object: Microstrip to waveguide transition Design goal: Lowest possible S11 in the band GHzMicrostrip-to-waveguide transition considered in Example2. Picture shows half of the structure assuming magnetic symmetry plane in the middle. Upper and lower waveguide walls are not shown for clarity of the picture.
11Example 2 (cont): The optimized variables in 2 options: A: One variable optimization with respect to lst=lst1=lst2=lst3 B: Six variable optimization with respect to lst1,lst2,lst3,hs2,hs3,sisSide and upper view of the microstrip to waveguide transition with parameters as they are used in optimization
12Example of a parser type parametrized input of a 3-D shape Editor for optimization purposes Microstrip-to-waveguide transition described in the UDO language by QWED. Header appearing in the Editor (below) and parts of the UDO code (right)aacomment="Microstrip to waveguide transition";bitmap="nobitmap.bmp";PAR("Name ",oname,"mstowg");PAR("wg width (wga)",wga,23);PAR("wg height (wgb)",wgb,11);PAR("ms width (msw)",msw,3.75);PAR("ms height (msh)",msh,1.27);PAR("ms substr. width",mssw,30);PAR("ms substrate",med,substr);PAR("ref. dist. (rd)",rd,7);PAR("length of step1 (lst1)",lst1,6);PAR("length of step2 (lst2)",lst2,6);PAR("length of step3 (lst3)",lst3,6);PAR("height of step2 (hs2)",hs2,7);PAR("height of step3 (hs3)",hs3,3);PAR("substrate insert (sis)",sis,0);ENDHEADER;msl= rd*3;wgl=lst1+lst2+lst3+rd*2;wgah=wga*0.5;mswh=msw*0.5;msswh=mssw*0.5;ltot=msl+wgl;hs1=wgb-msh;OPENOBJECT(oname);sis1=0;if sis<0 do sis1=-sis;endif;ELEMENT(z,msh,0,med,substr,IN);NEWLINE(x,y,x+msl-sis1,y);ADDY(msswh);ADDX(-msl+sis1);CLOSELINE;ENDELEM;if sis>0 doNEWLINE(x+msl,y,x+msl+sis,y);ADDY(wgah);ADDX(-sis);endif;ELEMENT(z+msh,0,0,metal,strip,IN);NEWLINE(x,y,x+msl+lst1,y);ADDY(mswh);ADDX(-msl-lst1);....PORT(z,wgb,INPTEMPLATE,UP,inpms,rinpms);NEWLINE(x,y,x,y+msswh);NEWLINE(x,y+0.5*mswh,x,y);PORTEXC(msh,msh);GETIOPAR("mstowgi.iop");ENDPORT;
13Choice of optimizer :Option A: an optimizer specially prepared to work with a particular simulator (as exemplified belowby the one from QWED)Advantage: simplicity in use with prepared dialoguesDisadvantage: limited flexibility in choice of the optimization method and the goal function
14Choice of optimizer :Option B: a general purpose optimizer (as exemplified below by the one from Matlab® Toolbox). The text on this and next slide is a complete code for running a minimax optimization on 6 variables of the microstrip to waveguide transition using an FD-TD Editor and Simulator activated from a DOS command line% Microstrip to waveguide trans.% minimax methodx0=[ ];global spar;global start_ch;global best_ch;global fbest;global first;global iterac;fbest=1;first=1;iterac=1;OPTIONS(1)=0; %display intermediate resultsOPTIONS(2)=0.0001; %termination tolerance xOPTIONS(3)=0.0001; %termination tolerance FOPTIONS(14)=2000; %max function callOPTIONS(16)=0.003; %min change for gradOPTIONS(17)=0.1; %max change for gradOPTIONS(18)=1; %step lengthgrid onminimax('ms2wgb',x0,OPTIONS);
15continuation of Matlab® script for 6 variables optimization of the microstrip to waveguide transitionfunction [w,g] = ms2wgb(x)global spar;global start_ch;global best_ch;global fbest;global first;global iterac;save 'c:\3dex\matopt\ms2wgb\paramsb' x -ASCII;dos('"c:\Program Files\Qwed\Qw_3d\Qw_edi\bin\zed.exe" -p"c:\3dex\matopt\ms2wgb\ms2wgb.pro" -m -o1000 -e -q -i');dos('"c:\Program Files\Qwed\Qw_3d\Qw_sim\bin\ker1.exe" -t "c:\3dex\matopt\ms2wgb\ms2wgb.ta3"');spar=load('c:\3dex\matopt\ms2wgb\ms2wgb.spl');w=spar(41:81,2);g=zeros(1,41);if(first)first=0;start_ch=spar(:,2);endif(max(w)<fbest)fbest=max(w); best_ch=spar(:,2); xfprintf('iter=%d min=%6.2f dB\n',iterac,20*log10(fbest));plot(spar(:,1)./10^9,20*log10(spar(:,2)),'k-',spar(:,1)./10^9,20* log10(start_ch),'b-',spar(:,1)./10^9,20*log10(best_ch),'g-');grid oniterac=iterac+1;
16Example 2 (cont): The results of optimization of S11[dB] versus frequency : thin blue line - initial solutionmedium green line - results of one variable optimizationthick magenta line - results of six variables optimization
17Example 3 : Matching of a driving point impedande of a waveguide diode mount Half of the structure is taken due to magnetic symmetry. We try to match the impedance to 100 (corresponding to 50 for the entire structure)We consider two casesA) a post made entirely of metal and short-circuited to the waveguide baseB) lower part of the post made of teflon
18The case A (purely metal post) is resonant and difficult to match wide band. Figure below presents the results of calculation after 1000 iterations for two different distances from the guide short.In the case of a resonant structure we should assure that- the number of FD-TD iterations is big enough to limit the ripples caused by truncated Fourier transform- the step for gradient calculation of the optimizer is big enough to get out of the local minima formed by the ripplesOtherwise we are likely to finish optimization at a local minimum as in the presented case in which we tried to tune the matching frequency from 11.6 to 10.44
19Prony PostprocessingOne of the solutions to smoothen the ripples is by using a special postprocessing like for example the Prony method.Picture below presents the result of simulation of S11 versus frequency with 1000 FD-TD iterations of the structure from the previous slides. The results of direct analysis (blue) are compared to the results obtained using QProny algorithm authored by M. Mrozowski . Application of such a procedure is very valuable in the analysis of resonators, filters and multiplexers.
20Results of optimization of the diode mount for the band 10.5-11.5 GHz Initial (left) and optimized (right) dimensions of the diode mount and comparison of their characteristics of S11 versus frequency . Optimization was performed on 2 variables : distance of the post from the waveguide short and height of the teflon part of the post
21Optimization preprocessing - A grid search When the character of the goal function is difficult to predict or when we suspect to have multiple minima, it may be is advisable to run preliminary calculations on a predefined grid of a pair (or several pairs) of sensitive variables and plot the results on a 3-D or 2-D graph as exemplified below for the Example 3. The waveguide short distance was assumed to be (3,5,7,9,11) and the height of the dielectric part of the post to be (2,4,6,8).White spot on the right picture presents the point where the minimum has been found in the optimization process.
22Example 4: A septum polarizer This and the following slide show a particular design by Saab Ericsson Space.Next slides show a process of automatic design of such a device using an electromagnetic simulator in an optimization loop.
23Comparison of measurements by Saab Ericsson Space and simulations by QWED of the phase difference between the output signal of horizontal and vertical polarizations (below) and pictures illustrating propagation of two polarizations at center frequency (right)
24Segmentation of the polarizer permits to extract the region of the septum which decides on the most important parameter - the axial ratio of circular polarization. Optimization is performed on seven variables as indicated below.Imperfect matching can be corrected outside the septum region in the segment of rectangular waveguide.
25spar=load('c:\3dex\matopt\septm3\septm3.spl'); angdif=abs(rem(spar(:,9)- spar(:,12)+360,360.0)-95)*1.745;modrat=abs(spar(:,8)./spar(:,11)-1)*100;aux=zeros(1,61);aux1=zeros(1,61);aux=atan(angdif(71:131,1)./modrat(71:131,1));aux1=abs(sin(aux));aux=abs(cos(aux));w=angdif(71:131,1).*aux1(1:61,1)+modrat(71:131,1).*aux(1:61,1);Matlab® script for axial ratio as a goal functionphase differencebetween vertical and horizontal polarizations of the optimized polarizeramplitude ratioof vertical and horizontal polarisations of the optimized polarizer
26S11 [dB] versus frequency of the septum part (right) obtained from its optimization for the best axial ratio.If the matching of the septum part is not considered satisfactory it can be compensated in the guide bent (below left)
27General scheme of segmentation Attention: Segmentation may be in general multimodal with higher modes being evanescent. In such a case we face problems ofa) definition of S-matrix with complex reference impedanceb) nonorthogonality of the incident and reflected power wavesThose problems have been thoroughly treated in the recommended paper:R.Marks, B.Williams - A General Waveguide Circuit Theory, Journal of Research of NIST, Vol97, No.5 Sept.-Oct. 1992, pp
28Change of dimensions may result in modification of meshing which causes some discontinuity of the goal function even when conformal FD-TD methods are applied. We should take care that with changed dimensions the meshing of sensitive areas does not change its character. Such sensitive areas are metal corners like one of the corners of a septum polarizer presented below. It is better to use mesh snapping planes to reproduce the corner always in a similar way (a and b) than let the software make its arbitrary decisions about its approximation (c) . Change between a) and b) is not so drastic as the change between a and c) a) b) c)
29Results of calculation of the phase difference between horizontal and vertical polarization produced by the septum polarizer.1. thin blue curve - initial dimensions of the polarizer, FD-TD cell size 0.52. medium green curve - initial dimensions of the polarizer, FD-TD cell size 0.153. thick magenta curve - optimized polarizer, FD-TD cell size 0.54. v.thick red curve - optimized polarizer, FD-TD cell size 0.15Optimization was conducted with cell size 0.5 and goal phase difference 950
30Illustration of the influence of the spectrum of the exciting pulse on the convergence of the FD-TD algorithm.S11 versus frequency of the septum polarizer excited by a wide-band ( type) pulse observed after 2000, 3000 and FD-TD iterationsS11 versus frequency of the septum polarizer excited by a narrow -band pulseobserved after 1100, 1500 and 3000 FD-TD iterations
31Example 5 : A 3-resonator waveguide filter The images present the process of automatic design of the filter with four variables by a minimax method.S11 (up) and S21 (left), both in dB of the considered filter.Blue lines show the characteristics for starting conditions and the red lines the characteristics for final design.
32Conclusions:The level of state-of-art hardware and software has reached the stage, at which automatic design of a variety of types microwave circuits using a general purpose FD-TD simulator and a general purpose optimizer is a practical alternative for engineers determined to get better design much faster than by the classical approaches. However, the success of such an operation is in many cases not a priori guaranteed and requires a very conscious use of both tools and careful choice of their parameters.This underlines importance of the exchange of experience of different users and software vendors like that provided by contributors to this workshop.