SIMION® Industry standard charged particle optics simulation software.
Newsflash: SIMION 8.1.1 is here: dielectrics, new examples + preview of permeability; ASMS2012 posters; major improvements to enhanced surface accuracy feature coming soon (details in Check for Updates).
About | Documentation | Community/Support | Downloads | Ordering

simion

DESCRIPTION

The “simion” table contains various functions and objects that allow SIMION to be examined and manipulated from Lua.

In SIMION 8.0, members of this table include various basic functions such for printing to the log window (simion.print) or generating random numbers (simion.rand). Many of these are described in Appendix L “User Programming” of the printed SIMION manual, but a number of additional functions (listed here) have been added since the manual printing.

In SIMION 8.1, the “simion” table is being significantly extended to include various objects that allow, for example, manipulation of potential array objects and instances (PA’s), workbenches (IOB’s), and the SIMION display window.

This module is pre-loaded by default, so you don’t need to reload it yourself.

Note

See these additional sections in this topic in the offline SIMION 8.1.0 help file:
  • INTERFACE - Objects

simion.pas

simion.pas is an object that represents a list of all potential arrays (PAs) in memory–that is, the potential array list shown on the SIMION main screen (which is different from the list of PA instances in the PAs tab on the View screen). This allows PAs to be read and manipulated programmatially.

Example:

-- List all PAs in memory.
for i=1,#simion.pas do
  print(simion.pas[i])
end

Note that #simion.pas is the number of PAs in memory, and simion.pas[i] retrieves the i-th PA in memory.

See simion.pas for much more complete details on this interface.

Compatibility Warning: This object is only available in SIMION 8.1.0 and above.

simion.wb

simion.wb

simion.wb is an object that represents the currently loaded SIMION workbench (IOB file). This allows the SIMION workbench to be read and manipulated programmatically. This value is nil if no workbench is currently loaded.

See simion.wb for much more complete details on this interface.

Compatibility Warning: This object is only available in SIMION 8.1.0 and above.

Note

See these additional sections in this topic in the offline SIMION 8.1.0 help file:
  • Other

Note

See these additional sections in this topic in the offline SIMION 8.1.0 help file:
  • INTERFACE - Functions

SOURCE

(c) 2006-2011 Scientific Instrument Services, Inc. Licensed under the terms of SIMION 8.0 and 8.1. www.simion.com. D.Manura-2007/2008.

Any comments on this web page? (will be sent to SIS)
[Optional] Your name: email: phone/fax:
(c) 2003-2006 Scientific Instrument Services, Inc. (SIS). Contact SIS.