Skip to content
noooway edited this page Dec 2, 2018 · 38 revisions

Python version -- slower, but easier to install.

sudo apt-get install git && 
sudo apt-get install python3 python3-h5py python3-numpy python3-matplotlib python3-scipy &&
sudo apt-get install jupyter &&
sudo apt-get install hdf5-tools hdfview &&
git clone https://github.com/epicf/ef_python your-ef_python-dir &&
# 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 libboost-dev libboost-program-options-dev libhdf5-dev &&
sudo apt-get install python3 python3-h5py python3-numpy python3-matplotlib python3-scipy &&
sudo apt-get install jupyter &&
sudo apt-get install hdf5-tools hdfview &&
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

To check whether the program works, test example is launched. 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