#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…
Ashoka G U
updated on 25 Apr 2020
Project Details
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.
Other comments...
Read more Projects by Ashoka G U (11)
Engine data Analysis using python code
#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…
25 Apr 2020 04:23 AM IST
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(\',\')…
25 Apr 2020 03:30 AM IST
Python program to simulate the transient behaviour of a simple pendulum and to create an animation of it s motion
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.…
12 Apr 2020 03:52 AM IST
Python Code to obtain PV diagram of Otto cycle Air standard cycle and to calculate the thermal efficiency of the cycle
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…
12 Apr 2020 12:20 AM IST
2R Robotic Arm Simulator using Python
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…
07 Apr 2020 07:56 AM IST
Python program to calculate drag force against a cyclist
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))…
31 Mar 2020 05:32 AM IST
Curve Fitting using Matlab
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…
30 Nov 2019 01:58 AM IST
Simulation of Simple pendulum by solving ODEs - using MATLAB
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.…
29 Nov 2019 09:39 PM IST
2R robotic Arm simulator
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 =…
24 Nov 2019 04:16 AM IST
Drag Force Calculation - Flow over a Bicycle using MATLAB
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…
24 Nov 2019 02:49 AM IST
Otto Cycle Piston Kinematics - using MATLAB
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…
24 Nov 2019 02:13 AM IST