A multi-threaded implementation of a nonlocal lattice particle method (LPM) using an iterative solution procedure. Below shows the image of slip system activation in a SENT sample [1].
- Linux operating system (also work in Windows or other systems, but require other Integrated Development Environment like Visual Studio)
- Editor (such as VS Code)
- CMake version 13+
- go to the Intel oneAPI website (https://www.intel.com/content/www/us/en/developer/tools/oneapi/overview.html) download and install the base and hpc toolkits (install 2021.4+ version of oneAPI to have a proper support for CMake)
source /opt/intel/oneapi/setvars.sh linux64 --force
(directory may change if customize the oneAPI installation)- install Ninja:
sudo apt-get install ninja-build
- install openmp:
sudo apt-get install libomp-dev
- note: you may need to add the MKL include path into your editor preference (like VS Code)
- Clone the project source files into your own machine:
git clone https://github.com/longfish/LPM-C.git
mkdir build & cd build
cmake .. -G "Ninja" -DMKL_INTERFACE=lp64
cmake --build . -j 8
./lpmc
The results will be in the build folder.
A 3D simple cubic lattice example for elastic material is provided by default in ./src
directory.
There are some example codes in the ./examples
folder that contains additional numerical cases in [1, 2]. They define the main() functions of the project. One should change the example file name to "lpmc_project.c" and replace it with the same file in ./src
directory then run the code (possibly require some other modifications).
-
Meng C, Wei H, Chen H, et al. Modeling plasticity of cubic crystals using a nonlocal lattice particle method[J]. Computer Methods in Applied Mechanics and Engineering, 2021, 385: 114069.
-
Meng C, Liu Y. Nonlocal Damage-enhanced Plasticity Model for Ductile Fracture Analysis Using a Lattice Particle Method[J]. arXiv preprint arXiv:2108.01214, 2021.