CFD-Julia-12-steps--o-Navier-Stokes-Equations icon indicating copy to clipboard operation
CFD-Julia-12-steps--o-Navier-Stokes-Equations copied to clipboard

need to update the code

Open hafez-ahmad opened this issue 4 years ago • 0 comments

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)'''

hafez-ahmad avatar Jul 04 '20 12:07 hafez-ahmad