IBM Release 1.93 manual Macro, Print

Page 17

given name and field component. The parameters xsize, ysize, zsize are not macro parameters, but will be supplied from the current context when the macro is expanded. Note the string concatenation used to generate the file names.

MACDEF FieldAll(kwd, fname)), /* Make I and Q field files

 

/* with appropriate file names and symbolic limits

 

FIELD variable=kwd xlo=0 xhi=xmax ylo=0 yhi=ymax ,

 

zlo=0 zhi=zsize phase=0.0 state=steady file=fname’i’; ,

 

FIELD variable=kwd xlo=0 xhi=xsize ylo=0 yhi=ysize ,

 

zlo=0 zhi=zsize phase=2*atan(1) state=steady /* etc

 

file=fname’q’;

 

 

 

 

MACRO

Expand a user macro. Unlike MACDEF, which must be in the

 

GLOBAL group, MACRO can be used anywhere. Macro expansion

 

is typographical, like C macros. String concatenation is performed,

 

as shown in the previous example.

 

Syntax: MACRO name(arg1, ..., argN);

 

Example: Using the example from the MACDEF statement,

 

MACRO FieldAll(Ex, Ant01Ex);

 

is equivalent to

 

FIELD variable=Ex xlo=0 xhi=xsize ylo=0 yhi=ysize ,

 

zlo=0 zhi=zsize phase=0.0 state=steady file=Ant01Exi;,

 

FIELD variable=Ex xlo=0 xhi=xsize ylo=0 yhi=ysize ,

 

zlo=0 zhi=zsize phase=2*atan(1) state=steady ,

 

file=Ant01Exq;

 

 

 

 

POSTPROCESSOR Tell POEMS which postprocessor executable to use (currently the only choice available is empost).

Syntax: POSTPROCESSOR <postprocessor command line>

PRINT

Print output, similar to the REXX SAY statement. Any number of

 

arguments may be supplied, and strings and expressions may occur

 

in any order. Strings inside double quotes will be printed as is,

 

whereas expressions will be evaluated first. PRINT statements are

 

executed each time the input file is parsed, i.e. at the beginning of

 

the run and before each tempest iteration.

13

Image 17
Contents IBM T. J. Watson Research Center Yorktown Heights, NY Page IBM T. J. Watson Research Center Yorktown Heights, NY HOW Poems Works Using PoemsMotivation Chapter IntroductionPhilosophy Optimization StructurePage Poems system organization Script Operation Program OrganizationFront-End Script poems.cmd Postprocessor Empost Fdtd Engine FIDO/TEMPESTCluster Control Visualization System VIS5DParallel Processing Global Group Command ReferencePoems Command-Line Options Lambda FreqFunction HostsMacdef Which means that the host’s predefined hostname is not usedPrint MacroSimulator RandomseedSET Title World GroupVerbose BoundaryBasicstep Material GroupXrange Yrange DefineParameters epsReal epsImag muReal muImag FAN Object GroupBlock Tiledplane GratingHollowbox Cylinder Curve3DCURVE Source Group Output Group Command GroupField Postprocess GroupCAD WebpageIntegral FarfieldFlux Modematch ListMOVIE3D MovieSlice DissipationGuess Optimize GroupVariables Penalty Merit LimitStore Range Schedule GroupParameters Symmetry Computational DomainObjects Materials Perfectly-Matched LayersPlane Waves Page Beam Sources Merit Functions OptimizationPhase uniformity across a plane 10 Optimized V antenna refractive Worked Example Optimizing a V AntennaPage Predefined Constants Worked Example Doped Silica Waveguide ModeWorked Example Glass Ridge Waveguide to Free Space Coupler Confine Reserved NamesArithmetic Operators Predefined Mathematical FunctionsABS Logical OperatorsAcos AcoshCeil ATAN2COS Elintk20. LN IntegralMAX MINROOT1D RandomRound SignFlattop Analytical Pupil FunctionsMaterial Parameter Functions Time step Tempest and General Fdtd InformationStartup and Steady State Page Appendix A. V-Antenna Optimization Run Poems Input DIPOLE2I.PAR END Material END Object END World Subdomain ALLEND Output END CommandEND Source END Optimize END Postprocess Amplex PhaseexPage Page Page END Tempest Input File DIPOLE2I.PAR.IN Written by Phil Hobbs Pages of pointsource statements omitted ALL Postprocessor orders DIPOLE2I.ORDERSDIPOLE2IEXI DIPOLE2IEXQDIPOLE2IEYQ DIPOLE2IEYIDIPOLE2IEZI DIPOLE2IEZQPOSTPROC.1.NAME MiddlefluxArray Amplex POSTPROC.1.PARMSTRINGArray DIPOLE2IPHASEEXPOSTPROC.2.PARMSTRING FF2POSTPROC.6.NAME DIPOLE2IPXArray Poyntingz DIPOLE2IPZPOSTPROC.10.PARMSTRING POSTPROC.9.PARMSTRINGPOSTPROC.11.NAME Slice IndexnPOSTPROC.13.COMPARISONDOMAIN Slice PoyntingzDIPOLE2IPZXY0.BMP POSTPROC.14.NAMEDIPOLE2IPXZX0.BMP POSTPROC.16.COMPARISONDOMAINPOSTPROC.17.NAME Slice AmplexDIPOLE2IPHASEEXZX0.BMP DIPOLE2IPHASEEXXY0.BMPPOSTPROC.20.COMPARISONDOMAIN DIPOLE2IDISSZX0.BMPDIPOLE2IEXQZX0.BMP POSTPROC.24.COMPARISONDOMAINRun Results DIPOLE2I.SIMPLEX Page Page Page Page Page Tempest patches Fdtd and TempestTempest limitations Advice common to all or most Fdtd programsSample X11 Configuration Window System ConfigurationWish list Running Vis5DRelease Notes Beta Release Limitations Page Page Matlab IndexEmdenormal Emunderflow Maxordersources 81 Maxpointsources