OptiM - Computer code for linear and non-linear optics calculations


Support of this version is discontinued at the end of 2014. Please, use updated version from http://...~ostiguy/OptiM/  .


1.  For program installation to Windows-XP and Vista click here to download zipped file (2.6 MB) and then follow instructions from item 2; for program installation to Windows 7 click here and then follow instructions from Item 3

2.  Instructions for installation to a computer with MS Windows operating system

bulletDownload . zip file into your computer and unzip it
bulletIf you do not have OptiM previously installed run setup.exe and follow all the instructions there. Remember the directory where you install the software.
bulletThis step installs dynamic libraries and standard examples but it installs old version of the executable and help files.
bulletCopy files optim32.exe and opti.hlp on the top of the same files which you obtained after installation (see step 3).
bulletThis copy of the software (version 4.1.10, Feb. 08, 2004) does not have any bugs known to the author
bulletOn-line help does not cover features and improvements introduced  recently, but program is self-documented (there are short explanations at the bottom of the window for every menu choice) and in most of cases the lack of documentation does not cause problems.
bulletQuestions can be send to the author at val@fnal.gov, phone 1(630)840-2558

3.  Instructions for installation to a computer with Windows-7 operating system .

bulletDownload . zip file into your computer and unzip it into a directory of your choice. Normally it should be "C:/Program Files/OptiM"
bulletUsing Windows tools setup the way you want to launch the program
bulletUse Windows Explorer (Tools/Folder Options/File Types) to make an association of .opt files with OptiM32.exe
bulletAdd executable to your menu
bulletTo view the help file (Opti.hlp) on-line, you need to use the help engine which supports .hlp files.   To set it up download and install the appropriate version of Windows Help program (WinHlp32.exe).  Follow the following link: http://support.microsoft.com/kb/917607 on how to do that. 

4.  If you already have the program installed you can download the latest executable (need to be unzipped) dated to June 17, 2007 and latest help file dated to January 14, 2007.  The following major improvements/upgrades were introduced since February 2005.

bulletArrays and Do{...} While cycles in the math header, December 2005 release
bulletNew functions theta($x) , abs($x) , sign($x), int($x), fact($x), hro($P), December 2005 release
bulletExpressions can be used in parameters of elements and in all service blocks, December 2005 release. That feature caused redefinition of how scattering elements t... and u... are described. December 2005 release 
bulletExport to MADX, December 2005 release
bulletAverage beam positions can be monitored at multiple elements for multi-turn tracking, December 2005 release
bulletTo describe tracking in machines which parameters are changed fast (at every turn) special variable $_nturn is introduced. It is incremented  at each turn.
bulletImprovements of program stability and error diagnosis (December 2005 release)
bulletPlotting particle distribution functions resulting in tracking, Fixing minor bugs in reading data into graphical objects (January 09, 2006 release)
bulletImprovements in error reporting, plotting average beam position in tracking (February 2006 release)
bulletFixed a problem with tracking where the finite length of dipole edge was ignored; introduced a function generating random numbers with Gaussian distribution; fixed a program crashes when external file is called from a path exceeding 80 symbols (March 3, 2006 - release)
bulletFixed an error in computing emittance growth due SR (View integral menu). Introduced wake-field element. Made tracking available for no GUI mode (May 8, 2006 release)
bulletFixed a few errors in the error reporting. Extended functionality for OptiM file compression (Jan. 16, 2007)
bulletImproved fitting (see on-line help), correcting an error in computing trajectory for W-cavity (June 17, 2008).

5.  Optics files  and other optics related files for Tevatron complex, 78 MB, status at March 12, 2004. (Tevatron.zip)


BPM Viewer

You can download BPM Viewer from BPMviewer.zip. To install it just unzip files and put them into appropriate directory.