Code Monkey home page Code Monkey logo

mterms's Introduction

mterms: Multipole terms calculation for the Muon (g-2) storage ring high voltage quadrupole

Authors: Eremey Valetov and Martin Berz
Organization: Michigan State University
Creation date: 03-Feb-2017
Email: [email protected]

0. Introduction

This COSY INFINITY program computes multipole terms of the Muon (g-2) Collaboration quadrupole with adjustable geometry specified by plate distances and plate voltages specified by the user.

For detailed information, including theory and calculation examples, see Chapter 3 and appendices of the following:
Eremey Valetov. Field Modeling, Symplectic Tracking, and Spin Decoherence for EDM and Muon g-2 Lattices. Ph.D. thesis, Michigan State University, East Lansing, MI 48824, 2017. Fermilab report FERMILAB-THESIS-2017-21. doi:10.2172/1416546.

1. Package contents

README.md This file
LICENSE.md Copyright notice
mterms.fox COSY INFINITY program
mapdata.txt Conformal map data for default plate distances and voltages
quad.pdf Plot of the cross-sectional geometry with default distances

2. Setup

This program uses COSY INFINITY as the interpreter. It uses MATLAB and the Schwarz-Christoffel Toolbox for MATLAB by T. Driscoll for calculation of polygon prevertices and other parameters.

Please follow the instructions at http://www.math.udel.edu/~driscoll/SC/ to install the Schwarz-Christoffel Toolbox.

MATLAB must be configured in order for it to run from the OS command line. This is normally the case for MATLAB installations with no additional action from the user.

The program was tested to work in Linux and Windows with respective versions of COSY INFINITY and MATLAB.

3. Geometry configuration

The polygonal model is stored in the procedure GEOMDATA of mterms.fox.

The x and y coordinates of the polygon are stored in the COSY INFINITY vectors ZXI and ZYI, respectively. The interior angles of the polygon, divided by Pi, are stored in the vector ALPHA.

4. Calculations

Run the program in COSY INFINITY, e.g. by entering "cosy mterms.fox" in the command line. Follow the prompts. Multipole terms will be displayed on screen and written to file "mterms.txt".

In case the Schwarz-Christoffel Toolbox is invoked, a plot of the polygonal model of the cross section with equipotential and field lines is written to the file "quadplot.pdf".

5. Copyright Notice

© 2017 Eremey Valetov and Martin Berz

mterms's People

Contributors

evvaletov avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.