The field and particle trajectory simulator
Industry standard charged particle optics software
Refine your design: model > simulate > view > analyze > program > optimize it.
News: SIMION v8.1.3.8-TEST posted - EA with new GEM features! | ASMS 2018 posters | Zoom Tutorial Video
About | Documentation | Community/Support | Downloads | Ordering

Swirl Example

The SIMION SL™ Toolkit (version - 2004-11-09)

Description: This example demonstrates creating a swirl-like potential array (such as a ribbon wrapped around a cylinder) via the SL PA libraries. There are three versions: one written in C++, one written in Python, and one written in Perl.

Category: SL Libraries

This program is implemented in three programming languages: C++, Perl, and Python. See each directory.

  • swirl_cpp
  • swirl_perl
  • swirl_python

CPP version

Use: To use, compile the swirl.cpp program into swirl.exe and run the program. Build files are provided for Microsoft Visual C++ 6.0 and GNU g++ C++ compilers. If you use another compatible C++ compiler, you just have to make sure that you add the SL Libraries for C++ (lib\cpp) to your include seach path and make sure pa.cpp gets compiled into the binary).

Browse the source code:

Perl version

Use: To use, just run the swirl.bat program. This will execute the Perl interpreter and point it to the location of the SL Libraries for Perl (lib\perl).

Browse the source code:

Python version

Use: To use, set the "PATH" variable in swirl.bat to point to the directory in which python.exe is installed on your system. Then run swirl.bat.

Browse the source code:

Please report any errors/comments regarding this web page:
  Name/e-mail/phone (optional):
The SIMION SL Toolkit™ and documentation is (c) 2003-2004 Scientific Instrument Services, Inc. All Rights Reserved.
Any comments on this web page? (will be sent to SIS SIMION Support)
[Optional] Your name: email: phone/fax:
The SL Tookit™ and documentation is (c) 2003 Scientific Instrument Services, Inc. All Rights Reserved.