//Code to generate :// //i. the angular displacement vs time plot// //ii. the angular velocity vs time plot// //iii. the animation of pendulum motion// clear all close all clc b = 0.05; g = 9.81; L = 1; m = 1; i=1; % Initial theta_0 = [0;3]; % time limit t_span = linspace(0,20,250); %Solving [t,results] = ode45(@(t,theta)ode_fun(t,theta,b,g,L,m),t_span,theta_0);…
Abhijith Vijayan
updated on 01 Feb 2019
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 Abhijith Vijayan (8)
Ice breaking
\"\"\" Finding minimum pressure in Equation for Breaking Ice with Air cushion Vehicle using Newton-Raphson method \"\"\" import numpy as np import math import matplotlib.pyplot as plt # Equation def eqn(beta, sigma, r, h, p): e = np.arange(0.0,2.0) t1 = 1-np.power(beta,2) t2 = 0.4*h*np.power(beta,2) - sigma*np.power(h/r,2)…
08 Mar 2019 08:08 AM IST
otto cycle visualizer
# Petrol Cycle PV diagram simulator import math import matplotlib.pyplot as plt # Geometric parameters bore = 0.1 stroke = 0.1 con = .15 cr = 5 a = stroke/2 R = con/a #Volumes defEng_kinematics(bore, stroke, con, cr, start, end): # Engine Kinematics sc = math.radians(start) ec = math.radians(end) n = 50 h = (ec-sc)/(n-1)…
22 Feb 2019 11:23 AM IST
Stalagmite function
//Stalagmite function for GA// function sol = stalagmite(input) x = input(1); y = input(2); fxone = (sin(((5.1*pi).*x)+0.5)).^6; fxtwo = exp((((x-0.0667).^2).*(-4*log(2)))./0.64); fyone = (sin(((5.1*pi).*y)+0.5)).^6; fytwo = exp((((y-0.0667).^2).*(-4*log(2)))./0.64); sol = -((fxone)*(fxtwo)*(fyone)*(fytwo));…
04 Feb 2019 02:21 AM IST
NASA PROJECT
clear all close all clc f1 = fopen(\'THERMO.dat\') Heading = fgetl(f1); % Global Temp global_temp = fgetl(f1); for i = 1:3 comments{i} = fgetl(f1); end a = strsplit(global_temp,\' \'); global_low_temp = str2num(a{2}); global_mid_temp = str2num(a{3}); global_high_temp = str2num(a{4}); %At. Mass O = 16; for k=1:53…
03 Feb 2019 07:32 AM IST
Transient method of Simple Pendulum
//Code to generate :// //i. the angular displacement vs time plot// //ii. the angular velocity vs time plot// //iii. the animation of pendulum motion// clear all close all clc b = 0.05; g = 9.81; L = 1; m = 1; i=1; % Initial theta_0 = [0;3]; % time limit t_span = linspace(0,20,250); %Solving [t,results] = ode45(@(t,theta)ode_fun(t,theta,b,g,L,m),t_span,theta_0);…
01 Feb 2019 06:16 AM IST
Otto cycle PV Cycle visualizer
https://drive.google.com/file/d/1_3lGxcjLNBVhjof3nI4kjeIfJn6NHoCK/view?usp=sharing
29 Jan 2019 06:41 PM IST
Week 1 - Basic commands in Matlab
**************************** Comments by graderthis is right, but you haven't said which is whichfor row it is A = [1 2 3 4 5]for column it is A = [1;2;3;4;5] **************************** >> x = [5 6 7 8]>> y = [5;6;7;8;]
14 Jan 2019 08:52 AM IST
Week 1 - Basic commands in Matlab
**************************** Comments by graderthis is right, but you haven't said which is whichfor row it is A = [1 2 3 4 5]for column it is A = [1;2;3;4;5] **************************** >> x = [5 6 7 8]>> y = [5;6;7;8;]
14 Jan 2019 08:52 AM IST