Giter VIP home page Giter VIP logo

1d-beam-element-2-dof-fem-solver's Introduction

1 Dimensional Beam Element with 2 Degrees of Freedom FEM Solver

⚠️ Note: Since the release of this app, Dear PyGui has been updated considerably. This app will not run in the newer versions of Dear PyGui. Please note that this app is not being maintained currently.

About

This solver can be used to analyse 2 degrees of freedom of 1 dimensional problems with beam elements connected in series and having 1D forces acting perpendicular to the axis of the beam. It uses the direct stiffness method and assembles the global nodal force vector, global element stiffness matrix, and the global nodal displacement vector and uses the elimination approach on the global relationship after applying all the boundary conditions provided by the user to solve for the unknown nodal displacements and slopes.

Instructions

  1. Make sure you have Python 3 installed and working.

  2. Clone the repo:

git clone https://github.com/RahulShagri/1D-Beam-Element-2-DOF-FEM-Solver.git

  1. Install prerequisites using pip, preferably in a new environment:

pip install -r requirements.txt

  1. Run the Beam_element_FEM_solver.py file.

Points to note:

  1. All forces acting downwards are negative and all forces acting upwards are positive.
  2. All moments acting clockwise are negative and all moments acting anti-clockwise are positive.
  3. The user has to make sure the values entered have the correct units. The software does not convert any values entered. Results are obtained based on the values that are entered without converting them to different units. In the following examples, the displacements are in mm and stresses are in MPa.

Example Problem

Example Diagram

Step 1:

Solving for a uniform circular cross-section beam element that is divided into 2 elements with several displacement constraints, force, and pressure boundary conditions.

Known values are:

  1. Number of elements = 2
  2. Modulus of elasticity, E = 200 GPa
  3. Diameter of the beam = 23 cm
  4. Area moment of inertia, I = 1.3737 × 10-4 m4

Step 2:

Enter the respective values of the material properties and boundary conditions.

Example Discretization and Material Properties Example Displacement constraints Example UDL Example UVL Example Moments

Step 3:

Hit the solve button.

Note: Generate Diagram feature is still under development.

Step 4:

Ensure no errors are shown in the log window.

Step 5:

Analyse the results in the results window.

Note: All units are in SI units in this example.

Example Results

Recommended flow of windows

Recommended flow

Contact

You can contact me using the messaging form or the emailing option on my engineering portfolio website.

1d-beam-element-2-dof-fem-solver's People

Contributors

rahulshagri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.