Giter Site home page Giter Site logo

e-scatter's Introduction

e-scatter

Fast CUDA-enabled simulator for electron scattering processes in materials.

Build Status

Building

Dependencies of the core simulator:

  • C++14 compiler (tested with GCC 5)
  • CUDA 8.0 or newer
  • CUB
  • CMake 3.8 or newer

Build the program:

cd e-scatter
mkdir build
cd build
cmake ..
make

To also build all of the utilities, append -DWITH_UTILS=ON to the cmake command. Dependencies required to build the utilities:

  • Boost
  • muParser
  • ImageMagick
  • FFTW
  • SDL2
  • OpenGL
  • GLEW

Usage

The main program is located at bin/csdem. It requires a geometry file, which can be generated with bin/line-gen, and an exposure file, which can be generated with scripts/pri-gen.py.

Testing

To run the unit tests, the googletest library should be available in the 3rdparty directory; clone it from github and run cmake with -DWITH_TEST=ON.

cd 3rdparty
git clone https://github.com/google/googletest.git
mkdir -p ../build
cd ../build
cmake .. -DWITH_TEST=ON
make
make test

Creating materials

The material files contain most of the physics involved.

e-scatter's People

Contributors

jhidding avatar slokhorst avatar tverduin avatar lvkessel avatar kerimarat avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Forkers

slokhorst

e-scatter's Issues

Doesn't compile with latest GSL

Some things have changed:

  • the include has moved from <gsl.h> to <gsl/gsl>
  • the gsl::as_span function has been renamed

Unfortunately I could not get it to work myself.

Remove CSTool

We should provide integration with eScatter/cstool and remove the cstool in this repository.

  • Remove GSL dependency
  • Switch back C++ standard to C++11 from C++14

C++14 code but compiled with -std=c++11 flag

It is impossible to build the project since some C++14 code was introduced but GCC is set to C++11 mode. We cannot switch the entire project to C++14 since CUDA doesn't support that. Is it a good idea to mix C++11 and C++14? (different compiler flags for different subdirectories/libraries)

Add python interface to cdsem

After #18 has been resolved we should provide a python library to interface with cdsem so there will be an easy-to-use all-python interface available.

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.