Coder Social home page Coder Social logo

lcodepy-team / lcodepy Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 8.0 4.93 MB

Experimental quasistatic plasma wakefield simulation code, 2D and 3D geometry, for CPUs and GPUs

Home Page: https://lcode.info/

License: Other

Python 100.00%
cupy plasma-physics pwfa python quasi-static

lcodepy's Introduction

lcodePy

Overview

LCODE is a free software for numerical simulation of particle beam-driven plasma wakefield acceleration. LCODE is based on the quasistatic approximation, capable of simulation in 2D and 3D geometry, and can use GPUs and CPUs.

For now, this under active development. This is a complete overhaul of the old C version in Python.

Instalation

We use Anaconda and we recommend installing lcode in a separate environment. Any other python installation should work fine, but has not been tested.

  • Create a new environment and install the dependencies:
conda create -n lcode-env -c conda-forge numba numpy scipy matplotlib mpi4py

or

conda env create -f conda-env.yml  

where conda-env.yml is avalible in sources.

  • Acivate the new environment:
conda activate lcode-env
  • Optional: in order to run simulations on GPU, add cupy and other necessary packages to the line of dependencies when creating a new eviroment. Check in advance if you have the drivers for your GPU installed. It is not necessary to install CUDA Toolkit in advance. For any other questions about cupy, please check https://docs.cupy.dev/en/stable/install.html
conda create -n lcode-env -c conda-forge numba numpy scipy matplotlib cupy
  • Install lcode:
pip install lcode

or download sources from GitHub and run the forlowing command in downloaded directory:

pip install .

You can also find a more mature 2D version of LCODE at http://lcode.info/.

Fill free to contact [email protected] for assistance with it.

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.