Skip to main content

Mechsolids Library for plotting SFD and BMD

Project description

Mechanics of Solids

Mechanical Engineering Department, Indian Institute of Technology Kharagpur

This is a repository of some useful files for the subject "Mechanics of Solids" in the Mechanical Engineering Department of IIT Kharagpur. This subject is a mandatory one for the second year undergraduate students of Mechanical Engineering.

The latest version of the course home page is maintained at: http://www.facweb.iitkgp.ac.in/~jeevanjyoti/teaching/mechsolids/2021/

Manual to use the Beam class

Simply install the package using the following command and use the Beam class as shown below:

pip install Lib-mechsolids-abhinav==0.0.1

OR if you are forking the repository and want to do things manually, then make sure to have the following libraries

We need to have Sympy installed before using the beam class. To install Sympy, use the following command:

pip install sympy
  • Tested with Sympy version 1.11.1
  • Tested with Python version 3.9.13
  • Tested with Matplotlib version 3.5.2
  • Tested with Numpy version 1.21.5

Steps to use the Beam class:

  1. Create a new Python file to solve a problem. Import the Beam and math modules as follows:
    from Beam import *
    from math_functions import *
    
  2. Create either a Simply Supported Beam or a Cantilever Beam object as follows:
    beam = SimplySupportedBeam(NameOfBeam, LengthOfBeam)
    beam = CantileverBeam(NameOfBeam, LengthOfBeam)
    
  3. If the beam is a Simply Supported Beam, then add the supports as follows:
    beam.add_supports(Support(PositionOfSupport1, PositionOfSupport2))
    

    where position is the distance of the support from the left end of the beam.

  4. Create loads using the load class as follows:
    load1 = PointLoad(ValueOfLoad, PositionOfLoad)
    load2 = DistributedLoad(StartPosition, EndPosition, LoadAtStart, LoadAtEnd)
    load3 = EquationLoad(EquationString, StartPosition, EndPosition, startLoad(=0), endLoad(optional))
    
    # add these loads on the beam
    beam.add_load(load1)
    beam.add_load(load2)
    beam.add_load(load3)
    

    where position is the distance of the load from the left end of the beam.

  5. To generate the shear force and bending moment diagrams, use the following functions:
    beam.plot_sfd_and_bmd()
    # if you want to plot just the shear force diagram or bending moment diagram, use the following functions:
    beam.plot_sfd()
    beam.plot_bmd()
    

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

Lib_mechsolids_abhinav-0.0.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

Lib_mechsolids_abhinav-0.0.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file Lib_mechsolids_abhinav-0.0.1.tar.gz.

File metadata

  • Download URL: Lib_mechsolids_abhinav-0.0.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for Lib_mechsolids_abhinav-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cda84c1b3458ee1706e47175e2ec2cd8b73ac6e18017e0cb536e58155776e2b3
MD5 b70bdf18790af7b85af81d8b552ff27a
BLAKE2b-256 2e13630ef9153cbe7975c362c61709c30fe292928525893b0064ad67aa8f4e7f

See more details on using hashes here.

File details

Details for the file Lib_mechsolids_abhinav-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for Lib_mechsolids_abhinav-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d04586250562f7827f1cdc2bbac8c676082af5d9dd9daaff7f1835730b4d57d8
MD5 62b27342d831bedfc8240ec673031661
BLAKE2b-256 cc40229114cd9309f04a4d0783a91612d100e33b2595affd0dd8645e6525eb9e

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