IBM Release 1.93 manual Predefined Mathematical Functions, Arithmetic Operators

Page 47

Figure 2.17: Detail of the CAD output for one iteration of the glass ridge waveguide to free space coupler.

3.8. Predefined Mathematical Functions

3.8.1. Arithmetic Operators

The user-facing part of POEMS is implemented in REXX, so the arithmetic and logical operators and many of the simpler mathematical functions are native REXX constructs, and have REXX syntax and semantics.

+(addition)

-(subtraction)

*(multiplication)

/(division (real numbers))

//remainder (remainder has the same sign as the numerator)

% integer division

a.Differences from C/C++

C programmers should beware of a few things: the ’%’ operator, which in C and C++ is the modulus (remainder) operator, is used for ordinary integer division in REXX (and so in POEMS). Use the double-slash (’//’) operator for modulus.

43

Image 47
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 Hosts FreqLambda FunctionMacdef Which means that the host’s predefined hostname is not usedPrint MacroSimulator RandomseedSET Boundary World GroupTitle VerboseDefine Material GroupBasicstep Xrange YrangeParameters epsReal epsImag muReal muImag FAN Object GroupBlock Tiledplane GratingHollowbox Cylinder Curve3DCURVE Source Group Output Group Command GroupWebpage Postprocess GroupField CADIntegral 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 FunctionsAcosh Logical OperatorsABS AcosElintk ATAN2Ceil COSMIN Integral20. LN MAXSign RandomROOT1D RoundFlattop 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 DIPOLE2IEXQ Postprocessor orders DIPOLE2I.ORDERSALL DIPOLE2IEXIDIPOLE2IEZQ DIPOLE2IEYIDIPOLE2IEYQ DIPOLE2IEZIPOSTPROC.1.PARMSTRING MiddlefluxPOSTPROC.1.NAME Array AmplexFF2 DIPOLE2IPHASEEXArray POSTPROC.2.PARMSTRINGDIPOLE2IPZ DIPOLE2IPXPOSTPROC.6.NAME Array PoyntingzSlice Indexn POSTPROC.9.PARMSTRINGPOSTPROC.10.PARMSTRING POSTPROC.11.NAMEPOSTPROC.14.NAME Slice PoyntingzPOSTPROC.13.COMPARISONDOMAIN DIPOLE2IPZXY0.BMPSlice Amplex POSTPROC.16.COMPARISONDOMAINDIPOLE2IPXZX0.BMP POSTPROC.17.NAMEDIPOLE2IDISSZX0.BMP DIPOLE2IPHASEEXXY0.BMPDIPOLE2IPHASEEXZX0.BMP POSTPROC.20.COMPARISONDOMAINDIPOLE2IEXQZX0.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