Pascal etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
Pascal etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

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: Deniz Suyu Altında Derinliğe Bağlı Olarak Etki Eden Basınç Değeri Hesaplama Programı

Python Programına henüz yeni başlamış olan ve başlar başlamaz Otomotiv Mühendisliği'nde öğrenmiş olduğu bazı formülleri Python ile birleştirerek 'Python ve Otomotiv' adlı (başlangıç düzeyinde) bir kaynak çıkarmayı hedefleyen 4. sınıf mühendislik öğrencisiyim. Elbette yalnızca Otomotiv ile sınırlı kalmayacak ve temel mühendislik bilgi ve formüllerini kullanarak özgün kodlar ve programlar çıkarmaya çabalayacağım. 

Deniz suyu altında derinliğe bağlı olarak etki eden basınç değeri hesaplama programının Python koduna aşağıdan ulaşabilirsiniz. Program ile ilgili tüm açıklamalar görsellerde ve kod içerisinde yer almaktadır. 

Örnek: Deniz seviyesinde(0 metre) insanlara etki eden basınç değeri 101325 Pascaldır. Denizin 10 metre altına dalmak istersek bu değer 199425 Pascaldır. Yani yaklaşık 2 katıdır. Dünya dalış rekoru 333.35 metredir. Bu derinlikte etki eden basınç değeri ise 3371488.5 Pascaldır. Standart atmosfer basıncının yaklaşık 33.27 katı olan bu derinliği daha iyi anlamak için yalnızca 2 metre su altına dalmayı denemenizi tavsiye ediyorum. :) 



Programın Python Kodu

print("""****************************
Deniz suyu altında derinliğe bağlı olarak etki eden basınç değeri hesaplama programı
****************************
P=Basınç(Pa)
P0=Açık Hava Basıncı(Pa)=101325Pa = 1BAR
D=Deniz Suyunun Yoğunluğu(kg/m3)~=1000kg/m3
G=Yer çekimi ivmesi(m/s2)=9.81m/s2
H=Derinlik(m)
****************************
BY
""")
while True:
P0 = 101325
D= 1000
G= 9.81
H= float(input("Derinlik değerini metre cinsinden giriniz:"))

P= P0 + (D * G * H )
print("Etki eden Basınç değeri(Pa):",P)

#for i in range(1,30): #30 Metreye kadar basınç değerlerini ekrana yazdırır.
#P = P0 + (D * G * i)
#print("Etki eden Basınç değerleri(Pa):", P)