CFD-Julia-12-steps--o-Navier-Stokes-Equations
CFD-Julia-12-steps--o-Navier-Stokes-Equations copied to clipboard
need to update the code
thank you for the conversion important code into Julia. I tried your code in my machine. now I am using Julia 1.4.2 they made changes in the Julia '''plot((range(0.0,step=2,length=nx)),u) gcf()
typeof(u) typeof(LinRange(range(0.,step=2,nx)))
un=ones(nx) for n in 1:nt un=copy(u) for i in 2:nx u[i]=un[i]-c.dt./dx .(un[i].-un[i-1]) end end
print(un) print(u)
plot((range(0.0,step=2,length=nx)),u)'''