SkillAgentSearch skills...

Xpfem

A python package for finite element method (FEM) in solid mechanics

Install / Use

/learn @Qinxiaoye/Xpfem
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

xpfem

A Python package for finite element method (FEM) in solid mechanics

You should download all the code and install the following packages:

  • numpy
  • scipy
  • pyvista

Features:

  • linear elasticity
  • 2D Quadrilateral element (Q1,Q2)
  • 3D Hexahedral element (Q1,Q2)
  • BBar element for 3D Q1 element
  • Perfect post-processing
  • Export VTK file

Run code

You can install the packages by

  1. pip install numpy
  2. pip install scipy
  3. pip install pyvista

Run the test.py or other test file, you can get the displace and stress as following

<div align="center"> <img src="https://github.com/Qinxiaoye/xpfem/blob/main/figure/beam.png"> </div> <div align="center"> <img src="https://github.com/Qinxiaoye/xpfem/blob/main/figure/pipe.png"> </div>

Preparing input files from ANSYS

See https://github.com/Qinxiaoye/FEM2D to learn how to create the input files from ANSYS

see video from:

My bilibili (https://www.bilibili.com/video/BV14J4m1u7kC/?share_source=copy_web&vd_source=8381a0f0649669500500f77fc36946af)

View on GitHub
GitHub Stars97
CategoryDevelopment
Updated1d ago
Forks14

Languages

Python

Security Score

80/100

Audited on Mar 26, 2026

No findings