1) In the given code, mole fractions of O2 & N2 are given as 0.21 & 0.79 we know that, mole fraction = (number of moles of that species)/(Total number of moles) from the reaction of methane(CH4) `CH_4 +2O_2 +2(3.76)N_2=CO_2+2H_2O+2(3.76)N_2` lets calculate mole fraction of O2(A gas quantity) as example …
sainath k
updated on 12 Jun 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 sainath k (10)
Stability of Ordinary Differential equation ODE
(i) ODE(Ordinary differential equation) Stability depends on the type of method applied. For example if we use the Eulers forward differential method i.e., the explicit method to find the solution of the ODE. Eulers forward differential method (Explicit) `y_(n+1)=y_n +h*f(x_n,y_n)` lets say equation-A where, `h=x_1-x_0`…
15 Jun 2019 01:56 AM IST
Compact Notation Derivation for a simple Multi-step Mechanism
The objective is to derive the reaction rate of ODEs of a simple mechanism. The chemical kinetics is the study of reaction mechanism subjected to different operating conditions which is based on equilibrium chemistry. The compact notation for the below rates of reaction for multistep mechanism are shown below as an example…
14 Jun 2019 07:44 AM IST
Combustion efficiency calculation after preheating
1) The effect of preheating on AFT (adiabatic flame temperature) with pre-heat temperature range between 298k & 600k. The code for that is shown below using cantera. \"\"\" Preheat temperature Vs Adiabatic Flame Temperature \"\"\" import cantera as ct import matplotlib.pyplot as plt gas = ct.Solution(\'gri30.cti\')…
13 Jun 2019 07:22 AM IST
Handling Mixtures with Cantera
1) In the given code, mole fractions of O2 & N2 are given as 0.21 & 0.79 we know that, mole fraction = (number of moles of that species)/(Total number of moles) from the reaction of methane(CH4) `CH_4 +2O_2 +2(3.76)N_2=CO_2+2H_2O+2(3.76)N_2` lets calculate mole fraction of O2(A gas quantity) as example …
12 Jun 2019 12:12 PM IST
Adiabatic Flame Temperature calculation for various hydrocarbons its effect with constant volume pressure conditions
1) Effect of equivalence ratio on AFT: In Python For methane contained in a constant volume chamber assuming N2 is present. The program code in python to plot the effect of equivalence ratio on the adiabatic flame temperature (AFT) is attached in this link: https://drive.google.com/open?id=1H-uuNPpDex5oVygqOHYBJtB9j1zDlv94…
12 Jun 2019 05:01 AM IST
Finding optimum pressure using Newton-Raphson method for Air Cushion Vehicle required to break the ice
In order to break ice with Air Cushion Vehicle, I am finding the minimum pressure required using newton raphson method in python. Input parameters: width of ice wedge (beta) = 0.5 size of air cushion (r) = 40 (in feet) tensile strength of ice (sigma) = 150 (in psi) = 150*12*12 (in psf(ponds per square feet)) thickness…
10 Jun 2019 01:04 AM IST
Analyzing extracting useful data from a given output file for calculating Engine Power Specific Fuel Consumption using python
Data Visualizer: In this code I have extracted values of crank(in deg) and volume(in `m^3`) from given file along with labels for the plot between them & this plot is saved as images. The code for extracting the useful information as per given statement above is shown below. \"\"\" Data Analysis \"\"\" import…
08 Jun 2019 07:40 AM IST
Perform Curve-Fitting through codes with actual experimental datas
1) The term \"popt\" in the code is the coefficients such as x, a, b, c used to define the function i.e., the polynomial equation. In the code the curve_fit function will calculate those coefficients & popt is output of those values The term \"pcov\" in the code is the co-variance matrix which indicates uncertainities…
07 Jun 2019 09:44 AM IST
Understanding the transient behavior of a simple pendulum with damping using python code
The program to simulate the transient behaviour of a simple pendulum is shown below. ODE (Ordinary Differential equation) of 2nd order is used which describes the position w.r.t time. \"\"\" Transient behavior of Simple Pendulum\"\"\" import math import matplotlib.pyplot as plt import numpy as np from scipy.integrate import…
06 Jun 2019 06:39 AM IST
Generating P-V plots thermal efficiency outputs of Air Standard Otto Cycle using Python
A) The program code to generate P-V plot/diagram is shown below. \"\"\" otto cycle simulator \"\"\" import math import matplotlib.pyplot as plt def engine_kinematics(bore, stroke, con_rod, cr, start_crank, end_crank): \"\"\"Engine kinematics\"\"\" # Geometric parameters a = stroke/2 R = con_rod/a #volume parameters v_s…
06 Jun 2019 02:05 AM IST