Skip to content

Hi, could I change the uniform velcocity as 0 #194

@liangaomng

Description

@liangaomng

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions