-
Notifications
You must be signed in to change notification settings - Fork 104
Hi, could I change the uniform velcocity as 0 #194
Copy link
Copy link
Closed
Description
Hi, sir,
Should I can change the fluid uniform velcocty as 0, like this?
But it stop the first step. I want to simulate the still water with a motion cylinder.
function circle(n,m;Re=250,U=0,mem=Array,angle = 0,radius=m/8,velocity=0.1,center=m/2)
hori_distance = m/4 #128/4=32
angle_rad = angle * (π / 180) # π / 180
vert_distance = hori_distance * tan(angle_rad)
radius, center = radius,center+ vert_distance
#motion
function map(x,t)
x = x + SA[velocity*t,0]
end
circle = AutoBody((x,t)->√sum(abs2, x .- SA[n/2-velocity*1t,center]) - radius, map)
Simulation((n,m), (0,0), radius;ν= 0.005,body=circle, mem)
end
Thanks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels