Code Monkey home page Code Monkey logo

mechsolids's Introduction

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

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
  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()

mechsolids's People

Contributors

jeevanjyoti4 avatar jebronlames32 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.