Skip to content
noooway edited this page Feb 9, 2019 · 38 revisions

Python version -- slower, but easier to install:

sudo apt-get install git && sudo apt-get install python3 && sudo apt-get install jupyter && sudo apt-get install hdf5-tools hdfview && # clone and install necessary python packages git clone https://github.com/epicf/ef_python your-ef_python-dir && pip3 install --user --requirement your-ef_python-dir/requirements.txt # test cd your-ef_python-dir/examples/axially_symmetric_beam_contour && sh run_example.sh && ls 

C++ version -- faster, but requires compilation:

sudo apt-get install git build-essential && sudo apt-get install libboost-dev libboost-program-options-dev libhdf5-dev && sudo apt-get install python3 python3-numpy python3-matplotlib python3-scipy && sudo apt-get install python3-h5py && sudo apt-get install jupyter && sudo apt-get install hdf5-tools hdfview && # clone and compile git clone https://github.com/epicf/ef your-ef-dir && cd your-ef-dir && make && # test cd ./examples/axially_symmetric_beam_contour && sh run_example.sh && ls

Test example is launched to check whether the program has been installed correctly. During the computation it should produce several *.h5 files with the data; after it finishes -- a .png file with a picture of a beam profile, similar to the one below:

In case the installation has been successful, it is suggested to examine available examples in the wiki.

Clone this wiki locally