Skip to content

An FEM suite for 2D structural analysis. Developed as part of my coursework for the module "Numerical Techniques in Civil Engineering" of MSc Civil and Water Engineering at Cardiff University.

nikolisan/FEMpython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FEM for Python

This project is my implementation of FEM for structures as part of my coursework in MSc Civil and Water Engineering at Cardiff University This is a project under developement.

Project Structure

The main package, fempy, is divided into four subpackages:

  • elements: This subpackage contains a set of classes for structural elements, like Triangular2D element, Bar2D element, etc.
  • mesh: This subpackage provides helper classes for automatic mesh generation.
  • solvers: This is the main subpackage, which contains all the solver classes for many different applications.
  • examples: As the name states, this package provides some small commented scripts to help the user structure his approach.

Installation

This project is not yet published to PyPI. To install it you have to build it from source.

Build from source

  1. Clone the repository and cd inside
git clone https://github.com/nikolisan/FEMpython.git
cd FEMpython
  1. Install the library
python3 -m pip install .
  1. Optional. To uninstall the library
python3 -m pip uninstall fempy

Usage

After installing the library you can import it to your project

import fempy
# OR
from fempy.elements import TriangularElement2D as Element
from fempy.solvers import PlaneTriangular2D as Solver

You can find more usage examples in the [examples](fempy/examples. folder.



Authors

About

An FEM suite for 2D structural analysis. Developed as part of my coursework for the module "Numerical Techniques in Civil Engineering" of MSc Civil and Water Engineering at Cardiff University.

Topics

Resources

Stars

Watchers

Forks

Languages