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

Curve fitting using python code

import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit #Curve fit function def func(t,a,b,c,d): return a*pow(t,3)+b*t*t+c*t+d def func1(t,a,b,c,d): return a*t+b #Reading Thermodynamic data File def read_file(): temperature=[] cp=[] for line in open(\'data\',\'r\'): values=line.split(\',\')…

    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 Ashoka G U (11)

    Engine data Analysis using python code

    Objective:

    #This is a program to make it easier for data analysis using python import matplotlib.pyplot as plt import numpy as np from numpy import trapz import time lc=1 row_count=0 heading=0 crank=[] pressure=[] coloumn_name=[] coloumn_units=[] #First Compaitablity Test try: open(\'engine_data.out\') except: print(\"File not recognized…

    calendar

    25 Apr 2020 04:23 AM IST

      Read more

      Curve fitting using python code

      Objective:

      import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit #Curve fit function def func(t,a,b,c,d): return a*pow(t,3)+b*t*t+c*t+d def func1(t,a,b,c,d): return a*t+b #Reading Thermodynamic data File def read_file(): temperature=[] cp=[] for line in open(\'data\',\'r\'): values=line.split(\',\')…

      calendar

      25 Apr 2020 03:30 AM IST

        Read more

        Python program to simulate the transient behaviour of a simple pendulum and to create an animation of it s motion

        Objective:

        Aim: Solving Second order ODEs using Matlab (Simulation of Simple Pendulum) Objectives: To solve second order ODES and to determin the angular velocity, displacement, acceleration of a simple pendulum. Backround: In Engineering, ODE is used to describe the transient behavior of a system. A simple example is a pendulum.…

        calendar

        12 Apr 2020 03:52 AM IST

          Read more

          Python Code to obtain PV diagram of Otto cycle Air standard cycle and to calculate the thermal efficiency of the cycle

          Objective:

          Objective: To write a code to obtain PV diagram of Otto cycle (Air standard cycle) and to calculate the thermal efficiecy of the cycle using Python. Background: Introduction:   Process: 1)    Intake stroke; a mixture of both air and gasoline are drawn into the engine (5-1) 2)    Compression…

          calendar

          12 Apr 2020 12:20 AM IST

            Read more

            2R Robotic Arm Simulator using Python

            Objective:

            To develop a PYTHON program to simulate the forward kinematics of a 2R robotic arm by simulating the profiles of the angles projected by the two linkages along with the x-axis.  A python script was set-up in sublime and saved to a define folder The matplotlib, math, and numpy modules were imported to the script The…

            calendar

            07 Apr 2020 07:56 AM IST

            • PYTHON
            Read more

            Python program to calculate drag force against a cyclist

            Objective:

            This is the Python program to calculate drag force against a cyclist. The factors involved are Velocity,Drag coefficient,Frontal Area,Density of air.   import matplotlib.pyplot as plt A=1.75 d=1.12 v=[2,3,4,5,6,7,8,9] cd=0.75 drag_forces=[] for velocity in v: drag_forces.append((0.5*A*d*cd*velocity*velocity))…

            calendar

            31 Mar 2020 05:32 AM IST

              Read more

              Curve Fitting using Matlab

              Objective:

              Objective: Mathematically construct the functional relationship between the observed dataset and parameter values to Curve Fit.   Introduction: Curve fitting is the process of constructing a curve, or mathematical function, that has the best fit to a series of data points, possibly subject to constraints.  It…

              calendar

              30 Nov 2019 01:58 AM IST

                Read more

                Simulation of Simple pendulum by solving ODEs - using MATLAB

                Objective:

                Aim: Solving Second order ODEs using Matlab (Simulation of Simple Pendulum) Objectives: To solve second order ODES and to determin the angular velocity, displacement, acceleration of a simple pendulum. Backround: In Engineering, ODE is used to describe the transient behavior of a system. A simple example is a pendulum.…

                calendar

                29 Nov 2019 09:39 PM IST

                  Read more

                  2R robotic Arm simulator

                  Objective:

                  Objective: To study the motion of a 2R robotic Arm using MATLAB   Introduction: It has 2 arms/links. The angles are theta1 and theta2 respectively.       Code: clear allclose allclc % inputsl1 = 1;l2 = 0.5;theta1 = linspace(0,90,10);theta2 = linspace(0,90,10); ct=1;for i = 1:length(theta1) THETA1 =…

                  calendar

                  24 Nov 2019 04:16 AM IST

                  Read more

                  Drag Force Calculation - Flow over a Bicycle using MATLAB

                  Objective:

                  Objective: To Study and Calculate the drag force and to find out the relationship between Drag Force VS Velocity of the Bicycle and Drag Force VS Coefficient of Drag -- for various positions during cycling.   Background: If we consider straight riding without a side wind, we can expect the following forces to act…

                  calendar

                  24 Nov 2019 02:49 AM IST

                    Read more

                    Otto Cycle Piston Kinematics - using MATLAB

                    Objective:

                    Objective: To write a code to obtain PV diagram of Otto cycle (Air standard cycle) and to calculate the thermal efficiecy of the cycle using MATLAB. Background: Introduction:   Process: 1)    Intake stroke; a mixture of both air and gasoline are drawn into the engine (5-1) 2)    Compression…

                    calendar

                    24 Nov 2019 02:13 AM IST

                    Read more
                    Showing 1 of 11 projects