igorgavi commited on
Commit
b1a89a3
·
verified ·
1 Parent(s): f271a77

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +32 -0
app.py ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+ import numpy as np
4
+
5
+ st.write("""
6
+ # Hello World
7
+ """)
8
+
9
+
10
+ # Fluid properties
11
+ mu = 1.83e-5 # Viscosity [Pa*s]
12
+ rho = 1.196 # Density [kg/m^3]
13
+ nu = mu/rho # Dynamic viscosity [m^2/s]
14
+
15
+ # Flow properties
16
+ D = 4.9 # Characteristic Length [m]
17
+ u_inf = 1. # Frestream velocity [m/s]
18
+ y_plus = 55. # Y+ [-]
19
+
20
+ Re = rho*u_inf*D/mu # Reynold's number
21
+ C_f = .0576*Re**(-.2) # Skin friction coefficient
22
+
23
+ print(f'Reynolds = {Re:.0f}')
24
+
25
+ tau_om = .5*C_f*rho*u_inf**2
26
+
27
+ u_tau = (tau_om/rho)**.5
28
+
29
+ y = y_plus*nu/u_tau
30
+
31
+ print(f'Y Centroid = {y:.4f}')
32
+ print(f'Yh (First Layer Thickness) = {2*y:.4f}')