Package beef

BEEF logo

What is beef?

BEEF is a BEam Elements Framework package for Python. The main features are:

  • 2D and 3D beam finite element analyses
  • Solves static and dynamic problems
  • Linear and co-rotated formulations, allowing for large-displacement problems (3D is experimental)
  • Newmark, Alpha-HHT, static solvers, eigenvalue solution, eigenbuckling solution
  • Postprocessing tools for visualization
  • Custom function inputs for post-processing

Installation

Either download the repository to your computer and install, e.g. by pip

pip install .

or install directly from github:

pip install git+https://www.github.com/knutankv/beef.git@master

Quick start

Import the relevant package modules, exemplified for the beef.newmark module, as follows:

from beef import newmark

To access the classes used to construct FE objects, the beef.fe module has to be imported (usage is exemplified by creation of part objects and placement in assembly):

from beef import fe
first_part = fe.Part(node_matrix_1, element_matrix_1, sections_1, constraints=constraints_1)
second_part = fe.Part(node_matrix_2, element_matrix_2, sections_2, constraints=constraints_2)
assembly = fe.Assembly([first_part, second_part])

For details on how to set up a full model, please refer to the examples. For code reference visit knutankv.github.io/beef.

Examples

Examples are provided as Jupyter Notebooks in the examples folder.

References

[1] S. Krenk, Non-linear modeling and analysis of solids and structures. Cambridge University Press, 2009.

[2] W. Fang, EN234: Three-dimentional Timoshenko beam element undergoing axial, torsional and bending deformations, 2015. https://www.brown.edu/Departments/Engineering/Courses/En2340/Projects/Projects_2015/Wenqiang_Fan.pdf

[3] H. Karadeniz, M. P. Saka, and V. Togan, “Finite Element Analysis of Space Frame Structures BT - Stochastic Analysis of Offshore Steel Structures: An Analytical Appraisal,” H. Karadeniz, Ed. London: Springer London, 2013, pp. 1–119. https://link.springer.com/content/pdf/10.1007%2F978-1-84996-190-5_1

[4] P.I. Bruheim, Development and validation of a finite element software facilitating large-displacement aeroelastic analysis of wind turbines, Norwegian University of Science and Technology, 2012. https://core.ac.uk/download/pdf/30855172.pdf

Citation

DOI

Support

Please open an issue for support.

Expand source code
'''
.. include:: ./../README.md
'''

from .general import *

Sub-modules

beef.examples

Examples …

beef.fe

Finite Element (FE) library

This module consists of all classes to create and run FE analyses …

beef.general

General purpose functions.

beef.io
beef.modal

Modal calculations.

beef.newmark

Newmark time simulation module

beef.nlfe2d

Legacy code for two-dimensional corotational analysis.

beef.plot

Plotting functions.

beef.rotation

Quaternion and tensor rotations.