The computation of wakepotentials occurs in two steps.
# /usr/local/gd1/examples-from-the-manual/wake-example-1.gdf define(LargeNumber, 1000) # # The following picture shows a cut through the structure to be # modelled and the variables associated to the lengths. # # # a a a # |<------------->|<-------------->|<----------->| # # - ------------------ # ^ | | # b | | | # | | | # ----------------- --------------- - # | beam | | # |<-------------------------------------------->| | d # | | | # ------------------------------------------------ - # # x^ # |-> z # define( a, 1e-2 ) define( b, 5e-3 ) define( c, 5e-3 ) define( d, 1e-2 ) -general outfile= /tmp/UserName/wake-example scratch= /tmp/UserName/wake-example-scratch text()= A strange geometry, text()= it serves only as an example text()= for computing wake-potentials. -mesh define(STPSZE, 3*a/60 ) spacing= STPSZE perfectmesh= no pxlow= 0, pxhigh= c+b pylow= -STPSZE, pyhigh= d pzlow= 0, pzhigh= 3*a cxlow= ele, cxhigh= ele cylow= ele, cyhigh= ele czlow= ele, czhigh= ele # # We enforce a meshline at the position of the linecharge # by enforcing two meshplanes # xfixed(1, c/2, 0) yfixed(1, d/2, 0) -brick # # fill the universe with metal # material= 1 volume= (-LargeNumber, LargeNumber,\ -LargeNumber, LargeNumber,\ -LargeNumber, LargeNumber) doit # # carve out the waveguide # mat 0 xlow= 0, xhigh= c ylow= 0, yhigh= LargeNumber zlow= -LargeNumber, zhigh= LargeNumber doit # # Carve out the resonator box # mat 0 xlow= 0, xhigh= c+b ylow= 0, yhigh= LargeNumber zlow= a, zhigh= 2*a doit -volumeplot eyepos= ( 1.0, 2.30, 0.5 ) showlines= yes scale= 2.5 doit -fdtd -ports name= zlow, plane= zlow, modes= 0, doit name= zhigh, plane= zhigh, modes= 0, doit -lcharge charge= 1 # 1 As sigma= 5e-3 xposition= c/2 yposition= d/2 -fdtd doit
gd1 < wake-example-1.gdf | tee out
The next step is to tell the postprocessor that we wish to see the wakepotentials: The commands for the postprocessor gd1.pp are:
-general, infile= @last -wakes doitWe get three plots for the three components of the wakepotential at the (x,y) coordinate where the line-charge was traveling.