Skip to main content

Python Library for Structural Beam Analysis

Project description

A simple Python library for Structural Beam Analysis developed by students of Kakatiya Institute of Technology and Science for Civil Engineering Applications Python Library for Beam Analysis for Civil Engineering

Developed by Aryan Karamtoth from Information Technology Department at Kakatiya Institute of Technology and Science

Supported Features

  • Making a beam
  • Calculating Support Reactions of a beam
  • Applying load on a beam

Installation

pip install beamxs

Getting Started

Import the package

import beamxs as bm

Read the documentation and apply the required method for your purpose

Documentation

Built-in Methods:

  • createBeam(len): Method for creating a beam

    Input: len --> Length of Beam Output: beam --> Beam object

Example:

beam = bm.createBeam(10)
print(beam)
  • definePin(pinPos,beam):

Method for defining the position of pin support

Input:  pinPos      --> Pin Support Position
        beam        --> Beam object
Output: pinposition --> Pin Position

Example:

pinpos = bm.definePin(2,beam)
print(pinpos)
  • defineRoller(rollPos,beam):

    Method for defining the position of roller support

    Input: rollPos --> Roller Support Position beam --> Beam object

    Output: rollposition --> Roller Position

    Example:

    rollpos = bm.defineRoller(4,beam)
    print(rollpos)
    
  • applyPointLoad(loadPos,loadMag,beam):

    Method for applying Point Load on the beam

    Input: loadPos --> Position of Point Load loadMag --> Magnitude of Point Load beam --> Beam object

    Output: load --> Applied Load

    Example:

    ptload = bm.applyPointLoad(4,60,beam)
    print(ptload)
    
  • applyUDL(beam,loadPerUnitLength):

    Method for applying UDL (Uniformly Distributed Load) on the beam

    Input: beam --> Beam object loadPerUnitLength --> Load Per Unit Length

    Output: udl --> Applied UDL

    Example:

    udlarray = bm.applyUDL(beam,20)
    print(udlarray)
    
  • applyUVL(beam,startLoad,endLoad):

    Method for applying UVL (Uniformly Varying Load) on the beam

    Input: beam --> Beam object startLoad --> Start Load endLoad --> End Load

    Output: uvl --> Applied UVL

    Example:

    uvlarray = bm.applyUVL(beam,20,40)
    print(uvlarray)
    
  • applyMoment(momentPos, momentMag, beam):

    Method for applying Moment on the beam

    Input: momentPos --> Moment Position momentMag --> Moment Magnitude beam --> Beam Object

    Output: moments --> Moment Applied

    Example:

    appliedmoment = bm.applyMoment(3,20,beam)
    print(appliedmoment)
    
  • calcReactionsSSB(loads, pinPos, rollPos, beam):

    Method for calculation support reaction of a simply supported beam with various loads

    Input: loads --> Dictionary containing load data beam --> Beam Object pinPos --> Pin Position rollPos --> Roller Support Position

    Output: Ra --> Reaction at pin support Rb --> Reaction at roller support

    Example:

      loads = [
      {'type': 'point', 'position': 2, 'magnitude': 50},
      {'type': 'udl', 'start': 3, 'end': 5, 'magnitude': 20},
      {'type': 'uvl', 'start': 6, 'end': 8, 'start_magnitude': 10, 'end_magnitude': 30}
      ]
      pinPos = 1
      rollPos = 9
      Ra, Rb = bm.calcReactionsSSB(loads, pinPos, rollPos, beam)
      print(Ra)
      print(Rb)
    

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

beamxs-1.1.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

beamxs-1.1.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file beamxs-1.1.1.tar.gz.

File metadata

  • Download URL: beamxs-1.1.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for beamxs-1.1.1.tar.gz
Algorithm Hash digest
SHA256 13ae366d8d7a2f60628d39a84638ad74e3565277e62e7a787db987754987935f
MD5 884323d9e5e26c510b68a870a697d708
BLAKE2b-256 97b3f80ba10f57cf14d8cd531b018271e8f8a2b21be540b4aa082e6dc53153d5

See more details on using hashes here.

File details

Details for the file beamxs-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: beamxs-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for beamxs-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a04238ccb8962c6e79d757687a7d07316bf41fd2523ef059644694123ddf6243
MD5 fee5fd2a706faa58b4421bd454b92dd2
BLAKE2b-256 9f3137b534afb367db7226d92f53728b80d44c2bc3f1f7d5db727723e49ade68

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page