\"\"\" The program on drag force dependent on drag coefficients \"\"\" import matplotlib.pyplot as plt # Setting variables # Area A = 0.1 # Densities rho = 1.1 # Drag Coefficient c_d = 0.6 # Velocities velocities = [5,9,13,17,21,25] # Drag Force drag_force = [] # Inserting the values j = 0 for vel in velocities: drag_force.append((0.5*A*rho*c_d*vel*vel))…
Ankit Behera
updated on 21 Jun 2018
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 Ankit Behera (12)
Curve fitting of Unknown dataset using Python
Curve fitting is one of the most important processes of the engineering curriculum. To analyse any unknown data curve fitting is a must. So by the use of python the thermodynamic data of the specific heat at constant pressure of oxygen against the temperature is analysed and plotted against the given data. The curve…
16 Jul 2018 01:12 PM IST
Engine kinematics of Otto Cycle and thermal efficiency using Python
The code of the Otto Cycle is defined by the following python program \"\"\" Otto Cycle \"\"\" import math import matplotlib.pyplot as plt def engine_kinematics(bore,stroke,con_rod,cr,start_crank,end_crank): \"\"\" Engine Kinematics \"\"\" # Setting the initial variables a = stroke/2 R = con_rod/a Vs = math.pi*(1/4)*pow(bore,2)*stroke…
05 Jul 2018 03:55 AM IST
2-R link robotic arm simulator using python
\"\"\" The program based on the 2-R animation of the robotic arm \"\"\" import math as m import matplotlib.pyplot as plt # Setting up initial conditions n_theta = 10 theta_start = 0 theta_end = m.pi/2 l1 = 1 l2 = 0.5 x0 = 0 y0 = 0 # Setting the angular values theta1 = [] theta2 = [] # Creating the angles for n in range(0,n_theta):…
26 Jun 2018 09:14 AM IST
File Parsing of NASA thermodynamic data
File parsing is an important aspect of data handling in MATLAB. In this project the data of the file \'therm.dat\'. The objective is to extract the coefficients of the gas to apply in the equations as follows to obtain the Cp, H and S value over the range of temperature given in the file. The main code is as follows clc…
22 Jun 2018 10:42 PM IST
Python Code for Flow over bicycle
\"\"\" The program on drag force dependent on drag coefficients \"\"\" import matplotlib.pyplot as plt # Setting variables # Area A = 0.1 # Densities rho = 1.1 # Drag Coefficient c_d = 0.6 # Velocities velocities = [5,9,13,17,21,25] # Drag Force drag_force = [] # Inserting the values j = 0 for vel in velocities: drag_force.append((0.5*A*rho*c_d*vel*vel))…
21 Jun 2018 08:27 AM IST
File Parsing By NASA
File parsing is an important aspect of data handling in MATLAB. In this project the data of the file \'therm.dat\'. The objective is to extract the coefficients of the gas to apply in the equations as follows to obtain the Cp, H and S value over the range of temperature given in the file. The main code is as follows clc…
19 Jun 2018 06:42 AM IST
Optimisation of Stalagmite function using Genetic Algorithm
GENETIC ALGORITHM OVERVIEW Genetic algorithm is based on the \"Theory of Natural Selection\" as proposed by biologist \"Charles Darwin\". This is also known as Evolutionary Algorithm. Genetic algorithm works on the principle of evolution and natural selection. 1. At first the random population is selected from the…
10 Jun 2018 05:22 AM IST
Curve fitting of Unknown dataset
The curve fitting is the most basic and important process to assess the mathematical model of the unknown data set. It is like finding the unknown equation out of the data set. To understand the process we take the following example of the change of specific heat over the temperature range. Now for the fitting data…
07 Jun 2018 06:57 AM IST
Damped Oscillation of simple pendulum
The oscillation of simple pendulum is a phenomenon occurs in everyday objects like bell, chime, old wall clocks, etc. But the oscillation seemingly going to end at infinity are actually damped by nature, meaning the amplitude of oscillation is decreasing per time. The decrease in amplitude can be due to various reasons…
02 Jun 2018 04:01 AM IST
Flow over cyclist
The flow over the cyclist is defined by the drag force acting on the cyclist. the drag force of the air is given by the equation F = 0.5*cd*A*v^2 cd = Coefficient of drag A = Frontal area of the cyclist v = velocity of the cyclist The MATLAB code for plotting graphs clc clear all close all % drag force…
30 May 2018 12:43 AM IST
Engine kinematics of Otto Cycle and thermal efficiency
THE BASE CODE OF THE PROGRAM close all;clear all;clc % Otto Cycle % setting up variablesgamma = 1.4; % Gamma = Cp/Cv % defining engine geometrybore = 0.1; % cylinder bore radius (m)stroke = 0.1; % stroke length (m)conn_rod = 0.15; % connecting rod length (m)cr = 10; % compession ratio V1/V2 % known state variablesp1…
22 May 2018 03:50 AM IST
row and column vectors
% creating the column vector. b = zeros(5,1); for i=2:5 b(1) = 1; b(i) = 1+ b(i-1); end % creating the row vector. for i=2:5 …
14 May 2018 11:48 PM IST