1
0
Fork 0
mirror of https://github.com/gwm17/catima.git synced 2024-11-22 10:18:50 -05:00
A slightly modified version of the catima energy loss library (equivalent to LISE energy loss)
Go to file
2019-10-22 21:33:56 +02:00
bin Update catima_calculator.cpp 2019-10-14 17:18:20 +02:00
docs Update conf.py 2019-10-22 21:25:52 +02:00
examples Delete simple 2019-10-08 20:12:20 +02:00
pymodule skip var removed from Config 2019-10-08 20:25:30 +02:00
tests Layers CC 2019-10-22 19:50:34 +02:00
utils ls calculation 2018-01-22 19:36:50 +01:00
.gitignore partial update 2018-10-19 02:51:01 +02:00
.readthedocs.yml Create .readthedocs.yml 2019-10-22 21:33:56 +02:00
abundance_database.cpp abundances 2018-04-23 01:39:10 +02:00
abundance_database.h abundances 2018-04-23 01:39:10 +02:00
build_config.in update3 2018-10-21 22:08:16 +02:00
calculations.cpp minor improvement 2019-10-14 11:21:38 +02:00
calculations.h Config refactoring 2019-05-10 21:02:51 +02:00
catima.cpp minor improvement 2019-10-14 11:21:38 +02:00
catima.h refactoring 2019-05-13 20:51:09 +02:00
CMakeLists.txt Update CMakeLists.txt 2019-10-22 19:34:45 +02:00
config.h config change 2019-10-09 08:19:07 +02:00
constants.h config change 2019-10-09 08:19:07 +02:00
CREDITS Update CREDITS 2018-01-26 16:04:44 +01:00
cwrapper.cpp skip var removed from Config 2019-10-08 20:25:30 +02:00
cwrapper.h skip var removed from Config 2019-10-08 20:25:30 +02:00
data_atima.h config change 2019-10-09 08:19:07 +02:00
data_ionisation_potential.h C Ipot 2018-02-07 10:55:35 +01:00
generated_LS_coeff.h he u4 2018-11-01 15:04:28 +01:00
init.sh.in cmake 2018-04-18 15:19:03 +02:00
integrator.cpp gsl guards 2019-10-08 19:51:45 +02:00
integrator.h update3 2018-10-21 22:08:16 +02:00
LICENSE initial 2017-07-25 18:19:11 +02:00
material_database.cpp p10 changed 2019-10-11 18:52:28 +02:00
material_database.h epoxy glue added 2018-07-02 00:54:45 +02:00
nucdata.cpp initial 2017-07-25 18:19:11 +02:00
nucdata.h initial 2017-07-25 18:19:11 +02:00
reactions.cpp kox formula CC change 2019-01-17 18:20:00 +01:00
reactions.h gsl guards 2019-10-08 19:51:45 +02:00
README.md Update README.md 2019-10-22 21:30:17 +02:00
spline.cpp update3 2018-10-21 22:08:16 +02:00
spline.h update3 2018-10-21 22:08:16 +02:00
srim.cpp minor improvement 2019-10-14 11:21:38 +02:00
srim.h Config refactoring 2019-05-10 21:02:51 +02:00
storage.cpp refactoring 2019-05-13 20:51:09 +02:00
storage.h he u4 2018-11-01 15:04:28 +01:00
structures.cpp Layers CC 2019-10-22 19:50:34 +02:00
structures.h docs 2019-10-22 20:59:21 +02:00

Codacy Badge Language grade: C/C++

CATima

C++ library for caclulalaton of energy loss, range, angular scattering and time of flight of the particle passing through matter. The library is based on physics used in the ATIMA code,however its not 100% copy of ATIMA physics. see CREDITS for more details.

The WebAtima UI to this library can be found here:

Installation

CMake is used to build the library. For default build use:

> mkdir build
> cd build
> cmake ../
> make

after the compilation the libraries and headers must be either installed system-wide by make install or PATH and LD_LIBRARY_PATH must be adjusted to point to headers and library files. The default install path can be change, ie: cmake -DCMAKE_INSTALL_PREFIX=/opt/catima

the option to system-wide installation is to adjust library path and include paths. This can be done sourcing the init.sh file, which is generated in the build directory:

> source init.sh

cmake options

compile options, enable or disable with cmake:

cmake ../ -D[OPTION]

available options:

  • BUILD_SHARED_LIBS - if ON shared library is build, otherwise static
  • PYTHON_MODULE - enable/disable building of the python bindigs, pybind11 is required to build the catima python module, default OFF
  • APPS - build command line app, default ON
  • TESTS - build tests, default OFF
  • EXAMPLES - build examples, default OFF
  • GENERATE_DATA - makes program to re-generate precalculated tables (ie precalculated LS coefficients), default:OFF
  • THIN_TARGET_APPROXIMATION - compile the library with thin target approximation, default: ON
  • GSL_INTEGRATION - use GSL integration functions, otherwise use built-in integrator, default: OFF
  • GLOBAL - compile with GLOBAL code (source not included at the moment, needs to be manually added to global directory, default:OFF)
  • STORE_SPLINES - store splines in cache, if disabled datapoints are stored and splines are recreated, default ON

ie:

cmake -DPYTHON_MODULE=ON ../