Akantu: Swiss-Made Open-Source Finite-Element Library
Project description
Akantu
: Swiss-Made Open-Source Finite-Element Library
Akantu
means a little element in Kinyarwanda, a Bantu language. From now on it
is also an open-source object-oriented library which has the ambition to be
generic and efficient. Even though the code is written to be generic, Akantu
strength are in solid mechanics models for fracture and contact simulations.
The full documentation can be found on ReadTheDocs
Building Akantu
Dependencies
In order to compile Akantu
any compiler supporting fully C++14 should work.
In addition some libraries are required:
- CMake (>= 3.5.1)
- Boost (pre-processor and Spirit)
- zlib
- Eigen3 (if not present the build system will try to download it)
For the python interface:
- Python (>=3 is recommended)
- pybind11 (if not present the build system will try to download it)
To run parallel simulations:
- MPI
- Scotch
To use the static or implicit dynamic solvers at least one of the following libraries is needed:
- MUMPS (since this is usually compiled in static you also need MUMPS dependencies)
- PETSc
To compile the tests and examples:
- Gmsh
- google-test (if not present the build system will try to download it)
On .deb
based systems
> sudo apt install cmake libboost-dev zlib1g-dev gmsh libeigen3-dev
# For parallel
> sudo apt install mpi-default-dev libmumps-dev libscotch-dev
# For sequential
> sudo apt install libmumps-seq-dev
Using conda
This works only for sequential computation since mumps
from conda-forge is compiled without MPI support
> conda create -n akantu
> conda activate akantu
> conda install boost cmake
> conda install -c conda-forge mumps
Using homebrew
> brew install gcc
> brew install boost@1.76
> brew tap brewsci/num
> brew install brewsci-mumps --without-brewsci-parmetis
If it does not work you can edit url to http://graal.ens-lyon.fr/MUMPS/MUMPS_5.3.5.tar.gz using the command:
> brew edit brewsci/num
Configuring and compilation
Akantu
is a CMake project, so to configure it, you can follow the usual way:
> cd akantu
> mkdir build
> cd build
> ccmake ..
[ Set the options that you need ]
> make
> make install
On Mac OS X with homebrew
You will need to specify the compiler explicitly:
> CC=gcc-12 CXX=g++-12 FC=gfortran-12 cmake ..
Considering the homebrew is installed in /opt/homebrew
Define the location of the Scotch
library path:
> cmake .. -DSCOTCH_LIBRARY="/opt/homebrew/lib/libscotch.dylib;/opt/homebrew/lib/libscotcherr.dylib;/opt/homebrew/lib/libscotcherrexit.dylib"
Specify path to all MUMPS
libraries:
> cmake .. -DMUMPS_DIR=/opt/homebrew/opt/brewsci-mumps
In case the above does not work, specify the MUMPS
path manually using (e.g.):
> cmake .. -DMUMPS_LIBRARY_COMMON=/opt/homebrew/opt/brewsci-mumps/lib/libmumps_common.dylib
If compilation does not work change the path of the failing libraries to brew downloads in /opt/homebrew/
.
Using the python interface
You can install Akantu
using pip, this will install a pre-compiled version, this works only on Linux machines for now:
> pip install akantu
You can then import the package in a python script as:
import akantu
The python API is similar to the C++ one. If you encounter any problem with the python interface, you are welcome to do a merge request or post an issue on GitLab.
Contributing
Contributing new features, bug fixes
Any contribution is welcome, we are trying to follow a gitflow workflow, so the project developers
can create branches named features/<name of my feature>
or bugfixes/<name of the fix>
directly in the main akantu
repository.
External fellows can Fork the project.
In both cases the modifications have to be submitted in the form of a Merge Request.
Asking for help, reporting issues
If you want to ask for help concerning Akantu's compilation, usage or problem with the code do not hesitate to open an Issue on gitlab. If you want to contribute and don't know where to start, you are also invited to open an issue.
Tutorials with the python interface
To help getting started, multiple tutorials using the python interface are
available as notebooks with pre-installed version of Akantu
on Renku. The tutorials can be tested here:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Hashes for akantu-5.0.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6912c1605f6b2cbb58dd79a1318aa79d355073b7ad73216959af2d217523619 |
|
MD5 | 09179909a068b6daec1ce2de276b76d8 |
|
BLAKE2b-256 | 69e1b65af3f1ab29b211c18a2739749c96b420d8f3340f06dc452b952e408aad |
Hashes for akantu-5.0.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e931b6729cd04820a0e3ffd7bef2868e080b08c5d0bd778bb63abc48e5337c73 |
|
MD5 | f7dd0af361bce53b59418c8b48e47e97 |
|
BLAKE2b-256 | ace07510114c61e92a648b46f98d4bb7015953168d2c2c34a05095079be84b74 |
Hashes for akantu-5.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c39411f830e6c334b9f29660821f271ecf42a6075411899b85eb4769990d067 |
|
MD5 | 9b63ab10e67b9a18dc204d7924729204 |
|
BLAKE2b-256 | cde4479e2314ce02bc20422fe732243207a5a6f0ce0e5a56b9fb1c95afc980e4 |
Hashes for akantu-5.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3157c362da86c2a2918b1816ea16dcf119bc9a1e16634446b7043109a3d5c5ad |
|
MD5 | 27f46b71080750cc8029584abb8b399a |
|
BLAKE2b-256 | 8f0eef768c51704484ae01d0d93fc9d095535ec46e25dcb0deb0edfe1ae4ec2e |
Hashes for akantu-5.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5697827bd17452f2ed79ebce0463b77eee3fb5b7aafc54bb5666d6c8d9dd4a82 |
|
MD5 | e8d009b8e1433626fccfc07f90a558b4 |
|
BLAKE2b-256 | 4adf9094f9473748f9b86661a9e27396732c75113d5a340ba9ab8774facbe749 |
Hashes for akantu-5.0.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4259cef611f0491313b3804403fe0e1831b64167c7647f724615dec27c81db3 |
|
MD5 | c6463e5663efc5f429b3824ac645a048 |
|
BLAKE2b-256 | 3e2812878f3c03faccae1f328ec0b6af518a476759d9689529c28392094259a1 |
Hashes for akantu-5.0.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1055fcbf012fe94adb5350e64368e46118ef01388b6931b87a473b2153e2f88 |
|
MD5 | 53b5624ea3187656c625864ab4f80735 |
|
BLAKE2b-256 | 0590919bf78613652acf454ba4332b754754ac67a21a1119c4bfc577b344e675 |