OpenMaXwell Reference Manual

Home  General  Menues  Dialogs  Movie Directives  Formula Interpreter  File Structures

Available directives

ADApt ADD BLOw CLEar CONvert COPy DELete DRAw END EXChange EXIt GENerate GET GOTo IF> IF< IF= INCrease ITEterate LABel LOOp MMP MOVe MULtiply PROcess REAd REFlect REName ROTate RUN SET SORt SUBtract WRIte

GENerate one of the following sets of objects

2DArc    2DLine    2DPlanewave    3DArc    3DExpansion    3DLine    AXIsymmetric    CONnection    EXPansion    HEXagonal-structure    PFD    RECtangular-structure    SET

 

2DArc

Arguments: (iCp ins iDm iCl iCn iOb nE fmin fmax x y)

Meaning: Distribute expansions along an arc by rotating all "prototype expansions" with color iCp around the point (x,y) in the xy plane with angles from fmin to fmax (in degrees). For each prototype expansion, nE new expansions will be created and inserted after expansion number ins. The new expansions obtain the color iCl, domain number iDm, connection flag iCn, object number iOb.

 

2DLine

Arguments: (iCp ins iDm iCl iCn iOb nE x0 y0 x y)

Meaning: Distribute expansions along a line by moving all "prototype expansions" with color iCp along the line from point (x0,y0) to point (x,y) in the xy plane. For each prototype expansion, nE new expansions will be created and inserted after expansion number ins. The new expansions obtain the color iCl, domain number iDm, connection flag iCn, object number iOb.

 

2DPlanewave

Arguments: (ins iDm iCl iCn iOb nE fmin fmax iHE)

Meaning: Generate nE new plane wave expansions and insert them after expansion number ins. The plane waves propagate in directions with angles from fmin to fmax (in degrees, with respect to the x axis). The new expansions obtain the color iCl, domain number iDm, connection flag iCn, object number iOb. iHE is a flag indicating whether Ez (iHE=0), Hz (iHE=1) or both (iHE=2) types of waves shall be created.

 

3DArc

Arguments: (iCp ins iDm iCl iCn iOb nE fmin fmax)

Meaning: Distribute expansions along an arc by rotating all "prototype expansions" with color iCp around the y axis (global coordinates) with angles from fmin to fmax (in degrees). For each prototype expansion, nE new expansions will be created and inserted after expansion number ins. The new expansions obtain the color iCl, domain number iDm, connection flag iCn, object number iOb.

 

3DExpansions

Arguments: n (fact j minexp maxexp maxm col con obj iCol iDelete nMP)

Meaning: Generate 3D multipole expansions for the 3D object number n. This is the same as pressing the Generate !! button in the Generate expansions for 3D objects dialog after

having selected n in the Object box and fact in the Degree fact. Box. The additional parameters specify the following: j: insert new expansions after existing expansion j. Use only expansions with numbers from minexp to maxexp for generating the new expansions. Generate maxm  multipoles for each valid 2D multipole. Use the filters col con obj for color, connection number, and object number. Set the color iCol for the new expansions (use the color of the object when this number is missing). Usually, the previously generated 3D expansions are deleted before the new expansions are created. This delete operation may be suppressed, when a zero or negative number is specified for iDelete. nMP specifies the negative of the maximum number of multipoles placed along a line ring or spiral multipole expansion. If nMP=0 is given, OpenMaXwell will evaluate an "appropriate number" from geometry data. For nMP>0, the "appropriate number" is multiplied by nMP. Note that large values of nMP lead to long computation time without significant improvement of the accuracy.

The following default values are inserted for missing arguments fact j minexp maxexp maxm col con obj iCol iDelete nMP: 1.0 -1 0 -1 -32000 0 0 0 0 0 0.

 

3DLine

Arguments: (iCp ins iDm iCl iCn iOb nE x0 y0 z0 x y z)

Meaning: Distribute expansions along a line by moving all "prototype expansions" with color iCp along the line from point (x0,y0,z0) to point (x,y,z). For each prototype expansion, nE new expansions will be created and inserted after expansion number ins. The new expansions obtain the color iCl, domain number iDm, connection flag iCn, object number iOb.

 

AXIsymmetric

Arguments: n (j minexp maxexp iCol iDelete nMP mDeg Resol Over)

Meaning: Generate 3D objects and 3d ring multipole expansions for the boundary number n.

The new 3D object overwrites the object number n if this is existing. Otherwise, a new object is appended to the list of objects. The object is of torus type with Minimum angle 0. The Sector angle is appropriate for the symmetries with respect to the XY and YZ planes defined in the Project dialog. If no symmetries with respect to these planes are present, the Sector angle is 360. If a symmetry with respect to the XY plane is present (either 1 or 2), the Sector angle is reduced to 180. If also a symmetry with respect to the YZ plane is present, it is reduced to 90. Note that symmetry with respect to YZ without symmetry with respect to XY is not supported. In this case, you should rotate the excitation 90 degrees around the Y axis in order to obtain symmetry with respect to XY. The Mat.Pt.aspect ratio of the new object is computed from the maximum degree mDeg of the ring multipoles and Overdetermination value. Usually, Over should be around 1...2. Higher Over values lead to high numbers of 3D matching points in phi direction. The resolution (for 3D graphic representation) of the new object is set to Resol if Resol>0. If Resol<0, it is set to the length of the boundary n divided by -Resol. Resol values in the interval -1...0 make no sense.

The new expansions (ring multipoles) are inserted after expansion j. Only the 2D expansions with numbers from minexp to maxexp are used for generating the new expansions. The new expansions obtain the color iCol. Usually, the previously generated 3D expansions are deleted before the new expansions are created. This delete operation may be suppressed, when a zero or negative number is specified for iDelete. If nMP=0 is given, OpenMaXwell will evaluate an "appropriate number" from geometry data. For nMP>0, the "appropriate number" is multiplied by nMP. Note that large values of nMP lead to long computation time without significant improvement of the accuracy. All expansions obtain the Maximum degree mDeg. The Minimum degree is set to 0 or 1; the Step of degree and the Degree factor are set to 1 or 2,  depending on the symmetries of the Project. The Ring radius is set equal to half of the distance of the ringmultipole from the object.

The following default values are inserted for missing arguments j minexp maxexp maxm iCol iDelete nMP Over: -1 1 -1 3 0 1 1 1 1.

 

CONnection

Arguments: (ins iCf iDm iCl iCn iOb mO bT F)

Meaning: Insert a new connection in the list of expansions after expansion ins. The connection obtains the flag iCf, domain number iDm, color number iCl, is contained in connection number iCn, belongs to object number iOb, has maximum order mO and basis function type bT. The Fourier factor is set equal to F. Note that standard location and orientation is set for the connection and standard values are set for the remaining properties (symmetry numbers, etc.) of the connection. Use the command SET EXPansion to modify these properties. Note that the connection flag iCf must be higher than iCn.

 

EXPansions

Arguments: (nB M/d nE Dom Col Con Dmin/D Dmax/D Rfact Splines Finside Foutside Dfl Dfr Dll Dlr Dl Dr Ainside Aoutside WFA WFE)

Meaning: Generate expansions along the boundary nB with the routines described in the Generate expansions along 2D boundary dialog. If nB<0 and –nB< number of boundaries, multipoles along the boundaries 1, 2, … -nB will be set. The parameters nB M/d nE Dom Col Con Dmin/D Dmax/D Rfact Splines Finside Foutside Dfl Dfr Dll Dlr Dl Dr Ainside Aoutside WFA WFE correspond to the values in the boxes as indicated below. Missing or unreadable parameters are replaced by the current values in the Generate expansions along 2D boundary dialog, whereas correctly specified parameters will replace the corresponding parameters in this dialog.

Notes:

The following list associates the arguments with the corresponding boxes in the Generate expansions along 2D boundary dialog.

 

HEXagonal

Arguments: iCol0 iCol1 nx ny dx dy angle

Meaning: Generate a hexagonal lattice of 2D objects (boundaries and expansions) by copying all 2D boundaries and expansions with color number iCol0 to new positions. The new objects obtain the color number iCol1. The new objects will be on a lattice with nx times ny lines, displacement in x direction is dx, displacement in y direction is dy, the angle between the x and y direction is given in degrees, i.e., the y direction is arbitrary. For a regular hexagonal grid, set angle = 60. For angle = 90 you obtain a rectangular lattice.

 

PFD

Arguments: WHAt (...)

Meaning: Generate a component of the PFD (Predefined Finite Difference) solver.

np dlx drx dly dry dlz drz

np pdlx drx dly dry dlz drz

 

RECtangular

Arguments: iCol0 iCol1 nx ny dx dy angle

Meaning: Generate a rectangular lattice of 2D objects (boundaries and expansions) by copying all 2D boundaries and expansions with color number iCol0 to new positions. The new objects obtain the color number iCol1. The new objects will be on a lattice with nx times ny lines, displacement in x direction is dx, displacement in y direction (perpendicular to the x direction is dy.

 

SET

Arguments: PARameter val

Meaning: Set one of  the parameters in the Generate expansions along 2D boundary dialog. PARameter is a string with at least 3 characters that defines which of the parameters shall obtain the value val. The list below indicates the box in the Generate expansions along 2D boundary dialog that will be affected for different PARameter strings:

 

Responsible for this web page:  Ch. Hafner, Computational Optics Group, IEF, ETH, 8092 Zurich, Switzerland

Last update 16.04.2016