Skip to main content

A light-weight FEM beam analyzer.

Project description

PlaneSections

A lightweight finite element beam bending library built on libraries like PyNite and OpenSeesPy. The goal of PlaneSections is to make easy-to-use beam anayses, which can be used to quickly document structural calculations.

NOTE: Units for force and length must be applied to the beam in a consistent unit base for FEM. PlaneSections has been design with Metric units in mind in terms of scaling diagrams. For those using imperial units, results will work with a consitent unit basis, but the scale of the digrams may be off.

PlaneSections is a FEM solver! Results are only stored at nodes specified by the user - all intermediate values in plots are linearly interpolated.

Contents

Installation

The default package is installable through pip.

pip -m install planesections

The package with the optional OpenSeesPy dependancy is installable with

pip -m install planesections[opensees]

Features:

2D and 3D beams can be anayzed under the following force types:

  • Point loads
  • Point Moments
  • Line Element loads
  • Linearly varying element loads (2D only).

Diagrams can also be made of 2D beams, but the support types that can be plotted are limited.

Documentation

All major functions and classes are documented on read-the-docs: https://planesections.readthedocs.io/en/latest/

Demo

The PlaneSections can analyze and document beam plots for calcualtions. Below we make a beam, create a diagram of it, then get the output bending moment and shear force diagrams. It's also possible to get rotation, and deflection diagrams but these are not shown here.

import planesections as ps

# Define node locations, and support conditions
L = 5
beam = ps.newEulerBeam(L)

# Define beam and fixities
pinned = [1,1,0]
beam.setFixity(L*0.1, pinned, label = '1')
beam.setFixity(L*0.9, pinned)

# Define loads
Pz = -1
beam.addVerticalLoad(0, Pz, label = 'A')
beam.addVerticalLoad(L*0.5, 2*Pz, label = 'B')
beam.addVerticalLoad(L, Pz, label = 'C')
beam.addDistLoadVertical(0, L, Pz)
beam.addDistLoadVertical(1, L*0.3, 5*Pz)

# Plot the beam diagram
ps.plotBeamDiagram(beam)

# Run the analysis
analysis = ps.PyNiteAnalyzer2D(beam)
analysis.runAnalysis()

# Plot the SFD and BMD
ps.plotShear(beam)
ps.plotMoment(beam)

Coordinates

The coordinant system used for beams is as follows:

Further Examples

See the examples folder for more examples!

Solvers

The opensees solver is included as an optional dependancy. It is significantly faster than the PyNite solver (~100x), but the license is more limited in use. OpenSees allows commercial use of the package, but does not allow resale without permission, so use at your own risk! OpenSees License.

Some restrictions exist for OpenSees license, so this library has been added as an optional dependancy

Status

PlaneSections is almost "feature complete" in terms of it's analysis functionality. The only additional analysis features I might include are:

  • Spring supports
  • Internal hinges
  • Better cross section support These are not slated to be in the next release.

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

planesections-1.3.4.tar.gz (56.2 kB view details)

Uploaded Source

Built Distribution

planesections-1.3.4-py3-none-any.whl (56.8 kB view details)

Uploaded Python 3

File details

Details for the file planesections-1.3.4.tar.gz.

File metadata

  • Download URL: planesections-1.3.4.tar.gz
  • Upload date:
  • Size: 56.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for planesections-1.3.4.tar.gz
Algorithm Hash digest
SHA256 feba9293d38c8c81b03121f88a4c4862ee0a94a3369bd6144dc4c893ba00185a
MD5 332010746c84fb43619058e7a3f57ccc
BLAKE2b-256 3b87056ff98236f5a96b0e6de29cf61c62440e25fdaf62a009d043e51cd87aa2

See more details on using hashes here.

File details

Details for the file planesections-1.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for planesections-1.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 77682ef6efa70dbad4c049c9c2cc9c92f959b2e0d607be60f5bae8e8933d75c9
MD5 4e05544301bb12ca2f024dc1840ec935
BLAKE2b-256 c692045dfc12b323ea6f73d209609c30bcce1ba08650932e52a7f624cf3a84de

See more details on using hashes here.

Supported by

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