Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100691897
FEC_BoundaryLayer.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Feb 1, 22:24
Size
713 B
Mime Type
text/x-python
Expires
Mon, Feb 3, 22:24 (2 d)
Engine
blob
Format
Raw Data
Handle
24015441
Attached To
rCONVECTION Convection Heat Transfer Notebook
FEC_BoundaryLayer.py
View Options
import
numpy
as
np
import
matplotlib.pyplot
as
plt
def
BoundaryLayer
():
x
=
np
.
linspace
(
0
,
1
,
100
)
rho
=
1000
mu
=
1.7e-3
V
=
2
def
BoundaryLayer
(
x
):
Re
=
[
rho
*
V
*
d
/
mu
for
d
in
x
]
delta
=
[]
for
d
,
Re
in
zip
(
x
,
Re
):
if
Re
>
5e5
:
delta
.
append
(
d
*
0.37
*
Re
**
(
-
1
/
5
))
else
:
if
d
==
0
:
delta
.
append
(
0
)
else
:
delta
.
append
(
5
*
d
*
Re
**
(
-
0.5
))
return
delta
delta
=
BoundaryLayer
(
x
)
plt
.
figure
(
figsize
=
(
8
,
5
))
plt
.
rcParams
.
update
({
'font.size'
:
13
})
plt
.
plot
(
x
,
delta
,
'b*'
);
plt
.
xlabel
(
"Downstream distance"
)
plt
.
ylabel
(
"Boundary Layer thickness"
)
Event Timeline
Log In to Comment