HiFiMagnet

1. PREREQUISITES

  • MagnetTools: for Optimization and Analytical calc.

  • gmsh: for converting Mesh format

  • Feel++: for Numerical Axi and 3D Modeling

    • toolbox: CSM

    • RB framework

2. Using containers

2.1. Docker

2.2. Singularity

3. Using containers

4. From Lncmi Debian/Ubuntu package repository

5. From scratch

5.1. Feel++ already installed

  • clone HiFiMagnet github repository

5.2. Feel++ not installed

  • clone Feel++ github repository

cd feelpp/research
  • clone HiFiMagnet github repository

cmake $DEBUG $FEELPP_DIR \
 -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++-9 \
 -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang-9 \
 -DCMAKE_fortran_COMPILER:FILEPATH=/usr/bin/gfortran \
 -DCMAKE_VERBOSE_MAKEFILE=ON \
 -DCMAKE_BUILD_TYPE=Release \
 -DFEELPP_PYTHON_VERSION=3 \
 -DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3 \
 -DPYTHON_INCLUDE_DIR:PATH=/usr/include/python3.7 \
 -DPYTHON_LIBRARY:PATH=/usr/lib/python3.7/config-x86_64-linux-gnu/libpython3.7.so \
 -DFEELPP_ENABLE_SYSTEM_EIGEN3:BOOL=ON \
 -DHDF5_INCLUDE_DIRS=/usr/include/hdf5/openmpi \
 -DHDF5_LIBRARY_DIRS=/usr/lib/x86_64-linux-gnu/hdf5/openmpi \
 -DHDF5_PREFER_PARALLEL:BOOL=ON \
 -DFEELPP_ENABLE_PYTHON:BOOL=ON \
 -DCMAKE_EXE_LINKER_FLAGS:STRING="-Wl,--no-as-needed -lm -lrt" \
 -DFEELPP_ENABLE_IPOPT=OFF \
 -DFEELPP_ENABLE_TOOLBOXES=ON \
 -DFEELPP_ENABLE_MOR=ON \
 -DFEELPP_ENABLE_RESEARCH_HIFIMAGNET=ON \
 -DHIFIMAGNET_ENABLE_MAGNETTOOLS=ON \
 -DHIFIMAGNET_ENABLE_TESTS=ON

with DEBUG …​ and FEELPP_DIR …​