Skip to content

piotrbartman/conmech

 
 

Repository files navigation

conmech

conmech is a simulating package written in Python that allows to numerically solve contact mechanics problems.

Description

Contact mechanics describes behaviour of the physical body in contact with the obstacle. Majority of such problems cannot be solved analitically and require numerical procedure. This package implements the Finite Element Method for 2D and 3D bodies and works with static, quasistatic and dynamic problems. It can simulate various physical phenomena, such as friction and obstacle resistance. Additional variables besides displacement, such as the temperature of the body, can be calculated. The project is almost entirely self contained, requires basic Python libraries, pygmsh along with Gmsh for mesh construction and Scipy for solving reformulated problem. The code is modular and can be further extended to include new physical models.

Sample results

2D with temperature 3D

Installation

Install Gmsh used for mesh construction and dependencies from "requirements.txt"

apt-get install python3-gmsh
pip install -r requirements.txt

Usage

To run sample simulations, start any file from examples folder

PYTHONPATH=. python examples/examples_2d.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%