solidspy

2D-Finite Element Analysis with Python

https://github.com/appliedmechanics-eafit/solidspy

Science Score: 77.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
    1 of 6 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (18.8%) to scientific vocabulary

Keywords

elasticity fem finite-element-analysis finite-element-methods finite-elements gmsh meshes meshio pde-solver python scientific-computing solid-mechanics
Last synced: 6 months ago · JSON representation ·

Repository

2D-Finite Element Analysis with Python

Basic Info
  • Host: GitHub
  • Owner: AppliedMechanics-EAFIT
  • License: mit
  • Language: Python
  • Default Branch: master
  • Size: 47.1 MB
Statistics
  • Stars: 278
  • Watchers: 30
  • Forks: 78
  • Open Issues: 9
  • Releases: 1
Topics
elasticity fem finite-element-analysis finite-element-methods finite-elements gmsh meshes meshio pde-solver python scientific-computing solid-mechanics
Created about 10 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Contributing License Citation Authors

README.md

SolidsPy: 2D-Finite Element Analysis with Python

PyPI download Documentation Status Downloads frequency image

A simple finite element analysis code for 2D elasticity problems. The code uses as input simple-to-create text files defining a model in terms of nodal, element, material and load data.

Features

  • It is based on an open-source environment.
  • It is easy to use.
  • The code allows to find displacement, strain and stress solutions for arbitrary two-dimensional domains discretized into finite elements and subject to point loads.
  • The code is organized in independent modules for pre-processing, assembly and post-processing allowing the user to easily modify it or add features like new elements or analyses pipelines.
  • It was created with academic and research purposes.
  • It has been used to tech the following courses:
    • Introduction to Solid Mechanics.
    • Computational Modeling.
    • Introduction to the Finite Element Methods.
    • Introduction to Soil Mechanics.

Installation

The code is written in Python and it depends on numpy, and scipy and. It has been tested under Windows, Mac, Linux and Android.

To install SolidsPy open a terminal and type:

pip install solidspy

To specify through a GUI the folder where the input files are stored you will need to install easygui.

To easily generate the required SolidsPy text files out of a Gmsh model you will need meshio.

These two can be installed with:

pip install easygui
pip install meshio

How to run a simple model

For further explanation check the docs.

Let's suppose that we have a simple model represented by the following files (see tutorials/square example for further explanation).

  • nodes.txt

0 0.00 0.00 0 -1 1 2.00 0.00 0 -1 2 2.00 2.00 0 0 3 0.00 2.00 0 0 4 1.00 0.00 -1 -1 5 2.00 1.00 0 0 6 1.00 2.00 0 0 7 0.00 1.00 0 0 8 1.00 1.00 0 0

  • eles.txt

0 1 0 0 4 8 7 1 1 0 4 1 5 8 2 1 0 7 8 6 3 3 1 0 8 5 2 6

  • mater.txt

1.0 0.3

  • loads.txt

3 0.0 1.0 6 0.0 2.0 2 0.0 1.0

Run it in Python as follows:

python import matplotlib.pyplot as plt # load matplotlib from solidspy import solids_GUI # import our package disp = solids_GUI() # run the Finite Element Analysis plt.show() # plot contours

For Mac users it is suggested to use an IPython console to run the example.

License

This project is licensed under the MIT license. The documents are licensed under Creative Commons Attribution License.

Citation

To cite SolidsPy in publications use

Nicolás Guarín-Zapata, Juan Gomez (2023). SolidsPy: Version 1.1.0 (Version v1.1.0). Zenodo. https://doi.org/10.5281/zenodo.7694030

A BibTeX entry for LaTeX users is

bibtex @software{solidspy, title = {SolidsPy: 2D-Finite Element Analysis with Python}, version = {1.1.0}, author = {Guarín-Zapata, Nicolás and Gómez, Juan}, year = 2023, keywords = {Python, Finite elements, Scientific computing, Computational mechanics}, abstract = {SolidsPy is a simple finite element analysis code for 2D elasticity problems. The code uses as input simple-to-create text files defining a model in terms of nodal, element, material and load data.}, url = {https://github.com/AppliedMechanics-EAFIT/SolidsPy}, doi = {https://doi.org/10.5281/zenodo.7694030} }

Owner

  • Name: Grupo de Mecánica Aplicada
  • Login: AppliedMechanics-EAFIT
  • Kind: organization

Repositories for the Mecánica Aplicada (Applied Mechanics) research group from Universidad EAFIT

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.1.0
title: 'SolidsPy: 2D-Finite Element Analysis with Python'
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Nicolás
    family-names: Guarín-Zapata
    email: nguarinz@eafit.edu.co
    affiliation: Universidad EAFIT
    orcid: 'https://orcid.org/0000-0002-9435-1914'
  - given-names: Juan David
    family-names: Gómez
    email: jgomezc1@eafit.edu.co
    affiliation: Universidad EAFIT
identifiers:
  - type: doi
    value: 10.5281/zenodo.4029270
url: 'https://github.com/AppliedMechanics-EAFIT/SolidsPy'
abstract: >-
  SolidsPy is a simple finite element analysis code
  for 2D elasticity problems. The code uses as input
  simple-to-create text files defining a model in
  terms of nodal, element, material, and load data.
keywords:
  - finite element method
  - scientific computing
  - computational mechanics
  - elasticity
  - python
license: MIT

GitHub Events

Total
  • Issues event: 18
  • Watch event: 25
  • Issue comment event: 3
  • Push event: 4
  • Pull request event: 11
  • Fork event: 5
Last Year
  • Issues event: 18
  • Watch event: 25
  • Issue comment event: 3
  • Push event: 4
  • Pull request event: 11
  • Fork event: 5

Committers

Last synced: about 2 years ago

All Time
  • Total Commits: 265
  • Total Committers: 6
  • Avg Commits per committer: 44.167
  • Development Distribution Score (DDS): 0.279
Past Year
  • Commits: 10
  • Committers: 2
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.2
Top Committers
Name Email Commits
Nicolas Guarin-Zapata n****n@g****m 191
jgomezc1 j****1@e****o 68
Juan David a****a@A****l 2
Marc m****g@w****e 2
Edward Villegas c****r@g****m 1
Guillaume Huet g****t@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 33
  • Total pull requests: 17
  • Average time to close issues: 7 months
  • Average time to close pull requests: 3 days
  • Total issue authors: 15
  • Total pull request authors: 5
  • Average comments per issue: 1.09
  • Average comments per pull request: 0.29
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 10
  • Pull requests: 6
  • Average time to close issues: about 6 hours
  • Average time to close pull requests: 22 minutes
  • Issue authors: 2
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.17
  • Merged pull requests: 5
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • nicoguaro (10)
  • kssgarcia (9)
  • liubailong-IFS (2)
  • concon23 (1)
  • ErosHXL (1)
  • xuzhiping (1)
  • considinefarm (1)
  • duhd1993 (1)
  • garland3 (1)
  • meldiwin (1)
  • kewp (1)
  • mauriaristi (1)
  • jgomezc1 (1)
  • spectereye (1)
  • cosmoscalibur (1)
Pull Request Authors
  • kssgarcia (10)
  • nicoguaro (8)
  • mg494 (1)
  • guillaumehuet (1)
  • cosmoscalibur (1)
Top Labels
Issue Labels
enhancement (9) question (3) bug (2)
Pull Request Labels

Dependencies

requirements-dev.txt pypi
  • coverage * development
  • pytest * development
requirements.txt pypi
  • easygui *
  • matplotlib *
  • meshio ==3.0
  • numpy *
  • scipy *