GithubHelp home page GithubHelp logo

electroncooling's Introduction

Jlab Simulation Package for Electron Cooling

About JSPEC

JSPEC is an open source C++ package for numerical simulations on the electron cooling process, including the intrabeam scattering (IBS) effect, developed at Jefferson Lab (JLab).

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

How to compile

Compile using code blocks IDE

JSPEC is developed using the code blocks IDE. If you are using the same IDE, just open the project file "jspec.cbp" in the cbp folder and build it. Make sure you have a c++ compiler that supports C++11 standard.

Compile using cmake

Users can also use cmake to compile the files (tested in Ubuntu 16.06). In the project folder, run the following commands:

cd build

cmake ..

make

Test

Users can validate the compiliation by using the included testing functions

make test

One can aid with diagnosing testing problems by using the verbose version of this action:

ctest -VV

How to run

To run JSPEC, you can put your input file in the same folder with the JSPEC executable file and run the following commands in the folder:

jspec.exe inputfilename

You also need another file in MAD X tfs format, which defines the ion ring optics. You can put it in the same folder too. About how to write your input file, please refer to the JSPEC User Manual.

Acknowledgement

Authors of BETACOOL, we learned a lot from BETACOOL.

Authors of muParser, which is used in building the text-base UI.

Dr. David Bruwihler and Paul Moeller at Radiasoft, who developed an online version of JSPEC with GUI on their cloud server, Sirepo.

Contact the authors

Dr. He Huang at Old Dominion University by hhuang.AT.odu.edu

Dr. He Zhang at Jefferson Lab by hezhang.AT.jlab.org.

electroncooling's People

Contributors

sjcrs avatar zhanghe9704 avatar ilyapogorelov avatar mbruker avatar moellep avatar bnash avatar bruhwiler avatar

Watchers

James Cloos avatar  avatar  avatar Rob Nagler avatar  avatar Nathan Cook avatar Dan T. Abell avatar  avatar Christopher Hall avatar  avatar  avatar

electroncooling's Issues

Correction to unmagnetized model

A user indicated that a pre-cooler design was giving different unmagnetized cooling rates depending on the model. Following up, it looks like the Binney Approximation solution to the unmagnetized model has a sign error. This is shown in the plot below. This fix should be very simple.

image

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.