Menu

Executive Programs

Workshops

Projects

Blogs

Careers

Student Reviews



More

Academic Training

Informative Articles

Find Jobs

We are Hiring!


All Courses

Choose a category

Loading...

All Courses

All Courses

logo

Simulation of the transient behaviour of a simple pendulum (Using Python)

import numpy as np from scipy.integrate import odeint import matplotlib.pyplot as plt import math # function that returns dz/dt def model(theta,t,b,g,l,m): theta1 = theta[0] theta2 = theta[1] dtheta1_dt = theta2 dtheta2_dt = -(b/m)*theta2 - (g/l)*math.sin(theta1) dtheta_dt = [dtheta1_dt, dtheta2_dt] return dtheta_dt b…

Project Details

Loading...

Leave a comment

Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.

Please  login to add a comment

Other comments...

No comments yet!
Be the first to add a comment

Read more Projects by Ravi Ramesh (12)

Simulation of the transient behaviour of a simple pendulum (Using Python)

Objective:

import numpy as np from scipy.integrate import odeint import matplotlib.pyplot as plt import math # function that returns dz/dt def model(theta,t,b,g,l,m): theta1 = theta[0] theta2 = theta[1] dtheta1_dt = theta2 dtheta2_dt = -(b/m)*theta2 - (g/l)*math.sin(theta1) dtheta_dt = [dtheta1_dt, dtheta2_dt] return dtheta_dt b…

calendar

15 Sep 2019 12:54 PM IST

  • MATLAB
Read more

Plotting the P-V curve and calculating thermal efficiency of an Otto cycle (Using Python)

Objective:

Objective: To plot the P-V graph of an Otto cycle and calculate its thermal efficiency using Python. Assumptions The temperature at state 3, i.e., after heat is added to the cycle at constant volume, is given as an input as it is assumed to be known initially. All air standard cycle assumptions are valid throughout the…

calendar

30 Jul 2019 09:52 AM IST

    Read more

    2R Robotic Arm Challenge (Using Python)

    Objective:

    Aim: To simulate the forward kinematics of a 2R Robotic Arm Manipulator and make a video using Python. Process involved Step 1: The lengths of the links were given as inputs, along with the angular orientations of the links. The start and end points of each link were provided taking the global coordinate system to…

    calendar

    21 Jul 2019 02:17 AM IST

      Read more

      Calculation of drag force against a cyclist (Using Python)

      Objective:

      Objective: To calculate the drag force acting on a cyclist and plot the results of velocity and drag force, and also drag coefficient and drag force.  Assumptions In both cases, it is assumed that the frontal area of all the bodies taken into consideration is constant. Furthermore, it is also assumed that the array…

      calendar

      19 Jul 2019 07:17 AM IST

        Read more

        MATLAB Independent Project - Solving Couette Flow for non-Newtonian fluids

        Objective:

        Objective: To obtain the velocity profile of a non-Newtonian fluid flowing between two infinitely long parallel plates, with one plate being stationary and the other moving with a constant velocity (Couette flow). The viscosity of the fluid is variable and the necessary adjustment has to be made while solving the governing…

        calendar

        18 Jul 2019 11:36 PM IST

        Read more

        Parsing NASA thermodynamic data

        Objective:

        Objective: To parse thermodynamic data using MATLAB and calculating important thermodynamic properties such as enthalpy, entropy and specific heat at constant pressure. Procedure Step 1: Give the file THERMO.dat as an input to the programme, and extract the various coefficients for each species by asking the programme…

        calendar

        14 Jul 2019 02:44 AM IST

        Read more

        Calculating the global maxima of a stalagmite function

        Objective:

        Objective: To calculate the global maxima of a stalagmite function using a genetic algorithm and optimize the algorithm to obtain more accurate values. What is the Genetic Algorithm (GA) and how does it work A genetic algorithm is a technique to solve optimization problems using the concept of natural selection. It takes…

        calendar

        05 Jul 2019 04:17 AM IST

        Read more

        Curve fitting for different kinds of polynomials

        Objective:

        Objective: To use the concept of curve fitting for various kinds of polynomials (in this case, linear and cubic polynomials) and explain the parameters used to measure the fitness characteristics of the curves.  Procedure Step 1: The sample data is given as the input to MATLAB, in this case, the dependence of…

        calendar

        26 Jun 2019 09:13 AM IST

        Read more

        Simulation of the transient behaviour of a simple pendulum

        Objective:

        Objective: To simulate the transient behaviour of a simple pendulum and obtain an animation of the same. Procedure Step 1: The behaviour of a simple pendulum can be transformed into an equivalent spring-mass-damper system, which behaves on the basis of the following differential equation: `m(d^2theta)/dt^2 + b(d theta)/dt…

        calendar

        12 Jun 2019 05:46 AM IST

        Read more

        Plotting the P-V curve and calculating thermal efficiency of an Otto cycle

        Objective:

        Objective: To plot the P-V graph of an Otto cycle and calculate its thermal efficiency Assumptions The temperature at state 3, i.e., after heat is added to the cycle at constant volume, is given as an input as it is assumed to be known initially. All air standard cycle assumptions are valid throughout the cycle. Procedure…

        calendar

        29 May 2019 04:55 AM IST

        Read more

        Calculation of drag force against a cyclist

        Objective:

        Objective: To calculate the drag force acting on a cyclist and plot the results of velocity and drag force, and also drag coefficient and drag force.  Assumptions In both cases, it is assumed that the frontal area of all the bodies taken into consideration is constant. Furthermore, it is also assumed that the array…

        calendar

        28 May 2019 03:58 AM IST

          Read more

          2R Robotic Arm Challenge

          Objective:

          Aim: To simulate the forward kinematics of a 2R Robotic Arm Manipulator using basic MATLAB commands. Process involved Step 1: The lengths of the links were given as inputs, along with the angular orientations of the links. The start and end points of each link were provided taking the global coordinate system to be…

          calendar

          26 May 2019 03:05 AM IST

          Read more
          Showing 1 of 12 projects