Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Lua. Описание команд..doc
Скачиваний:
1
Добавлен:
01.07.2025
Размер:
105 Кб
Скачать
☆

3.4.2 Selection Commands

• mo seteditmode(mode) Sets the mode of the postprocessor to point, contour, or area mode.

Valid entries for mode are "point", "contour", and "area".

• mo selectblock(x,y) Select the block that contains point (x,y).

• mo groupselectblock(n) Selects all of the blocks that are labeled by block labels that are

members of group n. If no number is specified (i.e. mo groupselectblock() ), all blocks

are selected.

• mo addcontour(x,y) Adds a contour point at (x,y). If this is the first point then it starts a

contour, if there are existing points the contour runs from the previous point to this point.

The mo addcontour command has the same functionality as a right-button-click contour

point addition when the program is running in interactive mode.

• mo bendcontour(angle,anglestep) Replaces the straight line formed by the last two

points in the contour by an arc that spans angle degrees. The arc is actually composed

of many straight lines, each of which is constrained to span no more than anglestep degrees.

The angle parameter can take on values from -180 to 180 degrees. The anglestep

parameter must be greater than zero. If there are less than two points defined in the contour,

this command is ignored.

• mo selectpoint(x,y) Adds a contour point at the closest input point to (x,y). If the selected

point and a previous selected points lie at the ends of an arcsegment, a contour is added

that traces along the arcsegment. The mo selectpoint command has the same functionality

as the left-button-click contour point selection when the program is running in interactive

mode.

• mo clearcontour() Clear a prevously defined contour

• mo clearblock() Clear block selection

3.4.3 Zoom Commands

• mo_zoomnatural() Zoom to the natural boundaries of the geometry.

• mo_zoomin() Zoom in one level.

• mo_zoomout() Zoom out one level.

• mo zoom(x1,y1,x2,y2) Zoom to the window defined by lower left corner (x1,y1) and upper

right corner (x2,y2).

78

3.4.4 View Commands

• mo_showmesh() Show the mesh.

• mo_hidemesh() Hide the mesh.

• mo_showpoints() Show the node points from the input geometry.

• mo_hidepoints() Hide the node points from the input geometry.

• mo smooth("flag") This function controls whether or not smoothing is applied to the B

and H fields, which are naturally piece-wise constant over each element. Setting flag equal

to "on" turns on smoothing, and setting flag to "off" turns off smoothing.

• mo_showgrid() Show the grid points.

• mo_hidegrid() Hide the grid points points.

• mo_grid_snap("flag") Setting flag to ”on” turns on snap to grid, setting flag to "off"

turns off snap to grid.

• mo_setgrid(density,"type") Change the grid spacing. The density parameter specifies

the space between grid points, and the type parameter is set to "cart" for cartesian

coordinates or "polar" for polar coordinates.

• mo_hidedensityplot() hides the flux density plot.

• mo_showdensityplot(legend,gscale,upper_B,lower_B,type) Shows the flux density

plot with options:

– legend Set to 0 to hide the plot legend or 1 to show the plot legend.

– gscale Set to 0 for a colour density plot or 1 for a grey scale density plot.

– upper_B Sets the upper display limit for the density plot.

– lower_B Sets the lower display limit for the density plot.

– type Type of density plot to display. Valid entries are "mag", "real", and "imag"

for magnitude, real component, and imaginary component of B, respectively. Alternatively,

current density can be displayed by specifying "jmag", "jreal", and "jimag"

for magnitude, real component, and imaginary component of J, respectively.

if legend is set to -1 all parameters are ignored and default values are used e.g.:

mo_showdensityplot(-1)

• mo_hidecontourplot() Hides the contour plot.

• mo_showcontourplot(numcontours,lower_A,upper_A,type) shows the A contour plot

with options:

– numcontours Number of A equipotential lines to be plotted.

79

– upper_A Upper limit for A contours.

– lower_A Lower limit for A contours.

– type Choice of "real", "imag", or "both" to show either the real, imaginary of both

real and imaginary components of A.

If numcontours is -1 all parameters are ignored and default values are used, e.g.:

mo_showcontourplot(-1)

• mo minimize minimizes the active magnetics output view.

• mo maximize maximizes the active magnetics output view.

• mo restore restores the active magnetics output view from a minimized or maximized state.

• mo resize(width,height) resizes the active magnetics output window client area to width

Ч height.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]