Skip to content

cunyizju/mole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MOLE (Modified OOFEM for Inelastic Materials)

螣蛇无足而飞,鼫鼠五技而穷。--《荀子·劝学》

What is mole?

mole is a finite element package, inherented from OOFEM, but with a primary focus on inelastic solid mechanics.

Why Choose Mole?

  • 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.

Installation (Linux OS Only)

Pre-requisites

Step 1: Download source code

git clone https://github.com/cunyizju/mole --depth=1
git clone https://github.com/petsc/petsc.git --depth=1

Step 2: Install PETSc

./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

Step 3: Config mole

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

Step 4: Build mole

cmake --build ./ -jn (n the number of cpu cores)

Run

oofem -f input_file_name

or

oofem -f input_file_name > output.log

if you want to record the log.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published