螣蛇无足而飞,鼫鼠五技而穷。--《荀子·劝学》
mole is a finite element package, inherented from OOFEM, but with a primary focus on inelastic solid mechanics.
- Concise and Organized: Mole is streamlined for individual developers, making it easier to use and extend.
- Accuracy: All examples have been thoroughly tested to ensure reliable results.
- High Performance: Mole is faster than OOFEM. With PETSc and Open MPI, its computational efficiency is comparable with commercial packages.
git clone https://github.com/cunyizju/mole --depth=1
git clone https://github.com/petsc/petsc.git --depth=1
./configure PETSC_ARCH=linux-gnu --with-cc=gcc --with-cxx=g++ --with-fc=gfortran --download-mpich --download-fblaslapack
make PETSC_DIR=/home/bruce/Repo2024/petsc PETSC_ARCH=linux-gnu all
make PETSC_DIR=/your/install/path/petsc PETSC_ARCH=linux-gnu check
cd mole
mkdir build/opt
cd build/opt
ccmake ../..
Please use following configurations:
CMAKE_BUILD_TYPE Release
PETSC_ARCH linux-gnu
PETSC_DIR /your/path/to/petsc/source/code
PETSC_CURRENT ON
USE_DSS ON
USE_IML ON
USE_MPI_PARALLEL ON
USE_PETSC ON
USE_SHARED_LIB ON
USE_SM ON
cmake --build ./ -jn (n the number of cpu cores)
oofem -f input_file_name
or
oofem -f input_file_name > output.log
if you want to record the log.