Skip to main content

A simple python library for 2D finite element analysis.

Project description

NaiveFea

A simple python library for 2D finite element analysis.

You can learn how to use it by example.ipynb and example_nonlinear.ipynb.

  • Linear and nonlinear elasticity;
  • Easy to calculate and plot user-defined showing data;
  • Support multiprocessor;
  • Plot mesh, undeformed, and deformed figure, where magnificient of deformed figure can be calculate automatically.

Pre-processing

Plot figure of mesh and restirct condition

mesh plot

restrict plot

Solving

Solving a FEA problem within 8 lines.

mesh=meshio.read('abaqus_mesh.inp')
fea=LinearFea(mesh)
material=LinearElastic(E=10.0,nv=0.3)
fea.uniform_material(material)
fea.set_deform_conditions('fix',Uxy=[0,5,10,15,20])
fea.set_force_conditions({14:(0.001,0)})
fea.submit()
fea.plot('stress','S12')

Post-processing

Easy to plot figures.

deform mesh plot

Ux plot S12 plot

Result of two material fea

Ability to solve multi material problem.

e11 plot


Mark

This project is a teaching material for students who want to implement FEA with Python in a post on Chaoli forum (in Chinese):

Theory document of linear finite element analysis (in Chinese)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

naivefea-0.1.2.1.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

naivefea-0.1.2.1-py2.py3-none-any.whl (14.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file naivefea-0.1.2.1.tar.gz.

File metadata

  • Download URL: naivefea-0.1.2.1.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for naivefea-0.1.2.1.tar.gz
Algorithm Hash digest
SHA256 da86d5660bf3c48d5f22f9c5879e4e79615f8f2be91f56ae58b931670620c42f
MD5 e672511eda473e6bd8f08567c0e226b7
BLAKE2b-256 b32d963dd9fecf0100b287a2c51ae6f94dc4d92d1a6fce9d55a5e1a082dde3d4

See more details on using hashes here.

File details

Details for the file naivefea-0.1.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: naivefea-0.1.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for naivefea-0.1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9894ab885f52807f4a815ba03f645b6ed343f8d581b4a314bba66cdf72ed84a4
MD5 a00047f7db1ea2b82432d71e7f77149a
BLAKE2b-256 8f5d0c1ec1aa3663795dd744c5d0081b6863868fbe4ae5e45376533e34d35154

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page