Passive Cavity Resonator (Pasif Oyuk Rezonatörü) ya da The Thing (Dinleme Cihazı)
Python: Pressure Value Calculation Program Under Sea Water Dependent on Depth
I am a 4th year engineering student who has just started the Python Program and aims to extract a resource called 'Python and Automotive' (beginner level) by combining some formulas that he has learned in Automotive Engineering with Python. Of course, I will not be limited to Automotive only and will try to create original codes and programs using basic engineering knowledge and formulas.
You can find the Python code of the pressure value calculation program that affects the depth under seawater below. All explanations about the program are included in the visuals and code.
Example: The pressure value affecting people at sea level (0 meters) is 101325 Pascal. If we want to dive 10 meters below the sea, this value is 199425 Pascal. So it is about 2 times. The world diving record is 333.35 meters. The pressure value affecting at this depth is 3371488.5 Pascal. To better understand this depth, which is about 33.27 times the standard atmospheric pressure, I recommend that you try to dive only 2 meters underwater. :)
Programın Python Kodu
print("""****************************
Pressure value calculation program affecting under seawater depending on the depth
****************************
P=Pressure(Pa)
P0=Standard Atmospheric Pressure(Pa)=101325Pa = 1BAR
D=Density of Sea Water(kg/m3)~=1000kg/m3
G=Gravitational Acceleration(m/s2)=9.81m/s2
H=Depth(m)
****************************
""")
while True:
P0 = 101325
D= 1000
G= 9.81
H= float(input("Enter the depth value in meters:"))
P= P0 + (D * G * H )
print("Affecting Pressure value (Pa):",P)
#for i in range(1,30): #This code prints pressure values up to 30 meters on the screen.
#P = P0 + (D * G * i)
#print("Pressure values (Pa):", P)
Python: Fuel Economy Calculation Program
I just started the Python Program, and as soon as I started, I aim to create an entry-level resource called 'Python and Automotive' by combining some of the formulas we have learned in Automotive Engineering with Python. Of course, I will not be limited to Automotive only and will try to create original codes and programs using basic engineering knowledge and formulas.
You can find the Python code of the Fuel Economy Calculation Program below. All explanations about the program are included in the pictures and code.
Process 1: Example: If the distance you travel with 50 liters of fuel is 1300 km, the average fuel consumption:
Process 2: Example: The fuel volume to be consumed by a vehicle traveling 750 km with an average fuel consumption of 5 L / 100 km:
Process 3: Example: The way you can get with a vehicle with 40 liters of fuel and 5 L / 100km fuel consumption:
print("""
************************************
Fuel Economy Calculator
FE=Fuel Economy,(L/100km)
FVC=Fuel Volume Consumed,(L)
RT=Road Taken,(km)
************************************
Please Select What You Want to Do:
1-Calculating Fuel Economy(L/100 km)
2-Calculating the Volume of Fuel Consumed(L)
3-Calculating the distance that can be taken(km)
************************************
Barış YILDIRIM
""")
while True:
Operation = input("Select the Operation:")
if (Operation == "1"):
FVC = float(input("Please enter the volume of fuel consumed value(L):"))
RT = float(input("Please enter the road taken value(km):"))
FE = (FVC * 100) / RT
print("Fuel Economy:",FE,"L/100 km")
elif (Operation == "2"):
FE = float(input("Please enter Fuel Economy value(L/100 km):"))
RT = float(input("Please enter the road taken value(km):"))
FVC = (FE * RT) / 100
print("Fuel Volume Consumed:",FVC,"L")
elif (Operation == "3"):
FVC = float(input("Please enter the volume of fuel consumed value(L):"))
FE = float(input("Please enter Fuel Economy value(L/100 km):"))
RT = (FVC * 100) / FE
print("The distance that can be taken:",RT,"km")