Details
- Tag
- v5.0.7-post1
Commit | Author | Details | Committed | ||||
---|---|---|---|---|---|---|---|
a67b29746942 | tghesquie | Merge remote-tracking branch 'origin/features/72-czm-stability-improvements-in… | Nov 29 2024 | ||||
ac31e2fcf087 | tghesquie | Completed assembleDampingWeights by locally resizing the nodal field and… | Nov 29 2024 | ||||
029dbe940bdb | tghesquie | Finished removing assembleEnergiesOnNodes | Nov 26 2024 | ||||
96050c1e7dfb | tghesquie | Removed assembleEnergiesOnNodes, updated implementation of… | Nov 26 2024 | ||||
12c37f74aed3 | tghesquie | Fixed bugs in assembleDampingWeights | Nov 25 2024 | ||||
499f4909321a | tghesquie | Implement assembleDampingWeights method in MaterialCohesiveLinearStable | Nov 22 2024 | ||||
c1ae7a54b014 | tghesquie | Add computeMassOnQuad method in material_cohesive and CohesiveReduceFunctionSum… | Nov 22 2024 | ||||
4dc72c0b9301 | tghesquie | Add mass_on_quad field and computeMassOnQuad method in… | Nov 20 2024 | ||||
166d74ca5a8c | tghesquie | Add stored cohesive energy field andoverride computeEnergiesOnNodes method in… | Nov 20 2024 | ||||
dd22741e5fce | tghesquie | Add getNodalDataReal method to the binding and update energy computations in… | Nov 20 2024 |
  
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
In order to compile Akantu any compiler supporting fully C++14 should work. In addition some libraries are required:
For the python interface:
To run parallel simulations:
To use the static or implicit dynamic solvers at least one of the following libraries is needed:
To compile the tests and examples:
sh > sudo apt install cmake libboost-dev gmsh libeigen3-dev # For parallel > sudo apt install mpi-default-dev libmumps-dev libscotch-dev # For sequential > sudo apt install libmumps-seq-dev
This works only for sequential computation since mumps from conda-forge is compiled without MPI support
sh > conda create -n akantu > conda activate akantu > conda install boost cmake > conda install -c conda-forge mumps
sh > 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:
sh > brew edit brewsci/num
Akantu is a CMake project, so to configure it, you can follow the usual way:
sh > cd akantu > mkdir build > cd build > ccmake .. [ Set the options that you need ] > make > make install
You will need to specify the compiler explicitly:
sh > 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:
sh > cmake .. -DSCOTCH_LIBRARY="/opt/homebrew/lib/libscotch.dylib;/opt/homebrew/lib/libscotcherr.dylib;/opt/homebrew/lib/libscotcherrexit.dylib"
Specify path to all `MUMPS` libraries:
sh > cmake .. -DMUMPS_DIR=/opt/homebrew/opt/brewsci-mumps
In case the above does not work, specify the `MUMPS` path manually using (e.g.):
sh > 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/.
You can install `Akantu` using pip, this will install a pre-compiled version, this works only on Linux machines for now:
sh > pip install akantu
You can then import the package in a python script as:
python 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.
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.
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.
To help getting started, you can find examples with the source code in the examples sub-folder. If you just want to test the python examples without having to compile the whole project you can use the following tarball akantu-python-examples.tgz.
In addition to the examples, multiple tutorials using the python interface are available as notebooks with pre-installed version of Akantu on Renku. The tutorials can be tested here:
