-
Notifications
You must be signed in to change notification settings - Fork 0
/
SMOKEnginerelated
80 lines (63 loc) · 2.78 KB
/
SMOKEnginerelated
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Script engine related, we want to know exactly how much garbage comes out of
# the exhaust. How many cylinders does it have, revolutions per sec, how many
# strokes and so on. The amount of air that keeps enters the engine is what we
# want to know.... Improve is what we want! We are going to focus on diesel
# engines. For now only focusing on 4 stroke engines and four cylinders!
# You can use and edit the code... With best purposes
#Air fuel/ratio - 14.5:1 (???) (14.5 parts of air to one of fuel)
import time
print('This script was made for a four stroke diesel engine with four cylinders')
time.sleep(2)
EC = input ('Whats your engine capacity (in cm3)? ')
NC = input ('How many cylinders does it have? ')
EC1 = int (EC)
NC1 = int (NC)
UC = EC1/NC1
print('It has', round (UC, 2), 'cm3 of volume on each cylinder')
RPM = input('Enter the number of revolutions per min (RPM): ')
RPM1 = int (RPM)
AD = ((RPM1*4) / (2)) / 4
print ('Your car does' , round (AD, 2) ,'admissions for that RPM')
ADS = AD/60
print ('In one second it does',round (ADS, 2), 'admissions for that RPM')
Q = UC/ float (15.5)
print('That car needs, about',round((round(Q, 3)*14.5)*ADS, 2), 'cm3 of air in one second for that RPM')
print (round (Q,2), 'cm3 are the parts for a 14.5:1 ratio')
print('Which gives approximately', round (14.5*round(Q, 3), 3), 'cm3 of air and', round (Q, 3), 'cm3 of fuel. At each admssion time')
x = int(input("Please enter altitude (500/1000/1500/2000/2500): "))
if x == 0:
print('O2 content at admission time is 21%')
elif x == 500:
print('O2 content at admission time is 19%')
elif x == 1000:
print('O2 content at admission time is 18%')
elif x == 1500:
print('O2 content at admission time is 17%')
elif x == 2000:
print('O2 content at admission time is 16%')
elif x == 2500:
print('O2 content at admission time is 15%')
else:
print('Insert correct values')
t = int(input ("Whats the temperature outside of the vehicle (20/24/27/28/31)?"))
if t == 20:
print('O2 content at admission time is the same!')
elif t == 24:
print('O2 content at admission time is less 0.1%')
elif t == 27:
print('O2 content at admission time is less 0.3%')
elif t == 28:
print('O2 content at admission time is less 0.3%')
elif t == 31:
print('O2 content at admission time is less 0.7%')
else:
print('Insert correct values')
print (Wet air or dry air? Sunny or rainy?)
print ('Whats the temperature of the engine block?')
print ('Can you guess?')
Cc = input ('Press any key to continue:')
# this was made for a diesel engine with that fuel/air ratio! There are others! As far as
# i know! Diesel is still safer, it burns at higher temperatures, you can always try to add
# oxygen or hydrogen, depending on temperature... Either way......
# How do you decrease CO2 values?
# Several bibles